Ejemplo n.º 1
0
 public UserService(IUserAccountRepository userAccountRepository, ICustomerRepository customerRepository, IUserRoleRepository userRoleRepository, IRoleRepository roleRepository)
 {
     _customerRepository = customerRepository;
     _userRoleRepository = userRoleRepository;
     _roleRepository = roleRepository;
     _userAccountRepository = userAccountRepository;
 }
 public UserService(ModelStateDictionary modelState, 
     IUserRepository userRepository, IRoleRepository roleRepository)
 {
     _modelState = modelState;
     _users = userRepository;
     _roles = roleRepository;
 }
Ejemplo n.º 3
0
 public RoleService(IRoleRepository roleRepository, ICategoryPermissionForRoleRepository categoryPermissionForRoleRepository, IPermissionRepository permissionRepository, IGlobalPermissionForRoleRepository globalPermissionForRoleRepository)
 {
     _roleRepository = roleRepository;
     _categoryPermissionForRoleRepository = categoryPermissionForRoleRepository;
     _permissionRepository = permissionRepository;
     _globalPermissionForRoleRepository = globalPermissionForRoleRepository;
 }
Ejemplo n.º 4
0
 public EveOnlineService(
     IUnitOfWork unitOfWork,
     IEveOnlineConstellationRepository eveOnlineConstellationRepository,
     IEveOnlineTypeRepository eveOnlineTypeRepository,
     IEveOnlineRegionRepository eveOnlineRegionRepository,
     IEveOnlineSolarSystemRepository eveOnlineSolarSystemRepository,
     IGenericRepository<EveOnlineSkill> eveOnlineSkillRepository,
     IGenericRepository<EveOnlineSkillGroup> eveOnlineSkillGroupRepository,
     IGenericRepository<EveOnlineSkillTree> eveOnlineSkillTreeRepository,
     IEveOnlineRequiredSkillRepository eveOnlineRequiredSkillRepository,
     IGenericRepository<EveOnlineAttribute> eveOnlineAttributeRepository,
     IGenericRepository<UserLog> userLogRepository,
     IRoleRepository roleRepository)
 {
     UnitOfWork = unitOfWork;
     _eveOnlineConstellationRepository = eveOnlineConstellationRepository;
     _eveOnlineTypeRepository = eveOnlineTypeRepository;
     _eveOnlineRegionRepository = eveOnlineRegionRepository;
     _eveOnlineSolarSystemRepository = eveOnlineSolarSystemRepository;
     _eveOnlineSkillRepository = eveOnlineSkillRepository;
     _eveOnlineSkillGroupRepository = eveOnlineSkillGroupRepository;
     _eveOnlineSkillTreeRepository = eveOnlineSkillTreeRepository;
     _eveOnlineRequiredSkillRepository = eveOnlineRequiredSkillRepository;
     _eveOnlineAttributeRepository = eveOnlineAttributeRepository;
     _userLogRepository = userLogRepository;
     _roleRepository = roleRepository;
 }
 public UserRoleListModel(IRoleRepository roleRepository, IUserRoleRepository userRoleRepository, IUnitOfWork unitOfWork)
     : base()
 {
     _roleRepository = roleRepository;
     _userRoleRepository = userRoleRepository;
     _unitOfWork = unitOfWork;
 }
 public UserProjectRoleRelationLogic(IUserRepository userRepository,  IUserProjectRoleRelationRepository userProjectRoleRelationRepository, IRoleRepository roleRepository, IProjectRepository projectRepository)
 {
     _userRepository = userRepository;
     _userProjectRoleRelationRepository = userProjectRoleRelationRepository;
     _roleRepository = roleRepository;
     _projectRepository = projectRepository;
 }
Ejemplo n.º 7
0
 public ProfileController(IRoleRepository roleRepository, IEmployeeRepository employeeRepository, IDepartmentRepository departmentRepository, ISeatingFloorRespository seatingFloorRespository)
 {
     this.roleRepository = roleRepository;
     this.employeeRepository = employeeRepository;
     this.departmentRepository = departmentRepository;
     this.seatingFloorRespository = seatingFloorRespository;
 }
 public AuthorizationService(IUserRepository userRepository, IGroupRepository groupRepository,
     IRoleRepository roleRepository)
 {
     this._roleRepository = roleRepository;
     this._userRepository = userRepository;
     this._groupRepository = groupRepository;
 }
Ejemplo n.º 9
0
        public FakeSiteUserRoleRepository(ISiteUserRepository siteUserRepo, IRoleRepository roleRepo)
        {
            list.Add(new SiteUserRole(1, 1, 1));
            list.Add(new SiteUserRole(2, 2, 2));
            list.Add(new SiteUserRole(3, 2, 1));
            list.Add(new SiteUserRole(4, 3, 3));
            list.Add(new SiteUserRole(5, 3, 2));
            list.Add(new SiteUserRole(6, 3, 1));
            list.Add(new SiteUserRole(7, 4, 4));
            list.Add(new SiteUserRole(8, 4, 3));
            list.Add(new SiteUserRole(9, 4, 2));
            list.Add(new SiteUserRole(10, 4, 1));

            var users = siteUserRepo.Get();
            var maxUserId = users.Max(x=>x.Id);
            var minUserId = 5;
            var roles = roleRepo.Get();
            var maxRoleId = roles.Max(x=>x.Id);
            var minRoleId = roles.Min(x=>x.Id);
            for (int i = 11; i <= 20 ; i++)
            {
                var userId = (i % (maxUserId+1 - minUserId)) + minUserId;
                var roleId = (i % (maxRoleId+1 - minRoleId)) + minRoleId;
                if (!this.list.Any(x => x.RoleId == roleId && x.SiteUserId == userId))
                {
                    list.Add(new SiteUserRole(i, userId, roleId));
                }
            }
        }
Ejemplo n.º 10
0
 public AdminController(ICampaignRepository campaignRepository, IRoleRepository roleRepository)
 {
     this.campaignRepository = campaignRepository;
     this.roleRepository = roleRepository;
     Mapper.CreateMap<Organization, OrganizationDetailsModel>();
     Mapper.CreateMap<OrganizationSetting, OrganizationSettingModel>();
 }
Ejemplo n.º 11
0
 public FirstSetupRepo()
 {
     this.session = HibernateUtil.OpenSession(false);
     this.userRepo = new UserRepository(session);
     this.projectRepo = new ProjectRepository(session);
     this.certificateTypeRepo = new InspectorCertificateTypeRepository(session);
     this.seemTypeRepo = new SeamTypeRepository(session);
     this.permissionRepo = new PermissionRepository(session);
     this.roleRepo = new RoleRepository(session);
     this.categoryRepo = new CategoryRepository(session);
     this.jointOperationRepo = new JointOperationRepository(session);
     this.pipeTestsRepo = new PipeTestRepository(session);
     this.sizeTypeRepo = new MillPipeSizeTypeRepository(session);
     this.plateManRepo = new PlateManufacturerRepository(session);
     this.heatRepo = new HeatRepository(session);
     this.plateRepo = new PlateRepository(session);
     this.purchaseRepo = new PurchaseOrderRepository(session);
     this.railRepo = new RailcarRepository(session);
     this.pipeRepo = new PipeRepository(session);
     this.inspectorRepo = new InspectorRepository(session);
     this.pipeTestResultRepo = new PipeTestResultRepository(session);
     this.welderRepo = new WelderRepository(session);
     componentTypeRepo = new ComponentTypeRepository(session);
     componentRepo = new ComponentRepository(session);
     releaseRepo = new ReleaseNoteRepository(session);
     this.cannedMessageRepo = new CannedMessageRepository(session);
 }
Ejemplo n.º 12
0
 public void Dispose()
 {
     _externalLoginRepository = null;
     _roleRepository = null;
     _userRepository = null;
     _context.Dispose();
 }
Ejemplo n.º 13
0
 public RoleAppService(IRoleQuery roleQuery, IRoleRepository roleRepository,
     IRoleFunctionRepository roleFunctionRepository)
 {
     _roleQuery = roleQuery;
     _roleRepository = roleRepository;
     _roleFunctionRepository = roleFunctionRepository;
 }
Ejemplo n.º 14
0
 public UserService(IUnitOfWork uow, IUserRepository repository, IRoleRepository roleRepository)
 {
     this.uow = uow;
     this.userRepository = repository;
     this.roleRepository = roleRepository;
     //Debug.WriteLine("service create!");
 }
Ejemplo n.º 15
0
 public void AddUsersToRoles()
 {
     var users = Builder<User>.CreateListOfSize(2).
         TheFirst(1).With(x => x.Login = "******").
         TheLast(1).With(x => x.Login = "******").Build();
     var roles = Builder<Role>.CreateListOfSize(2).
         TheFirst(1).With(x => x.RoleName = "User").
         TheLast(1).With( x => x.RoleName = "Admin").Build();
     _userRepository = Mockery.Stub<IUserRepository>();
     _roleRepository = Mockery.Stub<IRoleRepository>();
     using (Mockery.Record())
     {
         Expect.Call(_userRepository.GetUserByLogin("A")).Return(users[0]);
         Expect.Call(_userRepository.GetUserByLogin("B")).Return(users[1]);
         Expect.Call(_roleRepository.GetRoleByRoleName("User")).Return(roles[0]);
         Expect.Call(_roleRepository.GetRoleByRoleName("Admin")).Return(roles[1]);
     }
     using (Mockery.Playback())
     {
         _roleService = new RoleService(_roleRepository, _userRepository);
         _roleService.AddUsersToRoles(new[] {"A", "B"}, new[] {"User", "Admin"});
     }
     Assert.AreEqual(users[0].Roles.Count, 2);
     Assert.AreEqual(users[1].Roles.Count, 2);
 }
 public void Setup()
 {
     _domainService = Substitute.For<IUserDomainService>();
     _roleRepository = Substitute.For<IRoleRepository>();
     _userRepository = Substitute.For<IUserRepository>();
     _handler = new CreateAdminUserAccountCommandHandler(_domainService, _userRepository,_roleRepository);
 }
 public TenantProvisioningService(ITenantRepository tenantRepository, IUserRepository userRepository,
     IRoleRepository roleRepository)
 {
     this._tenantRepository = tenantRepository;
     this._userRepository = userRepository;
     this._roleRepository = roleRepository;
 }
Ejemplo n.º 18
0
        public RoleManager(IRoleRepository roleRepository)
        {
            _roleRepository = roleRepository;

            AutoMapperConfiguration.Configure(AutoMapperConfiguration.Maps.Role);

               // ReindexSearchRecords();
        }
Ejemplo n.º 19
0
 public MembershipService(IUserRepository userRepository, IRoleRepository roleRepository,
 IUserRoleRepository userRoleRepository, IEncryptionService encryptionService)
 {
     _userRepository = userRepository;
     _roleRepository = roleRepository;
     _userRoleRepository = userRoleRepository;
     _encryptionService = encryptionService;
 }
Ejemplo n.º 20
0
 public RoleController(IModuleRepository repoParam, IActionRepository repoActionParam, IRoleRepository repoRole, IModulesInRoleRepository repoModulesInRole)
 {
     this.roleService = new RoleService(Roles.Provider);
     this.moduleRepo = repoParam;
     this.actionRepo = repoActionParam;
     this.roleRepo = repoRole;
     this.repoModulesInRole = repoModulesInRole;
 }
Ejemplo n.º 21
0
 public UserService(MappingManagerV2 m, IUserAccountRepository userAccountRepository, ICustomerRepository customerRepository, IUserRoleRepository userRoleRepository, IRoleRepository roleRepository)
 {
     _customerRepository = customerRepository;
     _userRoleRepository = userRoleRepository;
     _roleRepository = roleRepository;
     _userAccountRepository = userAccountRepository;
     _mapping = m;
 }
Ejemplo n.º 22
0
 public RoleManagerApp(IRoleRepository repository,
     IOrgRepository orgRepository,
     IRelevanceRepository relevanceRepository)
 {
     _repository = repository;
     _orgRepository = orgRepository;
     _relevanceRepository = relevanceRepository;
 }
Ejemplo n.º 23
0
        public HomeController(IPostRepository postRepository)
        {
            _posts = postRepository;

            _userRepository = new UserRepository();
            _roleRepository = new RoleRepository();
            _users = new UserService(ModelState, _userRepository, _roleRepository);
        }
Ejemplo n.º 24
0
 public AbilityAuthorizationService(IUserRepository userRepository, 
                                    IRoleRepository roleRepository, 
                                    IAbilityRepository abilityRepository)
 {
     _userRepository = userRepository;
     _roleRepository = roleRepository;
     _abilityRepository = abilityRepository;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="RegistrationService" /> class.
 /// </summary>
 /// <param name="membershipService">The membership service.</param>
 /// <param name="profileService">The profile service.</param>
 /// <param name="roleRepository">The role repository.</param>
 /// <param name="userRoleRepository">The user role repository.</param>
 public RegistrationService(IMembershipService membershipService, IProfileService profileService,
     IRoleRepository roleRepository, IUserRoleRepository userRoleRepository)
 {
     this.membershipService = membershipService;
     this.profileService = profileService;
     this.roleRepository = roleRepository;
     this.userRoleRepository = userRoleRepository;
 }
Ejemplo n.º 26
0
 public RolesService(IRoleRepository roleRepository, IPermissionRepository permissionRepository, IUserForAuditingRepository auditedUserRepository, IPeninsulaLog log, IUserRepository userForAuditingRepository)
 {
     _roleRepository = roleRepository;
     _auditedUserRepository = auditedUserRepository;
     _log = log;
     _userForAuditingRepository = userForAuditingRepository;
     _permissionRepository = permissionRepository;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="FunctionService"/> class.
 /// </summary>
 /// <param name="functionRepository">
 /// The function repository.
 /// </param>
 /// <param name="userRepository">
 /// The user repository.
 /// </param>
 /// <param name="functionInRoleRepository">
 /// The function in role repository.
 /// </param>
 /// <param name="userInRoleRepository">
 /// The user in role repository.
 /// </param>
 public FunctionService(IFunctionRepository functionRepository, IUserRepository userRepository, IFunctionInRoleRepository functionInRoleRepository, IUserInRoleRepository userInRoleRepository, IRoleRepository roleRepository)
 {
     this.functionRepository = functionRepository;
     this.userRepository = userRepository;
     this.functionInRoleRepository = functionInRoleRepository;
     this.userInRoleRepository = userInRoleRepository;
     this.roleRepository = roleRepository;
 }
Ejemplo n.º 28
0
        public RoleManager(IRoleRepository roleRepository, IAccountRepository accountRepository)
        {
            if (roleRepository == null) throw new ArgumentNullException("roleRepository");
            if (accountRepository == null) throw new ArgumentNullException("accountRepository");

            m_RoleRepository = roleRepository;
            m_AccountRepository = accountRepository;
        }
Ejemplo n.º 29
0
        public SGAccountController(IRoleRepository roleRepoParam)
        {
            this.membershipService = new MembershipService(Membership.Provider);
            this.authenticationService = new AuthenticationService(membershipService, new FormsAuthenticationService());
            this.formsAuthenticationService = new FormsAuthenticationService();

            roleRepo = roleRepoParam;
        }
 public AccessApplicationService(ITenantRepository tenantRepository, IGroupRepository groupRepository,
     IUserRepository userRepository, IRoleRepository roleRepository)
 {
     this._groupRepository = groupRepository;
     this._roleRepository = roleRepository;
     this._tenantRepository = tenantRepository;
     this._userRepository = userRepository;
 }
Ejemplo n.º 31
0
 public RoleController(IRoleRepository roleRepository, ILogger <RoleController> logger)
 {
     this.roleRepository = roleRepository;
     this.logger         = logger;
 }
 public RoleService(IUnitOfWork uow, IRoleRepository repository)
 {
     this.uow            = uow;
     this.roleRepository = repository;
 }
Ejemplo n.º 33
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="membershipService"></param>
        /// <param name="eventService"></param>
        /// <param name="roleRepository"></param>
        public RoleService(IMembershipService membershipService, IEventService eventService, IRoleRepository roleRepository) : base(membershipService, roleRepository)
        {
            this.membershipService = membershipService;
            this.eventService      = eventService;

            this.Initialize();

            this.OnCreated += this.RoleCreatedEventHandler;
            this.OnUpdated += this.RoleUpdatedEventHandler;
            this.OnDeleted += this.RoleDeletedEventHandler;
        }
 public UpsertUserService(IDepartmentRepository departmentRepository, ICategoryRepository categoryRepository, IPositionRepository positionRepository, IPositionLevelRepository positionLevelRepository, IRoleRepository roleRepository)
 {
     _departmentRepository    = departmentRepository ?? throw new ArgumentNullException();
     _categoryRepository      = categoryRepository ?? throw new ArgumentNullException();
     _positionRepository      = positionRepository ?? throw new ArgumentNullException();
     _positionLevelRepository = positionLevelRepository ?? throw new ArgumentNullException();
     _roleRepository          = roleRepository ?? throw new ArgumentNullException();
 }
Ejemplo n.º 35
0
 public RoleDomain(IRoleRepository repository) : base(repository)
 {
 }
Ejemplo n.º 36
0
 public RoleController(IRoleRepository roleRepository)
 {
     _roleRepository = roleRepository;
 }
Ejemplo n.º 37
0
 public RoleService(IRoleRepository roleRepository)
 {
     _roleRepository = roleRepository;
 }
Ejemplo n.º 38
0
 public AccountService(ICacheHandler cache, IMapper mapper, IAccountRepository accountRepository, IAccountRoleRepository accountRoleRepository, IMenuRepository menuRepository, IRoleRepository roleRepository, IButtonRepository buttonRepository, IPermissionRepository permissionRepository, DrawingHelper drawingHelper, ISystemService systemService, IServiceProvider serviceProvider, IAccountConfigRepository accountConfigRepository, AdminDbContext dbContext)
 {
     _cache                   = cache;
     _mapper                  = mapper;
     _accountRepository       = accountRepository;
     _accountRoleRepository   = accountRoleRepository;
     _menuRepository          = menuRepository;
     _roleRepository          = roleRepository;
     _buttonRepository        = buttonRepository;
     _permissionRepository    = permissionRepository;
     _drawingHelper           = drawingHelper;
     _systemService           = systemService;
     _serviceProvider         = serviceProvider;
     _accountConfigRepository = accountConfigRepository;
     _dbContext               = dbContext;
 }
Ejemplo n.º 39
0
 public RoleRepositoryTester()
 {
     DependencyRegistrar.RegisterDependencies();
     IoC.Resolve <IAutoMapperBootstrapper>().Bootstrap();
     _roleRepository = IoC.Resolve <IRoleRepository>();
 }
Ejemplo n.º 40
0
 public RoleDomainService(IRoleRepository roleRep, ICurrentUser currentUser)
 {
     _roleRep     = roleRep;
     _currentUser = currentUser;
 }
Ejemplo n.º 41
0
 public AccountApplication(IAccountRepository accountRepository, IFileUploader fileUploader, IPasswordHasher passwordHasher, IAuthHelper authHelper, IRoleRepository roleRepository)
 {
     _accountRepository = accountRepository;
     _fileUploader      = fileUploader;
     _passwordHasher    = passwordHasher;
     _authHelper        = authHelper;
     _roleRepository    = roleRepository;
 }
Ejemplo n.º 42
0
 public SysUserInfoServices(IsysUserInfoRepository dal, IUserRoleServices userRoleServices, IRoleRepository roleRepository)
 {
     this._dal = dal;
     this._userRoleServices = userRoleServices;
     this._roleRepository   = roleRepository;
     base.BaseDal           = dal;
 }
Ejemplo n.º 43
0
 public DatabaseManager(ISettingsManager settingsManager, IAccessTokenRepository accessTokenRepository, IAdministratorRepository administratorRepository, IAdministratorsInRolesRepository administratorsInRolesRepository, IChannelRepository channelRepository, IChannelGroupRepository channelGroupRepository, IConfigRepository configRepository, IContentCheckRepository contentCheckRepository, IContentGroupRepository contentGroupRepository, IContentRepository contentRepository, IContentTagRepository contentTagRepository, IDbCacheRepository dbCacheRepository, IErrorLogRepository errorLogRepository, ILogRepository logRepository, IMaterialArticleRepository materialArticleRepository, IMaterialAudioRepository materialAudioRepository, IMaterialFileRepository materialFileRepository, IMaterialGroupRepository materialGroupRepository, IMaterialImageRepository materialImageRepository, IMaterialMessageRepository materialMessageRepository, IMaterialMessageItemRepository materialMessageItemRepository, IMaterialVideoRepository materialVideoRepository, IPermissionsInRolesRepository permissionsInRolesRepository, IPluginConfigRepository pluginConfigRepository, IRelatedFieldItemRepository relatedFieldItemRepository, IRelatedFieldRepository relatedFieldRepository, IRoleRepository roleRepository, ISiteLogRepository siteLogRepository, ISitePermissionsRepository sitePermissionsRepository, ISiteRepository siteRepository, ISpecialRepository specialRepository, IStatRepository statRepository, ITableStyleRepository tableStyleRepository, ITemplateLogRepository templateLogRepository, ITemplateRepository templateRepository, ITranslateRepository translateRepository, IUserGroupRepository userGroupRepository, IUserMenuRepository userMenuRepository, IUserRepository userRepository, IWxAccountRepository wxAccountRepository, IWxChatRepository wxChatRepository, IWxMenuRepository wxMenuRepository, IWxReplyKeywordRepository wxReplyKeywordRepository, IWxReplyMessageRepository wxReplyMessageRepository, IWxReplyRuleRepository wxReplyRuleRepository, IWxUserRepository wxUserRepository)
 {
     _settingsManager                = settingsManager;
     AccessTokenRepository           = accessTokenRepository;
     AdministratorRepository         = administratorRepository;
     AdministratorsInRolesRepository = administratorsInRolesRepository;
     ChannelRepository               = channelRepository;
     ChannelGroupRepository          = channelGroupRepository;
     ConfigRepository                = configRepository;
     ContentCheckRepository          = contentCheckRepository;
     ContentGroupRepository          = contentGroupRepository;
     ContentRepository               = contentRepository;
     ContentTagRepository            = contentTagRepository;
     DbCacheRepository               = dbCacheRepository;
     ErrorLogRepository              = errorLogRepository;
     LogRepository                 = logRepository;
     MaterialArticleRepository     = materialArticleRepository;
     MaterialAudioRepository       = materialAudioRepository;
     MaterialFileRepository        = materialFileRepository;
     MaterialGroupRepository       = materialGroupRepository;
     MaterialImageRepository       = materialImageRepository;
     MaterialMessageRepository     = materialMessageRepository;
     MaterialMessageItemRepository = materialMessageItemRepository;
     MaterialVideoRepository       = materialVideoRepository;
     PermissionsInRolesRepository  = permissionsInRolesRepository;
     PluginConfigRepository        = pluginConfigRepository;
     RelatedFieldItemRepository    = relatedFieldItemRepository;
     RelatedFieldRepository        = relatedFieldRepository;
     RoleRepository                = roleRepository;
     SiteLogRepository             = siteLogRepository;
     SitePermissionsRepository     = sitePermissionsRepository;
     SiteRepository                = siteRepository;
     SpecialRepository             = specialRepository;
     StatRepository                = statRepository;
     TableStyleRepository          = tableStyleRepository;
     TemplateLogRepository         = templateLogRepository;
     TemplateRepository            = templateRepository;
     TranslateRepository           = translateRepository;
     UserGroupRepository           = userGroupRepository;
     UserMenuRepository            = userMenuRepository;
     UserRepository                = userRepository;
     WxAccountRepository           = wxAccountRepository;
     WxChatRepository              = wxChatRepository;
     WxMenuRepository              = wxMenuRepository;
     WxReplyKeywordRepository      = wxReplyKeywordRepository;
     WxReplyMessageRepository      = wxReplyMessageRepository;
     WxReplyRuleRepository         = wxReplyRuleRepository;
     WxUserRepository              = wxUserRepository;
 }
Ejemplo n.º 44
0
 public RoleDomainService(IRoleRepository roleRepository, IPermissionRepository permissionRepository)
 {
     _permissionRepository = permissionRepository;
     RoleRepository        = roleRepository;
 }
 public AdministratorsRoleAddController(ICacheManager <object> cacheManager, ISettingsManager settingsManager, IAuthManager authManager, ISiteRepository siteRepository, IChannelRepository channelRepository, IRoleRepository roleRepository, ISitePermissionsRepository sitePermissionsRepository, IPermissionsInRolesRepository permissionsInRolesRepository)
 {
     _cacheManager                 = cacheManager;
     _settingsManager              = settingsManager;
     _authManager                  = authManager;
     _siteRepository               = siteRepository;
     _channelRepository            = channelRepository;
     _roleRepository               = roleRepository;
     _sitePermissionsRepository    = sitePermissionsRepository;
     _permissionsInRolesRepository = permissionsInRolesRepository;
 }
Ejemplo n.º 46
0
 public AccountService(LoginInfo loginInfo, ICacheHandler cache, IMapper mapper, IUnitOfWork <AdminDbContext> uow, IAccountRepository accountRepository, IAccountRoleRepository accountRoleRepository, IMenuRepository menuRepository, IRoleRepository roleRepository, IButtonRepository buttonRepository, IPermissionRepository permissionRepository, DrawingHelper drawingHelper, ILogger <AccountService> logger, ISystemService systemService)
 {
     _loginInfo             = loginInfo;
     _cache                 = cache;
     _mapper                = mapper;
     _uow                   = uow;
     _accountRepository     = accountRepository;
     _accountRoleRepository = accountRoleRepository;
     _menuRepository        = menuRepository;
     _roleRepository        = roleRepository;
     _buttonRepository      = buttonRepository;
     _permissionRepository  = permissionRepository;
     _drawingHelper         = drawingHelper;
     _systemService         = systemService;
 }
Ejemplo n.º 47
0
 public RoleService(IRoleRepository repository)
 {
     Repository = repository;
 }
 /// <summary>
 /// Инициализирует новый экземпляр AccountController с внедрением зависемостей к хранилищу данных о пользователях и их сообщениях
 /// </summary>
 /// <param name="userRepository">Экземпляр класса UserRepository, предоставляющий доступ к хранилищу данных о пользователях</param>
 /// <param name="roleRepository">Экземпляр класса RoleRepository, предоставляющий доступ к хранилищу данных о ролях пользователей</param>
 /// <param name="investContext">Экземпляр класса BrioContext, предоставляющий доступ к системным данным приложения</param>
 public AccountController(IUserRepository userRepository, IRoleRepository roleRepository, IBrioContext brioContext)
 {
     this._brioContext    = brioContext;
     this._userRepository = userRepository;
     this._roleRepository = roleRepository;
 }
Ejemplo n.º 49
0
 public DeleteRoleCommandHandler(IRoleRepository roleRepository, IUserStore <User> userStore)
 {
     _roleRepository = roleRepository;
     this.userStore  = userStore;
 }
Ejemplo n.º 50
0
 public RolesController(IRoleRepository roleRepository, IMapper mapper)
 {
     this.roleRepository = roleRepository;
     _mapper             = mapper;
 }
Ejemplo n.º 51
0
 // 将多个仓储接口注入
 public RoleModulePermissionServices(IRoleModulePermissionRepository dal, IModuleRepository moduleRepository, IRoleRepository roleRepository)
 {
     this._dal = dal;
     this._moduleRepository = moduleRepository;
     this._roleRepository   = roleRepository;
     base.BaseDal           = dal;
 }
Ejemplo n.º 52
0
 public DeleteRoleCommandHandler(IRoleRepository roleRepository)
 {
     _roleRepository = roleRepository;
 }
Ejemplo n.º 53
0
 public AdministratorsController(ICacheManager <object> cacheManager, IAuthManager authManager, IPathManager pathManager, IDatabaseManager databaseManager, IAdministratorRepository administratorRepository, IRoleRepository roleRepository, ISiteRepository siteRepository, IAdministratorsInRolesRepository administratorsInRolesRepository)
 {
     _cacheManager                    = cacheManager;
     _authManager                     = authManager;
     _pathManager                     = pathManager;
     _databaseManager                 = databaseManager;
     _administratorRepository         = administratorRepository;
     _roleRepository                  = roleRepository;
     _siteRepository                  = siteRepository;
     _administratorsInRolesRepository = administratorsInRolesRepository;
 }
Ejemplo n.º 54
0
 public UserController(IUserRepository userRepository, IRoleRepository roleRepository)
 {
     _userRepository = userRepository;
     _roleRepository = roleRepository;
 }
Ejemplo n.º 55
0
 public GalleryService(IRoleRepository repo, ISingle_Sign_OnRepository repoBM)
 {
     this.repo   = repo;
     this.repoBM = repoBM;
 }
Ejemplo n.º 56
0
 public MenuAppService(IMenuRepository menuRepository, IUserRepository userRepository, IRoleRepository roleRepository)
 {
     _menuRepository = menuRepository;
     _userRepository = userRepository;
     _roleRepository = roleRepository;
 }
 public RoleController(IRoleRepository roles)
 {
     _roles = roles;
 }
 public UserRepository(PhotoGalleryContext context, IRoleRepository roleReposistory)
     : base(context)
 {
     _roleReposistory = roleReposistory;
 }
Ejemplo n.º 59
0
 public AccountService(ICacheHandler cache, IMapper mapper, IAccountRepository accountRepository, IAccountRoleRepository accountRoleRepository, IRoleRepository roleRepository, IPermissionRepository permissionRepository, IAccountConfigRepository accountConfigRepository, AdminDbContext dbContext, IPasswordHandler passwordHandler, AdminOptions options)
 {
     _cache                   = cache;
     _mapper                  = mapper;
     _accountRepository       = accountRepository;
     _accountRoleRepository   = accountRoleRepository;
     _roleRepository          = roleRepository;
     _permissionRepository    = permissionRepository;
     _accountConfigRepository = accountConfigRepository;
     _dbContext               = dbContext;
     _passwordHandler         = passwordHandler;
     _options                 = options;
 }
 public AddClaimCommandHandler(IRoleRepository roleRepository)
 {
     _roleRepository = roleRepository;
 }