public UserSearcher(UlearnDb db, IAccessRestrictor accessRestrictor, IEnumerable <ISearcher> searchers, IEnumerable <IFilter> filters) { this.db = db; this.accessRestrictor = accessRestrictor; this.searchers = searchers.ToList(); this.filters = filters.ToList(); }
protected AbstractSearcherForInstructors( IUsersRepo usersRepo, ICourseRolesRepo courseRolesRepo, IAccessRestrictor accessRestrictor, bool hasSystemAdministratorAccess, bool hasCourseAdminAccess, bool hasInstructorAccessToGroupMembers, bool hasInstructorAccessToCourseInstructors, SearchField searchField ) { this.usersRepo = usersRepo; this.courseRolesRepo = courseRolesRepo; this.accessRestrictor = accessRestrictor; this.hasSystemAdministratorAccess = hasSystemAdministratorAccess; this.hasCourseAdminAccess = hasCourseAdminAccess; this.hasInstructorAccessToGroupMembers = hasInstructorAccessToGroupMembers; this.hasInstructorAccessToCourseInstructors = hasInstructorAccessToCourseInstructors; this.searchField = searchField; }
public AbstractSearcherForInstructors( IUsersRepo usersRepo, ICourseRolesRepo courseRolesRepo, IAccessRestrictor accessRestrictor, bool hasSystemAdministratorAccess, bool hasCourseAdminAccess, bool hasInstructorAccessToGroupMembers, bool hasInstructorAccessToCourseInstructors, SearchField searchField, params Expression <Func <ApplicationUser, string> >[] userProperties ) { if (userProperties.Length == 0) { throw new ArgumentException("UserProperties should be specified", nameof(userProperties)); } this.usersRepo = usersRepo; this.courseRolesRepo = courseRolesRepo; this.accessRestrictor = accessRestrictor; this.hasSystemAdministratorAccess = hasSystemAdministratorAccess; this.hasCourseAdminAccess = hasCourseAdminAccess; this.hasInstructorAccessToGroupMembers = hasInstructorAccessToGroupMembers; this.hasInstructorAccessToCourseInstructors = hasInstructorAccessToCourseInstructors; this.searchField = searchField; this.userProperties = userProperties; }
public SearcherByNames(IUsersRepo usersRepo, ICourseRolesRepo courseRolesRepo, IAccessRestrictor accessRestrictor) : base(usersRepo, courseRolesRepo, accessRestrictor, true, true, true, true, SearchField.Name, u => u.FirstName, u => u.LastName ) { }
public SearcherByLogin(IUsersRepo usersRepo, ICourseRolesRepo courseRolesRepo, IAccessRestrictor accessRestrictor) : base(usersRepo, courseRolesRepo, accessRestrictor, true, true, true, true, SearchField.Login ) { }
public SearcherBySocialLogin(IUsersRepo usersRepo, ICourseRolesRepo courseRolesRepo, IAccessRestrictor accessRestrictor) { this.usersRepo = usersRepo; this.courseRolesRepo = courseRolesRepo; this.accessRestrictor = accessRestrictor; }
public SearcherByEmail(IUsersRepo usersRepo, ICourseRolesRepo courseRolesRepo, IAccessRestrictor accessRestrictor) : base(usersRepo, courseRolesRepo, accessRestrictor, true, true, true, false, SearchField.Email, u => u.Email ) { }