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; }
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; }
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; }
public VacancyManageOrchestrator(ILogger <VacancyManageOrchestrator> logger, DisplayVacancyViewModelMapper vacancyDisplayMapper, IRecruitVacancyClient client, IFeature featureToggle, ProviderRecruitSystemConfiguration systemConfig) : base(logger) { _vacancyDisplayMapper = vacancyDisplayMapper; _client = client; _featureToggle = featureToggle; _systemConfig = systemConfig; }
private static async Task HandleUserSignedIn(SecurityTokenValidatedContext ctx, IRecruitVacancyClient vacancyClient) { var user = ctx.Principal.ToVacancyUser(); await vacancyClient.UserSignedInAsync(user, UserType.Provider); }
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; }
public ConsiderationsOrchestrator(ILogger <ConsiderationsOrchestrator> logger, IRecruitVacancyClient vacancyClient, IReviewSummaryService reviewSummaryService, IUtility utility) : base(logger) { _vacancyClient = vacancyClient; _reviewSummaryService = reviewSummaryService; _utility = utility; }
public EditVacancyDatesOrchestrator(IRecruitVacancyClient vacancyClient, ILogger <EditVacancyDatesOrchestrator> logger, ITimeProvider timeProvider) : base(logger) { _vacancyClient = vacancyClient; _timeProvider = timeProvider; }
public AboutEmployerOrchestrator(IProviderVacancyClient client, IRecruitVacancyClient vacancyClient, ILogger <AboutEmployerOrchestrator> logger, IReviewSummaryService reviewSummaryService) : base(logger) { _client = client; _vacancyClient = vacancyClient; _reviewSummaryService = reviewSummaryService; }
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; }
public SubmittedOrchestrator(IProviderVacancyClient client, IRecruitVacancyClient vacancyClient) { _client = client; _vacancyClient = vacancyClient; }
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); }
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; }