Exemplo n.º 1
0
 /// <summary>
 /// Creates a new instance of a ReportController class, initializes it with the specified arguments.
 /// </summary>
 /// <param name="pimsService"></param>
 /// <param name="pimsRepository"></param>
 /// <param name="webHostEnvironment"></param>
 /// <param name="mapper"></param>
 public LeaseController(IPimsRepository pimsRepository, IPimsService pimsService, IWebHostEnvironment webHostEnvironment, IMapper mapper)
 {
     _pimsService        = pimsService;
     _mapper             = mapper;
     _webHostEnvironment = webHostEnvironment;
     _pimsRepository     = pimsRepository;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Creates a new instance of a SecurityDepositRepository, and initializes it with the specified arguments.
 /// </summary>
 /// <param name="dbContext"></param>
 /// <param name="user"></param>
 /// <param name="service"></param>
 /// <param name="logger"></param>
 public SecurityDepositRepository(PimsContext dbContext,
                                  ClaimsPrincipal user,
                                  IPimsRepository service,
                                  ILogger <LeaseRepository> logger,
                                  IMapper mapper) : base(dbContext, user, service, logger, mapper)
 {
 }
Exemplo n.º 3
0
 /// <summary>
 /// Creates a new instance of a PimsKeycloakService object, initializes with the specified arguments.
 /// </summary>
 /// <param name="keycloakService"></param>
 /// <param name="pimsService"></param>
 /// <param name="user"></param>
 /// <param name="mapper"></param>
 /// <param name="logger"></param>
 public PimsKeycloakService(IKeycloakService keycloakService, IPimsRepository pimsRepository, ClaimsPrincipal user, IMapper mapper, ILogger <IPimsKeycloakService> logger)
 {
     _keycloakService = keycloakService;
     _pimsRepository  = pimsRepository;
     _mapper          = mapper;
     _user            = user;
     _logger          = logger;
 }
Exemplo n.º 4
0
 /// <summary>
 /// Creates a new instance of a BaseService class, and initializes it with the specified arguments.
 /// </summary>
 /// <param name="dbContext"></param>
 /// <param name="user"></param>
 /// <param name="service"></param>
 /// <param name="logger"></param>
 /// <param name="mapper"></param>
 protected BaseRepository(PimsContext dbContext, ClaimsPrincipal user, IPimsRepository service, ILogger <BaseRepository> logger, IMapper mapper)
 {
     this.Context = dbContext;
     this.User    = user;
     this.Logger  = logger;
     this.Self    = service;
     this.Mapper  = mapper;
 }
Exemplo n.º 5
0
 /// <summary>
 /// Creates a new instances of a SystemConstantController class, initializes it with the specified arguments.
 /// </summary>
 /// <param name="pimsRepository"></param>
 /// <param name="mapper"></param>
 public SystemConstantController(IPimsRepository pimsRepository, IMapper mapper)
 {
     _pimsRepository = pimsRepository;
     _mapper         = mapper;
 }
Exemplo n.º 6
0
 /// <summary>
 /// Creates a new instance of a OrganizationController class.
 /// </summary>
 /// <param name="pimsService"></param>
 /// <param name="keycloakService"></param>
 /// <param name="mapper"></param>
 public OrganizationController(IPimsRepository pimsService, IPimsKeycloakService keycloakService, IMapper mapper)
 {
     _pimsService         = pimsService;
     _pimsKeycloakService = keycloakService;
     _mapper = mapper;
 }
Exemplo n.º 7
0
 /// <summary>
 /// Creates a new instance of a ResearchFileRepository, and initializes it with the specified arguments.
 /// </summary>
 /// <param name="dbContext"></param>
 /// <param name="user"></param>
 /// <param name="service"></param>
 /// <param name="logger"></param>
 public ResearchFileRepository(PimsContext dbContext, ClaimsPrincipal user, IPimsRepository service, ILogger <ResearchFileRepository> logger, IMapper mapper) : base(dbContext, user, service, logger, mapper)
 {
 }
Exemplo n.º 8
0
 /// <summary>
 /// Creates a new instance of a RoleService, and initializes it with the specified arguments.
 /// </summary>
 /// <param name="dbContext"></param>
 /// <param name="user"></param>
 /// <param name="service"></param>
 /// <param name="logger"></param>
 public RoleService(PimsContext dbContext, ClaimsPrincipal user, IPimsRepository service, ILogger <RoleService> logger, IMapper mapper) : base(dbContext, user, service, logger, mapper)
 {
 }
Exemplo n.º 9
0
 /// <summary>
 /// Creates a new instance of a PersonController class, initializes it with the specified arguments.
 /// </summary>
 /// <param name="pimsService"></param>
 /// <param name="pimsRepository"></param>
 /// <param name="mapper"></param>
 ///
 public PersonController(IPimsService pimsService, IPimsRepository pimsRepository, IMapper mapper)
 {
     _pimsService    = pimsService;
     _pimsRepository = pimsRepository;
     _mapper         = mapper;
 }
Exemplo n.º 10
0
 /// <summary>
 /// Creates a new instance of a LeaseTenantController class, initializes it with the specified arguments.
 /// </summary>
 /// <param name="pimsService"></param>
 /// <param name="mapper"></param>
 ///
 public LeaseTenantController(IPimsRepository pimsService, IMapper mapper)
 {
     _pimsService = pimsService;
     _mapper      = mapper;
 }
Exemplo n.º 11
0
 /// <summary>
 /// Creates a new instance of a TenantController class, initializes it with the specified arguments.
 /// </summary>
 /// <param name="pimsOptions"></param>
 /// <param name="pimsService"></param>
 /// <param name="mapper"></param>
 public TenantController(IOptionsMonitor <PimsOptions> pimsOptions, IPimsRepository pimsService, IMapper mapper)
 {
     _pimsOptions = pimsOptions.CurrentValue;
     _pimsService = pimsService;
     _mapper      = mapper;
 }
Exemplo n.º 12
0
 /// <summary>
 /// Creates a new instance of a AuthController class, initializes it with the specified arguments.
 /// </summary>
 /// <param name="optionsKeycloak"></param>
 /// <param name="pimsService"></param>
 public AuthController(IOptionsMonitor <Keycloak.Configuration.KeycloakOptions> optionsKeycloak, IPimsRepository pimsService)
 {
     _optionsKeycloak = optionsKeycloak.CurrentValue;
     _pimsService     = pimsService;
 }
Exemplo n.º 13
0
 /// <summary>
 /// Creates a new instance of a AutocompleteController class, initializes it with the specified arguments.
 /// </summary>
 /// <param name="pimsService"></param>
 /// <param name="mapper"></param>
 ///
 public AutocompleteController(IPimsRepository pimsService, IMapper mapper)
 {
     _pimsService = pimsService;
     _mapper      = mapper;
 }
Exemplo n.º 14
0
 /// <summary>
 /// Creates a new instance of a SystemConstantService, and initializes it with the specified arguments.
 /// </summary>
 /// <param name="dbContext"></param>
 /// <param name="user"></param>
 /// <param name="repository"></param>
 /// <param name="logger"></param>
 public SystemConstantService(PimsContext dbContext, ClaimsPrincipal user, IPimsRepository repository, ILogger <SystemConstantService> logger, IMapper mapper) : base(dbContext, user, repository, logger, mapper)
 {
 }
Exemplo n.º 15
0
 /// <summary>
 /// Creates a new instance of a BaseService class, and initializes it with the specified arguments.
 /// </summary>
 /// <param name="dbContext"></param>
 /// <param name="user"></param>
 /// <param name="service"></param>
 /// <param name="logger"></param>
 /// <param name="mapper"></param>
 protected BaseRepository(PimsContext dbContext, ClaimsPrincipal user, IPimsRepository service, ILogger <BaseRepository> logger, IMapper mapper) : base(dbContext, user, service, logger, mapper)
 {
 }
Exemplo n.º 16
0
 /// <summary>
 /// Creates a new instance of a OrganizationService, and initializes it with the specified arguments.
 /// </summary>
 /// <param name="dbContext"></param>
 /// <param name="user"></param>
 /// <param name="service"></param>
 /// <param name="logger"></param>
 public OrganizationRepository(PimsContext dbContext, ClaimsPrincipal user, IPimsRepository service, ILogger <OrganizationRepository> logger, IMapper mapper) : base(dbContext, user, service, logger, mapper)
 {
 }
Exemplo n.º 17
0
 /// <summary>
 /// Creates a new instance of a PropertyRepository, and initializes it with the specified arguments.
 /// </summary>
 /// <param name="dbContext"></param>
 /// <param name="user"></param>
 /// <param name="service"></param>
 /// <param name="logger"></param>
 public PropertyRepository(PimsContext dbContext, ClaimsPrincipal user, IPimsRepository service, ILogger <PropertyRepository> logger, IMapper mapper)
     : base(dbContext, user, service, logger, mapper)
 {
 }
Exemplo n.º 18
0
 /// <summary>
 /// Creates a new instance of a AutocompleteService, and initializes it with the specified arguments.
 /// </summary>
 /// <param name="dbContext"></param>
 /// <param name="user"></param>
 /// <param name="service"></param>
 /// <param name="logger"></param>
 public AutocompleteService(PimsContext dbContext, ClaimsPrincipal user, IPimsRepository service, ILogger <LookupService> logger, IMapper mapper) : base(dbContext, user, service, logger, mapper)
 {
 }
Exemplo n.º 19
0
 /// <summary>
 /// Creates a new instance of a InsuranceController class, initializes it with the specified arguments.
 /// </summary>
 /// <param name="pimsService"></param>
 /// <param name="mapper"></param>
 ///
 public InsuranceController(IPimsRepository pimsService, IMapper mapper)
 {
     _pimsService = pimsService;
     _mapper      = mapper;
 }
Exemplo n.º 20
0
 /// <summary>
 /// Creates a new instance of a AccessRequestController class.
 /// </summary>
 /// <param name="pimsService"></param>
 /// <param name="mapper"></param>
 public AccessRequestController(IPimsRepository pimsService, IMapper mapper)
 {
     _pimsService = pimsService;
     _mapper      = mapper;
 }
Exemplo n.º 21
0
 /// <summary>
 /// Creates a new instance of a AccessRequestService, and initializes it with the specified arguments.
 /// </summary>
 /// <param name="dbContext"></param>
 /// <param name="accessRequest"></param>
 /// <param name="service"></param>
 /// <param name="logger"></param>
 /// <returns></returns>
 public AccessRequestService(PimsContext dbContext, System.Security.Claims.ClaimsPrincipal user, ClaimsPrincipal accessRequest, IPimsRepository service, ILogger <AccessRequestService> logger, IMapper mapper) : base(dbContext, user, service, logger, mapper)
 {
 }
Exemplo n.º 22
0
 /// <summary>
 /// Creates a new instance of a UserService, and initializes it with the specified arguments.
 /// </summary>
 /// <param name="dbContext"></param>
 /// <param name="user"></param>
 /// <param name="service"></param>
 /// <param name="options"></param>
 /// <param name="logger"></param>
 /// <returns></returns>
 public UserService(PimsContext dbContext, ClaimsPrincipal user, IPimsRepository service, IOptionsMonitor <PimsOptions> options, ILogger <UserService> logger, IMapper mapper) : base(dbContext, user, service, logger, mapper)
 {
     _options = options.CurrentValue;
 }
Exemplo n.º 23
0
 /// <summary>
 /// Creates a new instance of a SearchController class, initializes it with the specified arguments.
 /// </summary>
 /// <param name="pimsService"></param>
 /// <param name="mapper"></param>
 ///
 public SearchController(IPimsRepository pimsService, IMapper mapper)
 {
     _pimsService = pimsService;
     _mapper      = mapper;
 }
Exemplo n.º 24
0
 /// <summary>
 /// Creates a new instance of a PropertyController class, initializes it with the specified arguments.
 /// </summary>
 /// <param name="pimsService"></param>
 /// <param name="mapper"></param>
 ///
 public PropertyController(IPimsRepository pimsService, IMapper mapper)
 {
     _pimsService = pimsService;
     _mapper      = mapper;
 }