コード例 #1
0
        protected AbpUserManager(
            AbpUserStore <TRole, TUser> userStore,
            AbpRoleManager <TRole, TUser> roleManager,
            IRepository <TTenant> tenantRepository,
            IMultiTenancyConfig multiTenancyConfig,
            IPermissionManager permissionManager,
            IUnitOfWorkManager unitOfWorkManager,
            ISettingManager settingManager,
            IUserManagementConfig userManagementConfig,
            IIocResolver iocResolver,
            ICacheManager cacheManager,
            IRepository <OrganizationUnit, long> organizationUnitRepository,
            IRepository <UserOrganizationUnit, long> userOrganizationUnitRepository,
            IOrganizationUnitSettings organizationUnitSettings,
            IRepository <UserLoginAttempt, long> userLoginAttemptRepository)
            : base(userStore)
        {
            AbpStore                        = userStore;
            RoleManager                     = roleManager;
            SettingManager                  = settingManager;
            _tenantRepository               = tenantRepository;
            _multiTenancyConfig             = multiTenancyConfig;
            _permissionManager              = permissionManager;
            _unitOfWorkManager              = unitOfWorkManager;
            _userManagementConfig           = userManagementConfig;
            _iocResolver                    = iocResolver;
            _cacheManager                   = cacheManager;
            _organizationUnitRepository     = organizationUnitRepository;
            _userOrganizationUnitRepository = userOrganizationUnitRepository;
            _organizationUnitSettings       = organizationUnitSettings;
            _userLoginAttemptRepository     = userLoginAttemptRepository;

            LocalizationManager = NullLocalizationManager.Instance;
            AbpSession          = NullAbpSession.Instance;
        }
コード例 #2
0
 public UserManager(
     UserStore store,
     RoleManager roleManager,
     IRepository <Tenant> tenantRepository,
     IMultiTenancyConfig multiTenancyConfig,
     IPermissionManager permissionManager,
     IUnitOfWorkManager unitOfWorkManager,
     ISettingManager settingManager,
     IUserManagementConfig userManagementConfig,
     IIocResolver iocResolver,
     ICacheManager cacheManager)
     : base(
         store,
         roleManager,
         tenantRepository,
         multiTenancyConfig,
         permissionManager,
         unitOfWorkManager,
         settingManager,
         userManagementConfig,
         iocResolver,
         cacheManager
         )
 {
 }
コード例 #3
0
ファイル: HozaruUserManager.cs プロジェクト: dennywu/hozaru
        protected HozaruUserManager(
            HozaruUserStore <TTenant, TRole, TUser> userStore,
            HozaruRoleManager <TTenant, TRole, TUser> roleManager,
            IRepository <TTenant, int> tenantRepository,
            IMultiTenancyConfig multiTenancyConfig,
            IPermissionManager permissionManager,
            IUnitOfWorkManager unitOfWorkManager,
            ISettingManager settingManager,
            IUserManagementConfig userManagementConfig,
            IIocResolver iocResolver,
            ICacheManager cacheManager,
            IRepository <OrganizationUnit, long> organizationUnitRepository,
            IRepository <UserOrganizationUnit, long> userOrganizationUnitRepository,
            IOrganizationUnitSettings organizationUnitSettings)
            : base(userStore)
        {
            HozaruStore                     = userStore;
            RoleManager                     = roleManager;
            SettingManager                  = settingManager;
            _tenantRepository               = tenantRepository;
            _multiTenancyConfig             = multiTenancyConfig;
            _permissionManager              = permissionManager;
            _unitOfWorkManager              = unitOfWorkManager;
            _userManagementConfig           = userManagementConfig;
            _iocResolver                    = iocResolver;
            _cacheManager                   = cacheManager;
            _organizationUnitRepository     = organizationUnitRepository;
            _userOrganizationUnitRepository = userOrganizationUnitRepository;
            _organizationUnitSettings       = organizationUnitSettings;

            //LocalizationManager = NullLocalizationManager.Instance;
        }
コード例 #4
0
 public LogInManager(
     UserManager userManager,
     IMultiTenancyConfig multiTenancyConfig,
     IRepository <Tenant> tenantRepository,
     IUnitOfWorkManager unitOfWorkManager,
     ISettingManager settingManager,
     IRepository <UserLoginAttempt, long> userLoginAttemptRepository,
     IUserManagementConfig userManagementConfig,
     IIocResolver iocResolver,
     IPasswordHasher <User> passwordHasher,
     RoleManager roleManager,
     UserClaimsPrincipalFactory claimsPrincipalFactory)
     : base(
         userManager,
         multiTenancyConfig,
         tenantRepository,
         unitOfWorkManager,
         settingManager,
         userLoginAttemptRepository,
         userManagementConfig,
         iocResolver,
         passwordHasher,
         roleManager,
         claimsPrincipalFactory)
 {
 }
コード例 #5
0
        public CodeZeroLogInManager(
            CodeZeroUserManager <TRole, TUser> userManager,
            IMultiTenancyConfig multiTenancyConfig,
            IRepository <TTenant> tenantRepository,
            IUnitOfWorkManager unitOfWorkManager,
            ISettingManager settingManager,
            IRepository <UserLoginAttempt, long> userLoginAttemptRepository,
            IUserManagementConfig userManagementConfig,
            IIocResolver iocResolver,
            IPasswordHasher <TUser> passwordHasher,
            CodeZeroRoleManager <TRole, TUser> roleManager,
            CodeZeroUserClaimsPrincipalFactory <TUser, TRole> claimsPrincipalFactory)
        {
            _passwordHasher            = passwordHasher;
            _claimsPrincipalFactory    = claimsPrincipalFactory;
            MultiTenancyConfig         = multiTenancyConfig;
            TenantRepository           = tenantRepository;
            UnitOfWorkManager          = unitOfWorkManager;
            SettingManager             = settingManager;
            UserLoginAttemptRepository = userLoginAttemptRepository;
            UserManagementConfig       = userManagementConfig;
            IocResolver = iocResolver;
            RoleManager = roleManager;
            UserManager = userManager;

            ClientInfoProvider = NullClientInfoProvider.Instance;
        }
コード例 #6
0
ファイル: UserManager.cs プロジェクト: yincen/UseRedisInAbp
 public UserManager(
     UserStore store,
     RoleManager roleManager,
     IRepository <Tenant> tenantRepository,
     IMultiTenancyConfig multiTenancyConfig,
     IPermissionManager permissionManager,
     IUnitOfWorkManager unitOfWorkManager,
     ISettingManager settingManager,
     IUserManagementConfig userManagementConfig,
     IIocResolver iocResolver,
     ICacheManager cacheManager,
     IRepository <OrganizationUnit, long> organizationUnitRepository,
     IRepository <UserOrganizationUnit, long> userOrganizationUnitRepository,
     IOrganizationUnitSettings organizationUnitSettings
     )
     : base(
         store,
         roleManager,
         tenantRepository,
         multiTenancyConfig,
         permissionManager,
         unitOfWorkManager,
         settingManager,
         userManagementConfig,
         iocResolver,
         cacheManager,
         organizationUnitRepository,
         userOrganizationUnitRepository,
         organizationUnitSettings)
 {
 }
コード例 #7
0
        protected AbpUserManager(
            AbpUserStore <TTenant, TRole, TUser> userStore,
            AbpRoleManager <TTenant, TRole, TUser> roleManager,
            IRepository <TTenant> tenantRepository,
            IMultiTenancyConfig multiTenancyConfig,
            IPermissionManager permissionManager,
            IUnitOfWorkManager unitOfWorkManager,
            ISettingManager settingManager,
            IUserManagementConfig userManagementConfig,
            IIocResolver iocResolver,
            ICacheManager cacheManager)
            : base(userStore)
        {
            AbpStore              = userStore;
            RoleManager           = roleManager;
            SettingManager        = settingManager;
            _tenantRepository     = tenantRepository;
            _multiTenancyConfig   = multiTenancyConfig;
            _permissionManager    = permissionManager;
            _unitOfWorkManager    = unitOfWorkManager;
            _userManagementConfig = userManagementConfig;
            _iocResolver          = iocResolver;

            _userPermissionCache = cacheManager.GetUserPermissionCache();

            LocalizationManager = NullLocalizationManager.Instance;
        }
コード例 #8
0
        //public ILanguageManagementConfig LanguageManagement
        //{
        //    get { return _languageManagement; }
        //}

        //private readonly ILanguageManagementConfig _languageManagement;


        public OwMembershipConfig(
            IRoleManagementConfig roleManagementConfig, 
            IUserManagementConfig userManagementConfig)
            //ILanguageManagementConfig languageManagement)
        {
            _roleManagementConfig = roleManagementConfig;
            _userManagementConfig = userManagementConfig;
           // _languageManagement = languageManagement;
        }
コード例 #9
0
ファイル: AbpZeroConfig.cs プロジェクト: dazyzsy/module-zero
 public AbpZeroConfig(
     IRoleManagementConfig roleManagementConfig, 
     IUserManagementConfig userManagementConfig,
     ILanguageManagementConfig languageManagement)
 {
     _roleManagementConfig = roleManagementConfig;
     _userManagementConfig = userManagementConfig;
     _languageManagement = languageManagement;
 }
コード例 #10
0
 public JTConfig(
     IRoleManagementConfig roleManagementConfig,
     IUserManagementConfig userManagementConfig,
     IJTEntityTypes entityTypes)
 {
     _entityTypes          = entityTypes;
     _roleManagementConfig = roleManagementConfig;
     _userManagementConfig = userManagementConfig;
 }
コード例 #11
0
        //public ILanguageManagementConfig LanguageManagement
        //{
        //    get { return _languageManagement; }
        //}
        //private readonly ILanguageManagementConfig _languageManagement;


        public HozaruIdentityConfig(
            IRoleManagementConfig roleManagementConfig,
            IUserManagementConfig userManagementConfig
            /*ILanguageManagementConfig languageManagement*/)
        {
            _roleManagementConfig = roleManagementConfig;
            _userManagementConfig = userManagementConfig;
            //_languageManagement = languageManagement;
        }
コード例 #12
0
ファイル: AbpZeroConfig.cs プロジェクト: dym0080/ABPstudy
 public AbpZeroConfig(
     IRoleManagementConfig roleManagementConfig,
     IUserManagementConfig userManagementConfig,
     ILanguageManagementConfig languageManagement)
 {
     _roleManagementConfig = roleManagementConfig;
     _userManagementConfig = userManagementConfig;
     _languageManagement   = languageManagement;
 }
コード例 #13
0
 public AbpZeroConfig(
     IRoleManagementConfig roleManagementConfig,
     IUserManagementConfig userManagementConfig,
     ILanguageManagementConfig languageManagement,
     IAbpZeroEntityTypes entityTypes)
 {
     _entityTypes = entityTypes;
     _roleManagementConfig = roleManagementConfig;
     _userManagementConfig = userManagementConfig;
     _languageManagement = languageManagement;
 }
コード例 #14
0
ファイル: AbpZeroConfig.cs プロジェクト: 19900623/ABPStudy
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="roleManagementConfig">角色管理配置</param>
 /// <param name="userManagementConfig">用户管理配置</param>
 /// <param name="languageManagement">语言管理配置</param>
 /// <param name="entityTypes">实体类型</param>
 public AbpZeroConfig(
     IRoleManagementConfig roleManagementConfig,
     IUserManagementConfig userManagementConfig,
     ILanguageManagementConfig languageManagement,
     IAbpZeroEntityTypes entityTypes)
 {
     _entityTypes          = entityTypes;
     _roleManagementConfig = roleManagementConfig;
     _userManagementConfig = userManagementConfig;
     _languageManagement   = languageManagement;
 }
コード例 #15
0
 public StudioXZeroConfig(
     IRoleManagementConfig roleManagementConfig,
     IUserManagementConfig userManagementConfig,
     ILanguageManagementConfig languageManagement,
     IStudioXZeroEntityTypes entityTypes)
 {
     this.entityTypes          = entityTypes;
     this.roleManagementConfig = roleManagementConfig;
     this.userManagementConfig = userManagementConfig;
     this.languageManagement   = languageManagement;
 }
コード例 #16
0
ファイル: CommonFrameConfig.cs プロジェクト: llenroc/Movie
 public CommonFrameConfig(
     IRoleManagementConfig roleManagementConfig,
     IUserManagementConfig userManagementConfig,
     ILanguageManagementConfig languageManagement,
     ICommonFrameEntityTypes entityTypes)
 {
     _entityTypes          = entityTypes;
     _roleManagementConfig = roleManagementConfig;
     _userManagementConfig = userManagementConfig;
     _languageManagement   = languageManagement;
 }
コード例 #17
0
 public LogInManager(
     UserManager userManager,
     IMultiTenancyConfig multiTenancyConfig,
     IRepository <Tenant> tenantRepository,
     IUnitOfWorkManager unitOfWorkManager,
     ISettingManager settingManager,
     IRepository <UserLoginAttempt, long> userLoginAttemptRepository,
     IUserManagementConfig userManagementConfig,
     IIocResolver iocResolver,
     RoleManager roleManager)
     : base(userManager, multiTenancyConfig, tenantRepository, unitOfWorkManager, settingManager, userLoginAttemptRepository, userManagementConfig, iocResolver, roleManager)
 {
 }
コード例 #18
0
        protected LogInManager(
            UserManager <TRole, TUser> userManager, IUserManagementConfig userManagementConfig,

            IRepository <UserLoginAttempt, long> userLoginAttemptRepository, IRepositoryContext repositoryContext,

            RoleManager <TRole, TUser> roleManager)
        {
            UserLoginAttemptRepository = userLoginAttemptRepository;
            _repositoryContext         = repositoryContext;
            RoleManager          = roleManager;
            UserManager          = userManager;
            UserManagementConfig = userManagementConfig;
            ClientInfoProvider   = NullClientInfoProvider.Instance;
        }
コード例 #19
0
        public UserManager(
            UserStore store,
            RoleManager roleManager,
            EmailService emailService,
            IRepository <Tenant> tenantRepository,
            IMultiTenancyConfig multiTenancyConfig,
            IPermissionManager permissionManager,
            IUnitOfWorkManager unitOfWorkManager,
            ISettingManager settingManager,
            IUserManagementConfig userManagementConfig,
            IIocResolver iocResolver,
            IUserTokenProvider <User, long> userTokenProvider,
            ICacheManager cacheManager)
            : base(
                store,
                roleManager,
                tenantRepository,
                multiTenancyConfig,
                permissionManager,
                unitOfWorkManager,
                settingManager,
                userManagementConfig,
                iocResolver,
                cacheManager
                )
        {
            this.EmailService = emailService;

            //RegisterTwoFactorProvider("PhoneCode",new PhoneNumberTokenProvider<User,long>()
            //{
            //    MessageFormat = "your code is {0}"
            //});

            //RegisterTwoFactorProvider("EmailCode", new EmailTokenProvider<User, long>()
            //{
            //    Subject = "securiyCode",
            //    BodyFormat = "your code is {0}"
            //});
            //UserTokenProvider = new EmailTokenProvider<User, long>()
            //{
            //    Subject = "securiyCode",
            //    BodyFormat = "your code is {0}"
            //};
            //IUserSecurityStampStore<>
            UserTokenProvider = userTokenProvider;
        }
コード例 #20
0
        public SmdLogInManager(
            SmdUserManager <TRole, TUser> userManager,
            ISettingManager settingManager,
            IRepository <UserLoginAttempt, long> userLoginAttemptRepository,
            IUserManagementConfig userManagementConfig,
            IPasswordHasher <TUser> passwordHasher,
            SmdRoleManager <TRole, TUser> roleManager,
            SmdUserClaimsPrincipalFactory <TUser, TRole> claimsPrincipalFactory)
        {
            _passwordHasher            = passwordHasher;
            _claimsPrincipalFactory    = claimsPrincipalFactory;
            SettingManager             = settingManager;
            UserLoginAttemptRepository = userLoginAttemptRepository;
            UserManagementConfig       = userManagementConfig;
            RoleManager = roleManager;
            UserManager = userManager;

            // ClientInfoProvider = NullClientInfoProvider.Instance;
        }
コード例 #21
0
        protected AbpLogInManager(
            AbpUserManager <TRole, TUser> userManager,
            IMultiTenancyConfig multiTenancyConfig,
            IRepository <TTenant> tenantRepository,
            IUnitOfWorkManager unitOfWorkManager,
            ISettingManager settingManager,
            IRepository <UserLoginAttempt, long> userLoginAttemptRepository,
            IUserManagementConfig userManagementConfig,
            IIocResolver iocResolver,
            AbpRoleManager <TRole, TUser> roleManager)
        {
            MultiTenancyConfig         = multiTenancyConfig;
            TenantRepository           = tenantRepository;
            UnitOfWorkManager          = unitOfWorkManager;
            SettingManager             = settingManager;
            UserLoginAttemptRepository = userLoginAttemptRepository;
            UserManagementConfig       = userManagementConfig;
            IocResolver = iocResolver;
            RoleManager = roleManager;
            UserManager = userManager;

            ClientInfoProvider = NullClientInfoProvider.Instance;
        }
コード例 #22
0
        public LogInManager(
            CommonFrameUserManager <TRole, TUser> userManager,
            IMultiTenancyConfig multiTenancyConfig,
            IRepository <TTenant> tenantRepository,
            IUnitOfWorkManager unitOfWorkManager,
            ISettingManager settingManager,
            IRepository <UserLoginAttempt, long> userLoginAttemptRepository,
            IUserManagementConfig userManagementConfig,
            IIocResolver iocResolver,
            CommonFrameRoleManager <TRole, TUser> roleManager)
        {
            _multiTenancyConfig         = multiTenancyConfig;
            _tenantRepository           = tenantRepository;
            _unitOfWorkManager          = unitOfWorkManager;
            _settingManager             = settingManager;
            _userLoginAttemptRepository = userLoginAttemptRepository;
            _userManagementConfig       = userManagementConfig;
            _iocResolver = iocResolver;
            _roleManager = roleManager;
            _userManager = userManager;

            ClientInfoProvider = NullClientInfoProvider.Instance;
        }
コード例 #23
0
 public UserManager(
     UserStore store,
     RoleManager roleManager,
     IRepository <Tenant> tenantRepository,
     IMultiTenancyConfig multiTenancyConfig,
     IPermissionManager permissionManager,
     IUnitOfWorkManager unitOfWorkManager,
     ISettingManager settingManager,
     IUserManagementConfig userManagementConfig,
     IIocResolver iocResolver)
     : base(
         store,
         roleManager,
         tenantRepository,
         multiTenancyConfig,
         permissionManager,
         unitOfWorkManager,
         settingManager,
         userManagementConfig,
         iocResolver)
 {
     _userStore = store;
     //ClaimsIdentityFactory = new ClaimsFactory();
 }
コード例 #24
0
 public BlogUserManager(
     BlogUserStore store,
     BlogRoleManager blogRoleManager,
     ISampleBlogRepository <BlogTenant> tenantRepository,
     IMultiTenancyConfig multiTenancyConfig,
     IPermissionManager permissionManager,
     IUnitOfWorkManager unitOfWorkManager,
     ISettingManager settingManager,
     IUserManagementConfig userManagementConfig,
     IIocResolver iocResolver,
     ICacheManager cacheManager)
     : base(
         store,
         blogRoleManager,
         tenantRepository,
         multiTenancyConfig,
         permissionManager,
         unitOfWorkManager,
         settingManager,
         userManagementConfig,
         iocResolver,
         cacheManager)
 {
 }
コード例 #25
0
 public AbpZeroConfig(IRoleManagementConfig roleManagementConfig, IUserManagementConfig userManagementConfig)
 {
     _roleManagementConfig = roleManagementConfig;
     _userManagementConfig = userManagementConfig;
 }
コード例 #26
0
ファイル: LoginManager.cs プロジェクト: Boxfusion/shesha-core
 public LogInManager(AbpUserManager <Role, User> userManager, IMultiTenancyConfig multiTenancyConfig, IRepository <Tenant> tenantRepository, IUnitOfWorkManager unitOfWorkManager, ISettingManager settingManager, IUserManagementConfig userManagementConfig, IIocResolver iocResolver, IPasswordHasher <User> passwordHasher, AbpRoleManager <Role, User> roleManager, AbpUserClaimsPrincipalFactory <User, Role> claimsPrincipalFactory, IRepository <ShaUserLoginAttempt, Guid> shaLoginAttemptRepository, IRepository <MobileDevice, Guid> mobileDeviceRepository) : base(userManager, multiTenancyConfig, tenantRepository, unitOfWorkManager, settingManager, userManagementConfig, iocResolver, passwordHasher, roleManager, claimsPrincipalFactory, shaLoginAttemptRepository, mobileDeviceRepository)
 {
 }
コード例 #27
0
 public AbpZeroConfig(IRoleManagementConfig roleManagementConfig, IUserManagementConfig userManagementConfig)
 {
     _roleManagementConfig = roleManagementConfig;
     _userManagementConfig = userManagementConfig;
 }