예제 #1
0
        public AbpRoleManager(
            AbpRoleStore <TRole, TUser> store,
            IEnumerable <IRoleValidator <TRole> > roleValidators,
            ILookupNormalizer keyNormalizer,
            IdentityErrorDescriber errors,
            ILogger <AbpRoleManager <TRole, TUser> > logger,
            IPermissionManager permissionManager,
            ICacheManager cacheManager,
            IUnitOfWorkManager unitOfWorkManager,
            IRoleManagementConfig roleManagementConfig)
            : base(
                store,
                roleValidators,
                keyNormalizer,
                errors,
                logger)
        {
            _permissionManager = permissionManager;
            _cacheManager      = cacheManager;
            _unitOfWorkManager = unitOfWorkManager;

            RoleManagementConfig = roleManagementConfig;
            AbpStore             = store;
            AbpSession           = NullAbpSession.Instance;
            LocalizationManager  = NullLocalizationManager.Instance;
        }
예제 #2
0
        public AbpRoleManager(
            AbpRoleStore <TRole, TUser> store,
            IEnumerable <IRoleValidator <TRole> > roleValidators,
            ILookupNormalizer keyNormalizer,
            IdentityErrorDescriber errors,
            ILogger <AbpRoleManager <TRole, TUser> > logger,
            IPermissionManager permissionManager,
            ICacheManager cacheManager,
            IUnitOfWorkManager unitOfWorkManager,
            IRoleManagementConfig roleManagementConfig,
            IRepository <OrganizationUnit, long> organizationUnitRepository,
            IRepository <OrganizationUnitRole, long> organizationUnitRoleRepository)
            : base(
                store,
                roleValidators,
                keyNormalizer,
                errors,
                logger)
        {
            _permissionManager = permissionManager;
            _cacheManager      = cacheManager;
            _unitOfWorkManager = unitOfWorkManager;

            RoleManagementConfig            = roleManagementConfig;
            _organizationUnitRepository     = organizationUnitRepository;
            _organizationUnitRoleRepository = organizationUnitRoleRepository;
            AbpStore               = store;
            AbpSession             = NullAbpSession.Instance;
            LocalizationManager    = NullLocalizationManager.Instance;
            LocalizationSourceName = AbpZeroConsts.LocalizationSourceName;
        }
예제 #3
0
 /// <summary>
 /// Constructor.
 /// </summary>
 protected AbpRoleManager(
     AbpRoleStore <TTenant, TRole, TUser> store,
     IPermissionManager permissionManager,
     IRoleManagementConfig roleManagementConfig,
     IUnitOfWorkManager unitOfWorkManager)
     : base(store)
 {
     RoleManagementConfig = roleManagementConfig;
     _permissionManager   = permissionManager;
     _unitOfWorkManager   = unitOfWorkManager;
     AbpStore             = store;
     AbpSession           = NullAbpSession.Instance;
     LocalizationManager  = NullLocalizationManager.Instance;
 }
예제 #4
0
        /// <summary>
        /// Constructor.
        /// </summary>
        protected AbpRoleManager(
            AbpRoleStore <TTenant, TRole, TUser> store,
            IPermissionManager permissionManager,
            IRoleManagementConfig roleManagementConfig,
            ICacheManager cacheManager)
            : base(store)
        {
            _permissionManager = permissionManager;
            _cacheManager      = cacheManager;

            RoleManagementConfig = roleManagementConfig;
            AbpStore             = store;
            AbpSession           = NullAbpSession.Instance;
            LocalizationManager  = NullLocalizationManager.Instance;
        }
예제 #5
0
        /// <summary>
        /// Constructor.
        /// </summary>
        protected AbpRoleManager(
            AbpRoleStore <TRole, TUser> store,
            IPermissionManager permissionManager,
            IRoleManagementConfig roleManagementConfig,
            ICacheManager cacheManager,
            IUnitOfWorkManager unitOfWorkManager)
            : base(store)
        {
            PermissionManager = permissionManager;
            CacheManager      = cacheManager;
            UnitOfWorkManager = unitOfWorkManager;

            RoleManagementConfig   = roleManagementConfig;
            AbpStore               = store;
            AbpSession             = NullAbpSession.Instance;
            LocalizationManager    = NullLocalizationManager.Instance;
            LocalizationSourceName = AbpZeroConsts.LocalizationSourceName;
        }
예제 #6
0
 protected AbpRoleManager(AbpRoleStore <TRole, TTenant, TUser> store, IPermissionManager permissionManager)
     : base(store)
 {
     _permissionManager = permissionManager;
 }
예제 #7
0
 public AbpRoleManager(AbpRoleStore store, IPermissionManager permissionManager)
     : base(store)
 {
     _permissionManager = permissionManager;
 }