public static IGroupBasedUserManager GetManager() { if (_instance == null || _instance.GetType() != _activeType) { _instance = (IGroupBasedUserManager)Activator.CreateInstance(_activeType); } return(_instance); }
private bool ValidateGroup(string name, IGroupBasedUserManager groupManager, ref string message) { if (string.IsNullOrWhiteSpace(name)) { message = "Group name is required!"; return(false); } bool groupExists = groupManager.GroupExists(name); if (!groupExists) { message = string.Format("Group with name '{0}' not found in AD!", name); return(false); } return(true); }
public RefreshGroupsHandler(IEasyADRepository repo, IGroupBasedUserManager groupManager, IUserService userService) : base(repo, groupManager, userService) { }
public GroupHandler(IEasyADRepository repo, IGroupBasedUserManager groupManager, IUserService userService) { _repo = repo; _groupManager = groupManager; _userService = userService; }
public DeleteGroupHandler(IEasyADRepository repo, IGroupBasedUserManager groupManager, IUserService userService) : base(repo, groupManager, userService) { }