コード例 #1
0
 public UserService(DataContext context,
                    UserManager userManager,
                    RoleManager roleManager,
                    ISupervisorUserAgentService supervisorUserAgentService,
                    IConfiguration configuration,
                    SignInManager signInManager,
                    IEmailService emailSender,
                    IFileService fileService,
                    IMapper mapper,
                    IValidator <SaveUserDto> fluentValidatorUser,
                    IValidator <LoginDto> fluentValidatorLogin,
                    IValidator <CreateUserDto> fluentValidatorCreateUser,
                    IValidator <ResetPassword> fluentValidationResetPassword,
                    IAspNetUserRolesService rolesService)
 {
     _context                       = context;
     _userManager                   = userManager;
     _roleManager                   = roleManager;
     _configuration                 = configuration;
     _signInManager                 = signInManager;
     _emailSender                   = emailSender;
     _fileService                   = fileService;
     _mapper                        = mapper;
     _fluentValidatorUser           = fluentValidatorUser;
     _fluentValidatorLogin          = fluentValidatorLogin;
     _fluentValidatorCreateUser     = fluentValidatorCreateUser;
     _fluentValidationResetPassword = fluentValidationResetPassword;
     _rolesService                  = rolesService;
     _supervisorUserAgentService    = supervisorUserAgentService;
 }
コード例 #2
0
 public AspNetUserRolesController(
     IAspNetRolesService aspNetRolesService,
     IAspNetUserRolesService aspNetUserRoles)
 {
     _aspNetRolesService = aspNetRolesService;
     _aspNetUserRoles    = aspNetUserRoles;
 }
コード例 #3
0
 public AuthManagementController(ILogService logService, UserManager <IdentityUser> userManager, IOptionsMonitor <JwtConfig> optionsMonitor, RoleManager <IdentityRole> roleManager, IAspNetUserRolesService aspNetUserRolesService, IClaimsService claimsService)
 {
     _userManager            = userManager;
     _jwtConfig              = optionsMonitor.CurrentValue;
     _roleManager            = roleManager;
     _aspNetUserRolesService = aspNetUserRolesService;
     _claimsService          = claimsService;
     _logService             = logService;
 }
コード例 #4
0
 public AccountController()
 {
     usuarioAreaService    = usuarioAreaService ?? new UsuarioAreaService();
     usuarioEmpresaService = usuarioEmpresaService ?? new UsuarioEmpresaService();
     moduloRolService      = moduloRolService ?? new ModuloRolService();
     catalagoService       = catalagoService ?? new CatalogoService();
     directorioActivo      = directorioActivo ?? new LDAP();
     objInjUserRol         = objInjUserRol ?? new AspNetUserRolesService();
 }
コード例 #5
0
        public IHttpActionResult CreateRolesForUser([FromBody] RolesToUser model)
        {
            objInj = objInj ?? new AspNetUserRolesService();
            var currentAreas = objInj.GetAll(c => c.UserId == model.id, null, includes: c => c.AspNetRoles);
            var denoms       = new List <int>(currentAreas.Select(c => c.IDAspNetUserRol));

            objInj.CreateAndRemove(model.EnrolledRoles, denoms);
            return(Ok());
        }
コード例 #6
0
 public SupervisorController(ISupervisorService objSupervisorService, ISupervisorTempService objSupervisorTempService, IUsuarioEmpresaService objUsuarioAreaService, IEmpresaAreasCentroCostoService eacc, IUsuariosPorRoleService usrRol, IAspNetUserRolesService ue, IUserService userServ, IUsuarioAreaService uas)
 {
     objInj                        = ue;
     supervisorService             = objSupervisorService;
     supervisorTempService         = objSupervisorTempService;
     usuarioEmpresaService         = objUsuarioAreaService;
     empresaAreaCentroCostoService = eacc;
     usuarioRol                    = usrRol;
     userService                   = userServ;
     usuarioAreaService            = uas;
 }
コード例 #7
0
 public AccountController(IUsuarioAreaService svcusuarioAreaService,
                          IUsuarioEmpresaService svcusuarioEmpresaService, IModuloRolService svcmoduloRolService,
                          ICatalogoService catServ, ILDAP dau, IAspNetUserRolesService userRole)
 {
     usuarioAreaService    = svcusuarioAreaService;
     usuarioEmpresaService = svcusuarioEmpresaService;
     moduloRolService      = svcmoduloRolService;
     catalagoService       = catServ;
     directorioActivo      = dau;
     objInjUserRol         = userRole;
 }
コード例 #8
0
        /// <summary>
        /// Este contructor se implemento, con un intento para resolver el problema del IIS
        /// en el servidor de banistmo 10.71.27.116
        /// </summary>
        public UserController()
        {
            userService            = new UserService();
            reporteSrv             = new ReporteService();
            rrmService             = new ReporteRolesMenuService();
            usuarioAreaService     = new UsuarioAreaService();
            usuarioEmpresaService  = new UsuarioEmpresaService();
            catalagoService        = new CatalogoService();
            directorioactivo       = new LDAP();
            usrRolService          = new UsuariosPorRolService();
            AspNetUserRolesService = new AspNetUserRolesService();
            rolService             = rolService ?? new RolService();

            areaOperativaService = areaOperativaService ?? new AreaOperativaService();

            RegConSrv = new RegistroControlService();
        }
コード例 #9
0
 public UserController(IUserService usr, IReporteService reporte, IReporteRolesMenuService rrmSrv, IUsuarioAreaService usrAreaSrv, IUsuarioEmpresaService usrEmpSrv,
                       ICatalogoService catSrv, ILDAP dau, IUsuariosPorRoleService usrRol, IAspNetUserRolesService aspNetUserRolesServ, IAreaOperativaService area,
                       IRegistroControlService RegControlSrv)
 {
     userService            = usr;
     reporteSrv             = reporte;
     rrmService             = rrmSrv;
     usuarioAreaService     = usrAreaSrv;
     usuarioEmpresaService  = usrEmpSrv;
     catalagoService        = catSrv;
     directorioactivo       = dau;
     usrRolService          = usrRol;
     AspNetUserRolesService = aspNetUserRolesServ;
     rolService             = rolService ?? new RolService();
     areaOperativaService   = area;
     RegConSrv = RegControlSrv;
 }
コード例 #10
0
 public RoleController(IAspNetUserRolesService serv, IUserService userv)
 {
     objInj      = serv;
     userService = userv;
 }
コード例 #11
0
 public UserRolesController(IAspNetUserRolesService ue)
 {
     objInj = ue;
 }
コード例 #12
0
 public UserRolesController()
 {
     objInj = objInj ?? new AspNetUserRolesService();
 }