public AccessService(IPermissionResolverService permissionResolverService, UserService userService, IGroupStore groupStore, ILogger logger) { _permissionResolverService = permissionResolverService ?? throw new ArgumentNullException(nameof(permissionResolverService)); _userService = userService ?? throw new ArgumentNullException(nameof(userService)); _groupStore = groupStore ?? throw new ArgumentNullException(nameof(groupStore)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public async Task UpdateGroupAsync(GroupMemberDiff memberDiff, bool ignoreChangeLimit = false) { if (memberDiff is null) { throw new ArgumentNullException(nameof(memberDiff)); } if (!ignoreChangeLimit && memberDiff.ChangeRatio < _changeRatioLowerLimit) { throw new ChangeRatioException(); } IGroupStore store = GetGroupStore(memberDiff.Document); foreach (GroupMember member in memberDiff.Remove) { await store.RemoveGroupMemberAsync(member, memberDiff.Document.GroupId); await _logger?.StoreOperationalLogItemAsync(new OperationalLogItem(memberDiff.Document, GroupMemberOperations.Remove, member)); } foreach (GroupMember member in memberDiff.Add) { await store.AddGroupMemberAsync(member, memberDiff.Document.GroupId); await _logger?.StoreOperationalLogItemAsync(new OperationalLogItem(memberDiff.Document, GroupMemberOperations.Add, member)); } }
public InviteService( IBaseDAO <AppUserEntity> userDAO, IBaseDAO <RoleEntity> roleDAO, IBaseDAO <InviteEntity> inviteDAO, IGroupStore groupStore, IGroupUserStore groupUserStore, IEmailService mailService, IAddInviteFilter addInviteFilter, IValidator <InviteToGroupRequest> inviteToGroupRequestValidator, IValidator <InviteRequest> inviteRequestValidator, ILogger <InviteService> logger, IOptions <IdentityUIOptions> identityManagementOptions, IOptions <IdentityUIEndpoints> identityManagementEndpoints) { _userDAO = userDAO; _roleDAO = roleDAO; _inviteDAO = inviteDAO; _groupStore = groupStore; _groupUserStore = groupUserStore; _mailService = mailService; _addInviteFilter = addInviteFilter; _inviteToGroupRequestValidator = inviteToGroupRequestValidator; _inviteRequestValidator = inviteRequestValidator; _logger = logger; _identityManagementOptions = identityManagementOptions.Value; _identityManagementEndpoints = identityManagementEndpoints.Value; }
public GroupMigratorService( IGroupStore groupStore, ILogger logger) { _groupStore = groupStore ?? throw new ArgumentNullException(nameof(groupStore)); _logger = logger; }
public GroupRepository(IGroupStore store, ICacheService cacheService, IUserIdAccesor userIdAccesor, ICacheOptions options) : base(store, cacheService, options) { _userIdAccesor = userIdAccesor; }
private async Task <GroupMemberCollection> GetCurrentMembersAsync(GrouperDocument document) { var memberCollection = new GroupMemberCollection(); IGroupStore store = GetGroupStore(document); await store.GetGroupMembersAsync(memberCollection, document.GroupId); return(memberCollection); }
public GameHub( IGroupStore groupStore, IPlayerStore playerStore, IGameEngineService gameEngineService) { _groupStore = groupStore ?? throw new ArgumentNullException(nameof(groupStore)); _playerStore = playerStore ?? throw new ArgumentNullException(nameof(playerStore)); _gameEngineService = gameEngineService ?? throw new ArgumentNullException(nameof(gameEngineService)); }
/// <summary> /// Constructor /// </summary> /// <param name="store">The IGroupStore is responsible for commiting changes via the UpdateAsync/CreateAsync methods</param> public GroupManager(IGroupStore <TGroup, TKey> store) { if (store == null) { throw new ArgumentNullException("store"); } this.Store = store; this.GroupValidator = new GroupValidator <TGroup, TKey>(this); }
public TextController(ITextStore textStore, IGroupStore groupStore, IModelFactory modelFactory) { //_textTempDb = textTempDb; //_groupTempDb = groupTempDb; _textStore = textStore; _groupStore = groupStore; _modelFactory = modelFactory; }
public GroupService(IBaseRepository <GroupEntity> groupRepository, IGroupStore groupStore, IValidator <AddGroupRequest> addGroupValidator, ILogger <GroupService> logger) { _groupRepository = groupRepository; _groupStore = groupStore; _addGroupValidator = addGroupValidator; _logger = logger; }
public GroupController(ITextStore textStore, IGroupStore groupStore, IModelFactory modelFactory) { //_tempDbText = textTempDb; //_tempDbGroup = groupTempDb; //_analysisController = analysisController; _textStore = textStore; _groupStore = groupStore; _modelFactory = modelFactory; }
public GroupService( IGroupStore groupStore, IRoleStore roleStore, IUserStore userStore, RoleService roleService) { _roleStore = roleStore; _userStore = userStore; _groupStore = groupStore ?? throw new ArgumentNullException(nameof(groupStore)); _roleService = roleService ?? throw new ArgumentNullException(nameof(roleService)); }
public GroupDataService(IBaseRepository <GroupEntity> groupRepository, IGroupStore groupStore, IGroupUserStore groupUserStore, IValidator <DataTableRequest> dataTableValidator, ILogger <GroupDataService> logger) { _groupRepository = groupRepository; _groupUserStore = groupUserStore; _groupStore = groupStore; _dataTableValidator = dataTableValidator; _logger = logger; }
public Grouper AddGroupStore(IGroupStore groupStore) { foreach (GroupStores store in groupStore.GetSupportedGroupStores()) { if (_groupStores.ContainsKey(store)) { throw new ArgumentException($"A group store for {store} is already added.", nameof(groupStore)); } _groupStores.Add(store, groupStore); } return(this); }
public GroupsController(UserManager <User> userManager, SignInManager <User> signInManager, ApplicationDbContext _context, IUserStore _userStore, IGroupStore _GroupStore, ILogger <GroupsController> _logger, IGroupRequestStore _GroupRequestStore, INotificationBox _notificationBox) { this.userManager = userManager; this.signInManager = signInManager; this._context = _context; this._userStore = _userStore; this._GroupStore = _GroupStore; this._logger = _logger; this._GroupRequestStore = _GroupRequestStore; this._notificationBox = _notificationBox; }
public void Initialize() { _db = new FingerprintLite13Entities(); _modelFactory = new ModelFactory(); _textStore = new TextStore(_db, _modelFactory); _groupStore = new GroupStore(_db, _modelFactory, _textStore); _uniqueNames = new ConcurrentStack <string>(); //Assuming we will never need more than 2 group names per method int namesNeeded = 2 * (this.GetType()).GetMethods().Count(); GenerateNames(namesNeeded, _uniqueNames); }
public GroupUserService(IBaseRepository <GroupUserEntity> groupUserRepository, IBaseRepository <AppUserEntity> userRepository, IBaseRepository <RoleEntity> roleRepository, IGroupUserStore groupUserStore, IGroupStore groupStore, IValidator <AddExistingUserRequest> addExistingUserValidator, ILogger <GroupUserService> logger) { _groupUserRepository = groupUserRepository; _userRepository = userRepository; _roleRepository = roleRepository; _groupUserStore = groupUserStore; _groupStore = groupStore; _addExistingUserValidator = addExistingUserValidator; _logger = logger; }
public GetUserProfileQuery(Guid Id, UserManager <User> UserManager, IUserStore UserStore, IFriendsListStore FriendListStore, IRequestStore RequestStore, IGroupStore GroupStore, ILogger <AccountsController> Logger, UserAccount existingAccount, IdentityUser Currentuser) { this.AccountId = Id; _UserManager = UserManager; _UserStore = UserStore; _FriendListStore = FriendListStore; _RequestStore = RequestStore; _GroupStore = GroupStore; _Logger = Logger; _CurrentUser = Currentuser; _ExistingAccount = existingAccount; _mapper = new MapperConfiguration(cfg => cfg.AddProfile <EntityMapper>()).CreateMapper(); }
public AccountsController(UserManager <User> userManager, SignInManager <User> signInManager, ApplicationDbContext _context, IUserStore _userStore, IFriendsListStore _FriendListStore, IRequestStore _RequestStore, INotificationBox _notificationBox, IGroupStore GroupStore, ILogger <AccountsController> _logger, IAdminRequestStore _AdminRequestStore) { this.userManager = userManager; this.signInManager = signInManager; this._context = _context; this._userStore = _userStore; this._FriendListStore = _FriendListStore; this._RequestStore = _RequestStore; this._notificationBox = _notificationBox; this.GroupStore = GroupStore; this._logger = _logger; this._AdminRequestStore = _AdminRequestStore; _mapper = new MapperConfiguration(cfg => cfg.AddProfile <EntityMapper>()).CreateMapper(); }
public GroupService( IBaseDAO <GroupEntity> groupDAO, IBaseDAO <InviteEntity> inviteDAO, IBaseDAO <GroupUserEntity> groupUserDAO, IGroupStore groupStore, IValidator <AddGroupRequest> addGroupValidator, IValidator <UpdateGroupModel> updateGroupModelValidator, ILogger <GroupService> logger) { _groupDAO = groupDAO; _inviteDAO = inviteDAO; _groupUserDAO = groupUserDAO; _groupStore = groupStore; _addGroupValidator = addGroupValidator; _updateGroupModelValidator = updateGroupModelValidator; _logger = logger; }
public InviteService(IBaseRepository <AppUserEntity> userRepository, IBaseRepository <InviteEntity> inviteRepository, IBaseRepository <RoleEntity> roleRepository, IGroupStore groupStore, IGroupUserStore groupUserStore, IEmailService mailService, IValidator <InviteToGroupRequest> inviteToGroupRequestValidator, IValidator <InviteRequest> inviteRequestValidator, ILogger <InviteService> logger, IOptionsSnapshot <IdentityUIOptions> identityManagementOptions, IOptionsSnapshot <IdentityUIEndpoints> identityManagementEndpoints) { _userRepository = userRepository; _inviteRepository = inviteRepository; _roleRepository = roleRepository; _groupStore = groupStore; _groupUserStore = groupUserStore; _mailService = mailService; _inviteToGroupRequestValidator = inviteToGroupRequestValidator; _inviteRequestValidator = inviteRequestValidator; _logger = logger; _identityManagementOptions = identityManagementOptions.Value; _identityManagementEndpoints = identityManagementEndpoints.Value; }
public DefaultGroups(IGroupStore groupStore) { _groupStore = groupStore; _dictionary = new ConcurrentDictionary <string, Group>(); }
public ApplicationGroupManager(IGroupStore <ApplicationGroup> groupStore) : base(groupStore) { }
public async Task <GroupInfo> GetGroupInfoAsync(GrouperDocument document) { IGroupStore store = GetGroupStore(document); return(await store.GetGroupInfoAsync(document.GroupId)); }
public ApplicationGroupManager(IGroupStore<ApplicationGroup> store) { _groupStore = store; }
public GroupService(IGroupStore groupStore, ILogger <GroupService> logger) { _groupStore = groupStore; _logger = logger; }
public DefaultEntities(IGroupStore groupStore) { _groups = new DefaultGroups(groupStore); }
public GroupService(IGroupStore groupStore) { _groupStore = groupStore; }
public GroupAdminSettingsDataService(IGroupStore groupStore, ILogger <GroupAdminSettingsDetailsModel> logger) { _groupStore = groupStore; _logger = logger; }
/// <summary>Initializes a new instance of the <see cref="GroupsController"/> class.</summary> /// <param name="store">The store used to get groups defined in the <c>/etc/group</c> file.</param> /// <exception cref="ArgumentNullException">If <paramref name="store"/> is <c>null</c>.</exception> public GroupsController(IGroupStore store) => this.store = store ?? throw new ArgumentNullException(nameof(store));