public JwtAuthorization(IOptions <AppSettings> options,
                         IUserRepository UserRepository, IPasswordManager PasswordManager,
                         IRolesRepository RolesRepository, IPermissionsRepository PermissionsRepository)
 {
     this.options          = options;
     passwordManager       = PasswordManager;
     userRepository        = UserRepository;
     rolesRepository       = RolesRepository;
     permissionsRepository = PermissionsRepository;
 }
Example #2
0
 public RoleAssignmentService(
     IMapper mapper,
     IRoleAssignmentRepository roleAssignmentRepository,
     IPermissionsRepository permissionsRepository,
     IConfigurationService configurationService)
 {
     _mapper = mapper;
     _roleAssignmentRepository = roleAssignmentRepository;
     _permissionsRepository    = permissionsRepository;
     _configurationService     = configurationService;
 }
 /// <summary>
 /// Initializes a new instance of
 /// type PermissionsService.
 /// </summary>
 /// <param name="PermissionsRepository"></param>
 /// <param name="unitOfWork"></param>
 public PermissionsService(
     IPermissionsRepository PermissionsRepository,
     IRolePermissionsRepository rolePermissionsRepository,
     IUserPermissionsRepository userPermissionsRepository,
     IGroupPermissionsRepository groupPermissionsRepository,
     ILanguageService languageService,
     IUnitOfWork unitOfWork)
 {
     this._PermissionsRepository      = PermissionsRepository;
     this._rolePermissionsRepository  = rolePermissionsRepository;
     this._userPermissionsRepository  = userPermissionsRepository;
     this._groupPermissionsRepository = groupPermissionsRepository;
     this._languageService            = languageService;
     this._unitOfWork = unitOfWork;
 }
Example #4
0
 private void ResetRepositories()
 {
     _productRepository            = null;
     _categoryRepository           = null;
     _StaffRepository              = null;
     _companyRepository1           = null;
     _deputyRepository             = null;
     _usersRepository              = null;
     _userTypeRepository           = null;
     _userGroupRepository          = null;
     _permissionsRepository        = null;
     _poRepository                 = null;
     _poDetailRepository           = null;
     _quotationDetailRepository    = null;
     _quotationRepository          = null;
     _companyRepository1           = null;
     _deputyRepository             = null;
     _subCategoryRepository        = null;
     _seriesRepository             = null;
     _productStandardRepository    = null;
     _classProductRepository       = null;
     _classSafetyRepository        = null;
     _lampTypeRepository           = null;
     _bankBaseRepository           = null;
     _materialRepository           = null;
     _supplierRepository           = null;
     _planningRepository           = null;
     _planningDetailRepository     = null;
     _originRepository             = null;
     _unitRepository               = null;
     _gridviewRepository           = null;
     _deliveryRepository           = null;
     _paymentMethodRepository      = null;
     _gridviewRepository           = null;
     _projectBaseRepository        = null;
     _requestPaymentBaseRepository = null;
     _paymentRepository            = null;
     _approveLogRepository         = null;
     _debtDetailRepository         = null;
     _requestSentRepository        = null;
     _suggestionRepository         = null;
 }
Example #5
0
 public AccountServices(
     IUsersRepository users_dal,
     IModulesRepository modules_dal,
     IRolesRepository role_dal,
     IRoleUsersRepository roleUsers_dal,
     IUserGroupsRepository userGroups_dal,
     IUserGroupRolesRepository userGroupRoles_dal,
     IUserGroupUsersRepository userGroupUsers_dal,
     IPermissionRolesRepository permissionRoles_dal,
     IPermissionsRepository permissions_dal
     )
 {
     _users_dal           = users_dal;
     _modules_dal         = modules_dal;
     _role_dal            = role_dal;
     _roleUsers_dal       = roleUsers_dal;
     _userGroups_dal      = userGroups_dal;
     _userGroupRoles_dal  = userGroupRoles_dal;
     _userGroupUsers_dal  = userGroupUsers_dal;
     _permissionRoles_dal = permissionRoles_dal;
     _permissions_dal     = permissions_dal;
 }
Example #6
0
 public ActionPermissionRepository(ILogger <ActionPermissionRepository> logger,
                                   IPermissionsRepository PermissionsRepository, IActionRolesRepository ActionRoles) : base(logger)
 {
     this.PermissionsRepository = PermissionsRepository;
     this.ActionRoles           = ActionRoles;
 }
 public PermissionsService(IPermissionsRepository repository) => _repository = repository;
Example #8
0
 public DbRoleValidator(IRolesRepository RolesRepository, IPermissionsRepository PermissionsRepository)
 {
     this.RolesRepository       = RolesRepository;
     this.PermissionsRepository = PermissionsRepository;
 }
Example #9
0
 public EmployeeDoorAuthorizationHandler(IPermissionsRepository permissionsRepository)
 {
     _permissionsRepository = permissionsRepository;
 }
Example #10
0
 public PermissionsController(IPermissionsRepository permissionsRepository)
 {
     _permissionsRepository = permissionsRepository;
 }
Example #11
0
 public PermissionsService(IPermissionsRepository PermissionsRepository)
 {
     this._PermissionsRepository = PermissionsRepository ??
                                   throw new ArgumentNullException(nameof(PermissionsRepository));
 }
 public PermissionsService(IPermissionsRepository permissionsRepository)
 {
     _permissionsRepository = permissionsRepository;
 }
 public PermissionsService(IPermissionsRepository permissionsRepository, IRolePermissionsJoinRepository rolePermissionsJoinRepository)
 {
     _permissionsRepository         = permissionsRepository;
     _rolePermissionsJoinRepository = rolePermissionsJoinRepository;
 }
Example #14
0
 public PermissionsServices(IPermissionsRepository dal)
 {
     this.dal     = dal;
     base.baseDal = dal;
 }
 public RoleInitializer(IRolesRepository RoleRepository, IPermissionsRepository PermissionsRepository)
 {
     this.roleRepository        = RoleRepository;
     this.permissionsRepository = PermissionsRepository;
 }
Example #16
0
 /// <summary>
 /// 权限服务
 /// </summary>
 /// <param name="permissionsRepository"></param>
 public PermissionService(IPermissionsRepository permissionsRepository)
 {
     _permissionsRepository = permissionsRepository;
 }
Example #17
0
 public PermissionsService(IPermissionsRepository permissionsRepository, IMapper mapper)
 {
     _permissionsRepository = permissionsRepository;
     _mapper = mapper;
 }
 public PermissionsService(IPermissionsRepository permissionsRepository, IRolesCsvProvider rolesCsvProvider)
 {
     _permissionsRepository = permissionsRepository;
     _rolesCsvProvider = rolesCsvProvider;
 }
Example #19
0
 public PermissionsService(IPermissionsRepository permissionsRepository, ILog log)
 {
     _permissionsRepository = permissionsRepository;
     Log = log;
 }
Example #20
0
 public PermissionsService(IPermissionsRepository permissionsRepository, IUsersService usersService)
 {
     _permissionsRepository = permissionsRepository;
     _usersService          = usersService;
 }
Example #21
0
 public PermissionsController(IPermissionsRepository studentsRepository,
                              IEnrollmentRepository enrollmentRepository)
 {
     _permissionsRepository = studentsRepository;
     _enrollmentRepository  = enrollmentRepository;
 }