public ClientCertificatesForUserViewModel(IClientCertificatesRepository clientCertificatesRepository, IUserManagementRepository userManagementRepository, string username) { this.clientCertificatesRepository = clientCertificatesRepository; this.userManagementRepository = userManagementRepository; int totalCount; var allnames = userManagementRepository.GetUsers(0, 100, out totalCount) .Select(x => new SelectListItem { Text = x }).ToList(); allnames.Insert(0, new SelectListItem { Text = Resources.ClientCertificatesForUserViewModel.ChooseItem, Value = "" }); this.AllUserNames = allnames; this.UserName = username; NewCertificate = new ClientCertificate { UserName = username }; if (!IsNew) { var certs = this.clientCertificatesRepository .GetClientCertificatesForUser(this.UserName) .ToArray(); this.Certificates = certs; } else { this.Certificates = new ClientCertificate[0]; } }
public UserManagementController(IUserManagementRepository userManagementRepository, ILookupServiceRepository lookupServiceRepository) { this._lookupServiceRepository = lookupServiceRepository; this._lookupServiceRepository.ServiceHeaders = PresentationUtility.GetBasicHeaders(new string[] { pmsVariable.ServiceHeaderKey.EmployeeId, pmsVariable.ServiceHeaderKey.UserName, pmsVariable.ServiceHeaderKey.Email }); this._userManagementRepository = userManagementRepository; this._userManagementRepository.ServiceHeaders = PresentationUtility.GetBasicHeaders(new string[] { pmsVariable.ServiceHeaderKey.EmployeeId, pmsVariable.ServiceHeaderKey.UserName, pmsVariable.ServiceHeaderKey.Email }); }
public UserManagementService(IUserManagementRepository userRepository, IMapper mapper, ICommunicationService sendMail, ISalesForcePushObject salesForcePushObject) { _userRepository = userRepository; _mapper = mapper; _mail = sendMail; _salesForcePushObject = salesForcePushObject; }
/// <summary> /// /// </summary> /// <param name="issuer"></param> /// <param name="confidentialAppId"></param> public ScopeRequirement(IServiceProvider serviceProvider, string issuer, string confidentialAppId = "") { this.issuer = issuer; this.confidentialAppId = confidentialAppId; _cache = serviceProvider.GetService <IDistributedCache>(); _userRepository = serviceProvider.GetService <IUserManagementRepository>(); }
public ProfileApiController(IUserManagementRepository userManagementRepository, IConfigurationRepository configurationRepository, IRelyingPartyRepository relyingPartyRepository) { UserManagementRepository = userManagementRepository; //ClientRepository = clientRepository; ConfigurationRepository = configurationRepository; RelyingPartyRepository = relyingPartyRepository; }
public UserManagementController(ICoreRepository coreRepository, IGeneralHelper generalHelper, IStaffRepository staffRepository, IStudentRepository studentRepository, IUserManagementRepository userManagementRepository, ISemesterRepository semesterRepository, IAccountRepository accountRepository) : base(coreRepository, generalHelper) { _coreRepo = coreRepository; _generalHelper = generalHelper; _staffRepo = staffRepository; _userManagementRepository = userManagementRepository; _studentRepository = studentRepository; _semesterRepository = semesterRepository; UserManager = new ApplicationUserManager(new UserStore(accountRepository, coreRepository)); UserManager.UserValidator = new UserValidator <IdentityUser, int>(UserManager) { AllowOnlyAlphanumericUserNames = false }; InactiveServiceCategories = new int[] { (int)ServiceCategory.AboutArms, (int)ServiceCategory.CourseAllocation, (int)ServiceCategory.Messenger, (int)ServiceCategory.MyProfile, (int)ServiceCategory.Notifications, (int)ServiceCategory.PrivacyPolicy, (int)ServiceCategory.Reports, (int)ServiceCategory.Teach, (int)ServiceCategory.TermsOfService }; }
public DelegationSettingsForUserViewModel(IDelegationRepository delegationRepository, IUserManagementRepository userManagementRepository, string username) { this.delegationRepository = delegationRepository; this.userManagementRepository = userManagementRepository; int totalCount; var allnames = userManagementRepository.GetUsers(0, 100, out totalCount) .Select(x => new SelectListItem { Text = x }).ToList(); allnames.Insert(0, new SelectListItem { Text = DelegationSettingsForUserInputModel.ChooseItem, Value = "" }); this.AllUserNames = allnames; this.UserName = username; if (!IsNew) { var realmSettings = this.delegationRepository .GetDelegationSettingsForUser(this.UserName) .ToArray(); this.DelegationSettings = realmSettings; } else { this.DelegationSettings = new DelegationSetting[0]; } }
public UserManagementService( AppSetting appSetting, IUserManagementRepository userManagementRepository) { this._appSetting = appSetting; this._userManagementRepository = userManagementRepository; }
public ClientCertificatesForUserViewModel(IClientCertificatesRepository clientCertificatesRepository, IUserManagementRepository userManagementRepository, string username) { this.clientCertificatesRepository = clientCertificatesRepository; this.userManagementRepository = userManagementRepository; var allnames = userManagementRepository.GetUsers() .Select(x => new SelectListItem { Text = x }).ToList(); allnames.Insert(0, new SelectListItem { Text = "-Choose-", Value = "" }); this.AllUserNames = allnames; this.UserName = username; NewCertificate = new ClientCertificate { UserName = username }; if (!IsNew) { var certs = this.clientCertificatesRepository .GetClientCertificatesForUser(this.UserName) .ToArray(); this.Certificates = certs; } else { this.Certificates = new ClientCertificate[0]; } }
public AccountController( ILogger <AccountController> logger, IUserManagementRepository userRepo ) : base() { _logger = logger; _userRepo = userRepo; }
public AccountController(ICoreRepository coreRepo, IAccountRepository accountRepo, IStudentRepository studentRepo, IUserManagementRepository userManagementRepository) : this(new ApplicationUserManager(new UserStore(accountRepo, coreRepo))) { _coreRepo = coreRepo; _accountRepo = accountRepo; _studentRepo = studentRepo; _userManagementRepository = userManagementRepository; }
public UserManagementBusiness(IUserManagementRepository userManagementRepository, IGenericRepositoryDapper genericRepository, IEncryptionService encryptionService, IConfiguration configuration, IRoleExtension roleExtension) { _userManagementRepository = userManagementRepository; _genericRepository = genericRepository; _encryptionService = encryptionService; _configuration = configuration; _roleExtension = roleExtension; }
public RolesViewModel(IUserManagementRepository UserManagementRepository) { this.UserManagementRepository = UserManagementRepository; this.Roles = UserManagementRepository .GetRoles() .Select(x => new RoleInputModel { Name = x }) .OrderBy(x=>x.CanDelete) .ToArray(); }
/// <summary> /// PartnerEmployee Controller /// </summary> public PartnerEmployeeController(IChoiceRepository choiceReposiroty, IMapper mapper, ICRMService crmService, IAzureAdService azureAdService, IUserManagementRepository userRepository, IAppInsightLogger logger) { _choiceRepoistory = choiceReposiroty; _crmService = crmService; _mapper = mapper; _azureAdService = azureAdService; _userRepository = userRepository; _logger = logger; }
public DemoController( ILogger <DemoController> logger, IOptions <EmailSettings> emailSettings, IHttpContextAccessor httpContext, IUserManagementRepository userRepo ) : base() { _httpContext = httpContext; _emailService = new EmailService(emailSettings); _logger = logger; }
public UserManagementController(IUserManagementRepository userManagementRepository, IInstituteManagementRepository instituteManagementRepository, IUserGroupManagementRepository userGroupManagementRepository, IMSDbContext iMSDbContext, UserManager <ApplicationUser> userManager, IInstituteUserMappingHelperService instituteUserMappingHelperService) { _userManagementRepository = userManagementRepository; _instituteManagementRepository = instituteManagementRepository; _userGroupManagementRepository = userGroupManagementRepository; _userManager = userManager; _instituteUserMappingHelperService = instituteUserMappingHelperService; _iMSDbContext = iMSDbContext; }
public RolesViewModel(IUserManagementRepository UserManagementRepository) { this.UserManagementRepository = UserManagementRepository; this.Roles = UserManagementRepository .GetRoles() .Select(x => new RoleInputModel { Name = x }) .OrderBy(x => x.CanDelete) .ToArray(); }
public UsersViewModel(IUserManagementRepository UserManagementRepository, int currentPage, string filter) { Container.Current.SatisfyImportsOnce(this); this.UserManagementRepository = UserManagementRepository; this.Filter = filter; Init(currentPage, filter); if (TotalPages < CurrentPage) { Init(TotalPages, filter); } }
public UserManagementController( UserManager <AppUser> userManager, IUserManagementRepository userManagementRepository, IHttpContextAccessor httpContextAccessor, MsSqlUserDbContext appDbContext, IUserCommonDataRepository userCommonDataRepository) { _userManager = userManager; _userManagementRepository = userManagementRepository; _caller = httpContextAccessor.HttpContext.User; _appDbContext = appDbContext; _userCommonDataRepository = userCommonDataRepository; }
public static void ClassInit(TestContext context) { typeof(InfrastructureUnityContainer) .GetField("UnityContainer", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Static) .SetValue(null, null); typeof(DomainUnityContainer) .GetField("UnityContainer", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Static) .SetValue(null, null); var container = new UnityContainer(); DomainUnityContainer.BuildUp(container); InfrastructureUnityContainer.BuildUp(container); UserRepo = container.Resolve <IUserManagementRepository>(); }
public HomeController(UserManager <ApplicationUser> userManager, SignInManager <ApplicationUser> signInManager, IMSDbContext iMSDbContext, IUserManagementRepository userManagementRepository, IInstituteUserMappingHelperService instituteUserMappingHelperService, INotificationManagementRepository notificationManagementRepository, ITemplateManagementRepository templateManagementRepository) { _userManager = userManager; _signInManager = signInManager; _iMSDbContext = iMSDbContext; _userManagementRepository = userManagementRepository; _instituteUserMappingHelperService = instituteUserMappingHelperService; _notificationManagementRepository = notificationManagementRepository; _templateManagementRepository = templateManagementRepository; }
public UtilsApiController(ICoreRepository coreRepository, IGeneralHelper generalHelper, IUserManagementRepository userManagementRepository, IStudentRepository studentRepository, IStudentCourseRepository studentCourseRepository, ISemesterRepository semesterRepository, IStaffRepository staffRepository, IAccountRepository accountRepository ) { _coreRepository = coreRepository; _generalHelper = generalHelper; _userManagementRepository = userManagementRepository; _studentRepository = studentRepository; _semesterRepository = semesterRepository; _studentCourseRepository = studentCourseRepository; _accountRepository = accountRepository; _staffRepository = staffRepository; UserManager = new ApplicationUserManager(new UserStore(accountRepository, coreRepository)); UserManager.UserValidator = new UserValidator <IdentityUser, int>(UserManager) { AllowOnlyAlphanumericUserNames = false }; }
public AccountController(IUserRepository userRepository, IConfigurationRepository configurationRepository, IUserManagementRepository userManagementRepository) : base(userRepository, configurationRepository) { UserManagementRepository = userManagementRepository; }
public DelegationController(IDelegationRepository delegationRepository, IUserManagementRepository userManagementRepository) { this.delegationRepository = delegationRepository; this.userManagementRepository = userManagementRepository; }
public ClientCertificateController(IClientCertificatesRepository clientCertificatesRepository, IUserManagementRepository userManagementRepository) { this.clientCertificatesRepository = clientCertificatesRepository; this.userManagementRepository = userManagementRepository; }
public RoleController(IUserManagementRepository userManagementRepository) { UserManagementRepository = userManagementRepository; }
public AuthorizationHelper(IUserManagementRepository userManager) { _userManager = userManager; }
public DynamicsSendJob(IUserManagementRepository rep) { UserManagementRepository = rep; }
public SearchHandler(IUserManagementRepository userManagementRepository) { _userManagementRepository = userManagementRepository; }
public UserManagementService(IUserManagementRepository userManagementRepository) { this._userManagementRepository = userManagementRepository; }
/// <summary> /// /// </summary> /// <param name="userManagementRepository"></param> public UserController(IUserManagementRepository userManagementRepository, IDistributedCache cache) { _userManagementRepository = userManagementRepository; _cache = cache; }
public UserRolesViewModel(IUserManagementRepository userManagementRepository, string username) { this.userManagementRepository = userManagementRepository; this.Username = username; this.UserRoles = this.userManagementRepository.GetRolesForUser(this.Username); }
public DynamicsReceiveJob(IUserManagementRepository rep) { UserManagementRepository = rep; }
public UserManagementService(IUserManagementRepository repository) { _repository = repository; }
public SetProfilePhotoHandler(IUserManagementRepository repository) { _repository = repository; }
public InitialConfigurationController(IConfigurationRepository configuration, IUserManagementRepository userManagement) { ConfigurationRepository = configuration; UserManagement = userManagement; }
public HrdController(IConfigurationRepository configurationRepository, IIdentityProviderRepository identityProviderRepository, IUserManagementRepository userManagementRepository) { IdentityProviderRepository = identityProviderRepository; ConfigurationRepository = configurationRepository; UserManagementRepository = userManagementRepository; }
public AccountController(IUserManagementRepository userManagementRepository) { this._userManagementRepository = userManagementRepository; }
public ProviderUserManagementController(IUserManagementRepository userManagementRepository) { _userManagementRepository = userManagementRepository; }