public VacancyManageOrchestrator(ILogger <VacancyManageOrchestrator> logger, DisplayVacancyViewModelMapper vacancyDisplayMapper, IRecruitVacancyClient vacancyClient, EmployerRecruitSystemConfiguration systemConfig) : base(logger)
 {
     _vacancyDisplayMapper = vacancyDisplayMapper;
     _client       = vacancyClient;
     _systemConfig = systemConfig;
 }
 public CreateVacancyOptionsOrchestrator(IEmployerVacancyClient client, IRecruitVacancyClient vacancyClient)
 {
     _client        = client;
     _vacancyClient = vacancyClient;
 }
Beispiel #3
0
 public ConsiderationsOrchestrator(ILogger <ConsiderationsOrchestrator> logger, IEmployerVacancyClient client, IRecruitVacancyClient vacancyClient, IReviewSummaryService reviewSummaryService) : base(logger)
 {
     _client               = client;
     _vacancyClient        = vacancyClient;
     _reviewSummaryService = reviewSummaryService;
 }
 public DeleteVacancyOrchestrator(IEmployerVacancyClient client, IRecruitVacancyClient vacancyClient, IUtility utility)
 {
     _client        = client;
     _vacancyClient = vacancyClient;
     _utility       = utility;
 }
Beispiel #5
0
 public DurationOrchestrator(IEmployerVacancyClient client, IRecruitVacancyClient vacancyClient, ILogger <DurationOrchestrator> logger, IReviewSummaryService reviewSummaryService, IUtility utility) : base(logger)
 {
     _vacancyClient        = vacancyClient;
     _reviewSummaryService = reviewSummaryService;
     _utility = utility;
 }
 public CloneVacancyOrchestrator(IRecruitVacancyClient vacancyClient,
                                 ITimeProvider timeProvider, ILogger <CloneVacancyOrchestrator> logger) : base(logger)
 {
     _vacancyClient = vacancyClient;
     _timeProvider  = timeProvider;
 }
Beispiel #7
0
 public VacancyManageOrchestrator(ILogger <VacancyManageOrchestrator> logger, DisplayVacancyViewModelMapper vacancyDisplayMapper, IRecruitVacancyClient client, IFeature featureToggle, ProviderRecruitSystemConfiguration systemConfig) : base(logger)
 {
     _vacancyDisplayMapper = vacancyDisplayMapper;
     _client        = client;
     _featureToggle = featureToggle;
     _systemConfig  = systemConfig;
 }
Beispiel #8
0
 private static async Task HandleUserSignedIn(SecurityTokenValidatedContext ctx, IRecruitVacancyClient vacancyClient)
 {
     var user = ctx.Principal.ToVacancyUser();
     await vacancyClient.UserSignedInAsync(user, UserType.Provider);
 }
Beispiel #9
0
 public TrainingOrchestrator(IEmployerVacancyClient client, IRecruitVacancyClient vacancyClient, ILogger <TrainingOrchestrator> logger, IReviewSummaryService reviewSummaryService) : base(logger)
 {
     _client               = client;
     _vacancyClient        = vacancyClient;
     _reviewSummaryService = reviewSummaryService;
 }
 public EmployerNameOrchestrator(IEmployerVacancyClient employerVacancyClient, IRecruitVacancyClient recruitVacancyClient,
                                 ILogger <EmployerNameOrchestrator> logger, IReviewSummaryService reviewSummaryService)
     : base(logger)
 {
     _employerVacancyClient = employerVacancyClient;
     _recruitVacancyClient  = recruitVacancyClient;
     _reviewSummaryService  = reviewSummaryService;
 }
 public VacanciesOrchestrator(IEmployerVacancyClient vacancyClient, ITimeProvider timeProvider, IRecruitVacancyClient client, IEmployerAlertsViewModelFactory alertsViewModelFactory)
 {
     _vacancyClient          = vacancyClient;
     _timeProvider           = timeProvider;
     _client                 = client;
     _alertsViewModelFactory = alertsViewModelFactory;
 }
 public ApplicationReviewOrchestrator(IEmployerVacancyClient client, IRecruitVacancyClient vacancyClient)
 {
     _client        = client;
     _vacancyClient = vacancyClient;
 }
Beispiel #13
0
 public ConsiderationsOrchestrator(ILogger <ConsiderationsOrchestrator> logger, IRecruitVacancyClient vacancyClient, IReviewSummaryService reviewSummaryService, IUtility utility) : base(logger)
 {
     _vacancyClient        = vacancyClient;
     _reviewSummaryService = reviewSummaryService;
     _utility = utility;
 }
Beispiel #14
0
 public EditVacancyDatesOrchestrator(IRecruitVacancyClient vacancyClient, ILogger <EditVacancyDatesOrchestrator> logger, ITimeProvider timeProvider) : base(logger)
 {
     _vacancyClient = vacancyClient;
     _timeProvider  = timeProvider;
 }
Beispiel #15
0
 public AboutEmployerOrchestrator(IProviderVacancyClient client, IRecruitVacancyClient vacancyClient, ILogger <AboutEmployerOrchestrator> logger, IReviewSummaryService reviewSummaryService) : base(logger)
 {
     _client               = client;
     _vacancyClient        = vacancyClient;
     _reviewSummaryService = reviewSummaryService;
 }
Beispiel #16
0
 public static void AddAuthenticationService(this IServiceCollection services, AuthenticationConfiguration authConfig, IRecruitVacancyClient vacancyClient, IHostingEnvironment hostingEnvironment)
 {
     services.AddAuthentication(sharedOptions =>
     {
         sharedOptions.DefaultScheme          = CookieAuthenticationDefaults.AuthenticationScheme;
         sharedOptions.DefaultSignInScheme    = CookieAuthenticationDefaults.AuthenticationScheme;
         sharedOptions.DefaultChallengeScheme = WsFederationDefaults.AuthenticationScheme;
         sharedOptions.DefaultSignOutScheme   = WsFederationDefaults.AuthenticationScheme;
     })
     .AddWsFederation(options =>
     {
         options.Wtrealm          = authConfig.WtRealm;
         options.MetadataAddress  = authConfig.MetaDataAddress;
         options.UseTokenLifetime = false;
         options.Events.OnSecurityTokenValidated = async(ctx) =>
         {
             await HandleUserSignedIn(ctx, vacancyClient);
         };
     })
     .AddCookie(options =>
     {
         options.Cookie.Name         = CookieNames.RecruitData;
         options.Cookie.SecurePolicy = Microsoft.AspNetCore.Http.CookieSecurePolicy.Always;
         options.CookieManager       = new ChunkingCookieManager()
         {
             ChunkSize = 3000
         };
         options.AccessDeniedPath  = RoutePaths.AccessDeniedPath;
         options.SlidingExpiration = true;
         options.ExpireTimeSpan    = TimeSpan.FromMinutes(SessionTimeoutMinutes);
     });
 }
 public CloseVacancyOrchestrator(IRecruitVacancyClient vacancyClient, IUtility utility)
 {
     _vacancyClient = vacancyClient;
     _utility       = utility;
 }
Beispiel #18
0
 public SubmittedOrchestrator(IProviderVacancyClient client, IRecruitVacancyClient vacancyClient)
 {
     _client        = client;
     _vacancyClient = vacancyClient;
 }
Beispiel #19
0
 public ManageNotificationsOrchestrator(
     ILogger <ManageNotificationsOrchestrator> logger,
     IRecruitVacancyClient recruitVacancyClient) : base(logger)
 {
     _recruitVacancyClient = recruitVacancyClient;
 }
 public TrainingProviderController(TrainingProviderOrchestrator orchestrator, IEmployerVacancyClient client, IRecruitVacancyClient vacancyClient)
 {
     _orchestrator  = orchestrator;
     _client        = client;
     _vacancyClient = vacancyClient;
 }
        public static async Task <Vacancy> GetAuthorisedVacancyForEditAsync(IEmployerVacancyClient client, IRecruitVacancyClient vacancyClient, VacancyRouteModel vrm, string routeName)
        {
            var vacancy = await GetAuthorisedVacancyAsync(vacancyClient, vrm, routeName);

            CheckCanEdit(vacancy);

            return(vacancy);
        }
Beispiel #22
0
 public ProviderAccountHandler(IHostingEnvironment hostingEnvironment, IProviderVacancyClient client, IRecruitVacancyClient vacancyClient, IBlockedOrganisationQuery blockedOrganisationsRepo, ITempDataProvider tempDataProvider)
 {
     _hostingEnvironment       = hostingEnvironment;
     _client                   = client;
     _vacancyClient            = vacancyClient;
     _blockedOrganisationsRepo = blockedOrganisationsRepo;
     _tempDataProvider         = tempDataProvider;
 }
        public static async Task <ApplicationReview> GetAuthorisedApplicationReviewAsync(IRecruitVacancyClient client, ApplicationReviewRouteModel rm)
        {
            var applicationReview = await client.GetApplicationReviewAsync(rm.ApplicationReviewId);

            var vacancy = await client.GetVacancyAsync(rm.VacancyId);

            try
            {
                CheckAuthorisedAccess(vacancy, rm.EmployerAccountId);
                return(applicationReview);
            }
            catch (Exception)
            {
                throw new AuthorisationException(string.Format(ExceptionMessages.ApplicationReviewUnauthorisedAccess, rm.EmployerAccountId,
                                                               vacancy.EmployerAccountId, rm.ApplicationReviewId, vacancy.Id));
            }
        }
 public CloseVacancyOrchestrator(IEmployerVacancyClient client, IRecruitVacancyClient vacancyClient)
 {
     _client        = client;
     _vacancyClient = vacancyClient;
 }
 public VacancyViewOrchestrator(DisplayVacancyViewModelMapper vacancyDisplayMapper, IRecruitVacancyClient client)
 {
     _vacancyDisplayMapper = vacancyDisplayMapper;
     _client = client;
 }
 public UpdateUserAccountCommandHandler(IRecruitVacancyClient client, IUserRepository userRepository)
 {
     _userRepository = userRepository;
     _client         = client;
 }
 public ErrorController(ILogger <ErrorController> logger, IOptions <ExternalLinksConfiguration> externalLinks, IRecruitVacancyClient vacancyClient, ITrainingProviderSummaryProvider trainingProviderSummaryProvider)
 {
     _logger        = logger;
     _externalLinks = externalLinks.Value;
     _vacancyClient = vacancyClient;
     _trainingProviderSummaryProvider = trainingProviderSummaryProvider;
 }
 public ProviderContactDetailsOrchestrator(IProviderVacancyClient client, IRecruitVacancyClient vacancyClient, ILogger <ProviderContactDetailsOrchestrator> logger, IReviewSummaryService reviewSummaryService) : base(logger)
 {
     _client               = client;
     _vacancyClient        = vacancyClient;
     _reviewSummaryService = reviewSummaryService;
 }
 public GetSkillsQueryHandler(IRecruitVacancyClient recruitVacancyClient)
 {
     _recruitVacancyClient = recruitVacancyClient;
 }