public JobAdController(IEmployerJobAdsCommand employerJobAdsCommand, IAnonymousJobAdsCommand anonymousJobAdsCommand, IEmployerLogosCommand employerLogosCommand, IJobAdsCommand jobAdsCommand, IJobAdsQuery jobAdsQuery, IJobPostersQuery jobPostersQuery, IMemberJobAdViewsQuery memberJobAdViewsQuery, ICreditsQuery creditsQuery, IProductsQuery productsQuery, ICouponsQuery couponsQuery, IOrdersCommand ordersCommand, IOrdersQuery ordersQuery, IEmployerAllocationsCommand employerAllocationsCommand, IEmployerCreditsQuery employerCreditsQuery, IEmployerOrdersCommand employerOrdersCommand, IEmployerOrdersQuery employerOrdersQuery, ILocationQuery locationQuery, IIndustriesQuery industriesQuery, IAccountsManager accountsManager, ILoginCredentialsQuery loginCredentialsQuery, ILoginAuthenticationCommand loginAuthenticationCommand, IAuthenticationManager authenticationManager) { _employerJobAdsCommand = employerJobAdsCommand; _anonymousJobAdsCommand = anonymousJobAdsCommand; _employerLogosCommand = employerLogosCommand; _jobAdsCommand = jobAdsCommand; _jobAdsQuery = jobAdsQuery; _jobPostersQuery = jobPostersQuery; _memberJobAdViewsQuery = memberJobAdViewsQuery; _creditsQuery = creditsQuery; _productsQuery = productsQuery; _couponsQuery = couponsQuery; _ordersCommand = ordersCommand; _ordersQuery = ordersQuery; _employerAllocationsCommand = employerAllocationsCommand; _employerCreditsQuery = employerCreditsQuery; _employerOrdersCommand = employerOrdersCommand; _employerOrdersQuery = employerOrdersQuery; _locationQuery = locationQuery; _industriesQuery = industriesQuery; _accountsManager = accountsManager; _loginCredentialsQuery = loginCredentialsQuery; _loginAuthenticationCommand = loginAuthenticationCommand; _authenticationManager = authenticationManager; }
private static JobAd PostTestJobAd(this IJobAdsCommand jobAdsCommand, JobAd jobAd, JobAdStatus jobStatus) { jobAdsCommand.CreateJobAd(jobAd); switch (jobStatus) { case JobAdStatus.Open: jobAdsCommand.OpenJobAd(jobAd); break; case JobAdStatus.Closed: jobAdsCommand.OpenJobAd(jobAd); jobAdsCommand.CloseJobAd(jobAd); break; case JobAdStatus.Deleted: jobAdsCommand.DeleteJobAd(jobAd); break; default: //do nothing - job is created in draft state break; } return(jobAd); }
public static void PostJobAd(this IJobAdsCommand jobAdsCommand, JobAd jobAd) { // Creating the job ad puts it into the Draft state so open it as well. jobAdsCommand.CreateJobAd(jobAd); jobAdsCommand.OpenJobAd(jobAd); }
public EmployerJobAdsCommand(IJobAdsCommand jobAdsCommand, IJobAdsQuery jobAdsQuery, IEmployerCreditsCommand employerCreditsCommand, int dailyLimit, int weeklyLimit) { _jobAdsCommand = jobAdsCommand; _jobAdsQuery = jobAdsQuery; _employerCreditsCommand = employerCreditsCommand; _dailyLimit = dailyLimit; _weeklyLimit = weeklyLimit; }
public JobAdPostsManager(IEmployerJobAdsCommand employerJobAdsCommand, IJobAdsCommand jobAdsCommand, IJobAdsQuery jobAdsQuery, IJobAdIntegrationQuery jobAdIntegrationQuery, IExternalJobAdsCommand externalJobAdsCommand) { _employerJobAdsCommand = employerJobAdsCommand; _jobAdsCommand = jobAdsCommand; _jobAdsQuery = jobAdsQuery; _jobAdIntegrationQuery = jobAdIntegrationQuery; _externalJobAdsCommand = externalJobAdsCommand; }
public JobAdsPollerTask(IJobAdsCommand jobAdsCommand, IJobAdsQuery jobAdsQuery, IJobAdIntegrationQuery jobAdIntegrationQuery, IExternalJobAdsCommand externalJobAdsCommand, IExternalJobAdsQuery externalJobAdsQuery, IJobAdIntegrationReportsCommand jobAdIntegrationReportsCommand, ILocationQuery locationQuery, IIndustriesQuery industriesQuery, ICareerOneQuery careerOneQuery) : base(jobAdsCommand, jobAdsQuery, jobAdIntegrationQuery, externalJobAdsCommand, jobAdIntegrationReportsCommand, Logger) { _locationQuery = locationQuery; _industriesQuery = industriesQuery; _externalJobAdsQuery = externalJobAdsQuery; _careerOneQuery = careerOneQuery; }
public ExternalJobAdsCommand(IJobAdsCommand jobAdsCommand, IJobAdsQuery jobAdsQuery, IJobAdIntegrationQuery jobAdIntegrationQuery, IJobG8Query jobG8Query, ICareerOneQuery careerOneQuery, IJxtQuery jxtQuery) : base(jobAdsQuery, jobAdIntegrationQuery) { _jobAdsCommand = jobAdsCommand; _jobG8IntegratorUserId = jobG8Query.GetIntegratorUser().Id; _careerOneIntegratorUserId = careerOneQuery.GetIntegratorUser().Id; _jxtIntegratorUserId = jxtQuery.GetIntegratorUser().Id; }
public JobFeedReaderTask(IJobAdsCommand jobAdsCommand, IJobAdsQuery jobAdsQuery, IJobAdIntegrationQuery jobAdIntegrationQuery, IExternalJobAdsCommand externalJobAdsCommand, IExternalJobAdsQuery externalJobAdsQuery, IJobAdIntegrationReportsCommand jobAdIntegrationReportsCommand, IIntegrationQuery integrationQuery, IIndustriesQuery industriesQuery, ILocationQuery locationQuery) : base(jobAdsCommand, jobAdsQuery, jobAdIntegrationQuery, externalJobAdsCommand, jobAdIntegrationReportsCommand, Logger) { _externalJobAdsQuery = externalJobAdsQuery; _integrationQuery = integrationQuery; _industriesQuery = industriesQuery; _locationQuery = locationQuery; IntegratorUserLoginId = "PageUpPeople"; }
protected JobFeedReaderTaskBase(IJobAdsCommand jobAdsCommand, IJobAdsQuery jobAdsQuery, IJobAdIntegrationQuery jobAdIntegrationQuery, IExternalJobAdsCommand externalJobAdsCommand, IJobAdIntegrationReportsCommand jobAdIntegrationReportsCommand, EventSource logger) : base(logger) { _jobAdsCommand = jobAdsCommand; _jobAdsQuery = jobAdsQuery; _jobAdIntegrationQuery = jobAdIntegrationQuery; _externaljobAdsCommand = externalJobAdsCommand; _jobAdIntegrationReportsCommand = jobAdIntegrationReportsCommand; _logger = logger; }
public JobAdApplicationsManager(IJobAdsCommand jobAdsCommand, IApplicationsCommand applicationsCommand, IMemberApplicationsQuery memberApplicationsQuery, IMembersQuery membersQuery, ICandidatesQuery candidatesQuery, IResumesQuery resumesQuery, IEmployerResumeFilesQuery employerResumeFilesQuery, IAnonymousUsersQuery anonymousUsersQuery, IFilesQuery filesQuery, ILocationQuery locationQuery) { _jobAdsCommand = jobAdsCommand; _applicationsCommand = applicationsCommand; _memberApplicationsQuery = memberApplicationsQuery; _membersQuery = membersQuery; _candidatesQuery = candidatesQuery; _resumesQuery = resumesQuery; _employerResumeFilesQuery = employerResumeFilesQuery; _anonymousUsersQuery = anonymousUsersQuery; _filesQuery = filesQuery; _locationQuery = locationQuery; }
public CreditsHandler(IEmailsCommand emailsCommand, IEmployersQuery employersQuery, IOrganisationsQuery organisationsQuery, IRecruitersQuery recruitersQuery, IAdministratorsQuery administratorsQuery, IAllocationsCommand allocationsCommand, IAllocationsQuery allocationsQuery, ICreditsQuery creditsQuery, IJobAdsCommand jobAdsCommand, IJobAdsQuery jobAdsQuery) { _emailsCommand = emailsCommand; _employersQuery = employersQuery; _organisationsQuery = organisationsQuery; _recruitersQuery = recruitersQuery; _administratorsQuery = administratorsQuery; _allocationsCommand = allocationsCommand; _allocationsQuery = allocationsQuery; _creditsQuery = creditsQuery; _jobAdsCommand = jobAdsCommand; _jobAdsQuery = jobAdsQuery; }
public JobAdsController(IEmployerJobAdsCommand employerJobAdsCommand, IJobAdsCommand jobAdsCommand, IJobAdsQuery jobAdsQuery, IMemberJobAdViewsQuery memberJobAdViewsQuery, IJobAdIntegrationQuery jobAdIntegrationQuery, IExternalJobAdsCommand externalJobAdsCommand, IExternalJobAdsQuery externalJobAdsQuery, IEmployersQuery employersQuery, IEmployerCreditsQuery employerCreditsQuery, ILoginCredentialsQuery loginCredentialsQuery, IIndustriesQuery industriesQuery, ILocationQuery locationQuery, IServiceAuthenticationManager serviceAuthenticationManager, IJobAdSearchesQuery jobAdSearchesQuery, IExecuteJobAdSearchCommand executeJobAdSearchCommand, IJobAdIntegrationReportsCommand jobAdIntegrationReportsCommand) { _jobAdFeedsManager = new JobAdFeedsManager(memberJobAdViewsQuery, jobAdIntegrationQuery, employersQuery, employerCreditsQuery, executeJobAdSearchCommand); _jobAdPostsManager = new JobAdPostsManager(employerJobAdsCommand, jobAdsCommand, jobAdsQuery, jobAdIntegrationQuery, externalJobAdsCommand); _employersQuery = employersQuery; _externalJobAdsQuery = externalJobAdsQuery; _loginCredentialsQuery = loginCredentialsQuery; _jobAdIntegrationReportsCommand = jobAdIntegrationReportsCommand; _industriesQuery = industriesQuery; _serviceAuthenticationManager = serviceAuthenticationManager; _jobAdSearchesQuery = jobAdSearchesQuery; _locationQuery = locationQuery; }
public AdvertPostService([Dependency("linkme.integration.jobg8.jobPoster")] string jobPosterUserId, IJobAdsCommand jobAdsCommand, IJobAdsQuery jobAdsQuery, IJobAdIntegrationQuery jobAdIntegrationQuery, IExternalJobAdsCommand externalJobAdsCommand, ILocationQuery locationQuery, IIndustriesQuery industriesQuery, IEmployersQuery employersQuery, ILoginCredentialsQuery loginCredentialsQuery, IServiceAuthenticationManager serviceAuthenticationManager, IJobAdIntegrationReportsCommand jobAdIntegrationReportsCommand) { _jobPosterUserId = jobPosterUserId; _locationMapper = new LocationMapper(locationQuery); _industriesQuery = industriesQuery; _jobAdsCommand = jobAdsCommand; _jobAdsQuery = jobAdsQuery; _jobAdIntegrationQuery = jobAdIntegrationQuery; _externalJobAdsCommand = externalJobAdsCommand; _employersQuery = employersQuery; _loginCredentialsQuery = loginCredentialsQuery; _serviceAuthenticationManager = serviceAuthenticationManager; _jobAdIntegrationReportsCommand = jobAdIntegrationReportsCommand; }
public JobAdsPollerTask(IMyCareerQuery myCareerQuery, IEmployersQuery employersQuery, ILoginCredentialsQuery loginCredentialsQuery, IJobAdsCommand jobAdsCommand, IJobAdsQuery jobAdsQuery, IJobAdIntegrationQuery jobAdIntegrationQuery, IExternalJobAdsCommand externalJobAdsCommand, ILocationQuery locationQuery) : base(EventSource) { _myCareerQuery = myCareerQuery; _employersQuery = employersQuery; _loginCredentialsQuery = loginCredentialsQuery; _jobAdsCommand = jobAdsCommand; _jobAdsQuery = jobAdsQuery; _jobAdIntegrationQuery = jobAdIntegrationQuery; _externalJobAdsCommand = externalJobAdsCommand; _locationMapper = new LocationMapper(locationQuery); _progressInterval = 5 * 60 * 1000; // default = 5 min. }
public static JobAd CopyForPosting(this IJobAdsCommand jobAdsCommand, JobAd jobAd) { var newJobAd = new JobAd(); //jobAd.CopyTo(newJobAd); // Reset the expiry time and prepare the job ad so that times are correctly set when showing it. newJobAd.CreatedTime = DateTime.MinValue; newJobAd.LastUpdatedTime = DateTime.MinValue; newJobAd.ExpiryTime = DateTime.MinValue; //jobAdsCommand.PrepareJobAd(newJobAd); return(newJobAd); }
private static JobAd PostTestJobAd(this IJobAdsCommand jobAdsCommand, JobAd jobAd, JobAdStatus jobStatus) { jobAdsCommand.CreateJobAd(jobAd); switch (jobStatus) { case JobAdStatus.Open: jobAdsCommand.OpenJobAd(jobAd); break; case JobAdStatus.Closed: jobAdsCommand.OpenJobAd(jobAd); jobAdsCommand.CloseJobAd(jobAd); break; case JobAdStatus.Deleted: jobAdsCommand.DeleteJobAd(jobAd); break; } return(jobAd); }
public static JobAd PostTestJobAd(this IJobAdsCommand jobAdsCommand, AnonymousUser user) { return(PostTestJobAd(jobAdsCommand, user, JobAdStatus.Open)); }
public JobAdSalariesParserCommand(IJobAdsQuery jobAdsQuery, IJobAdsCommand jobAdsCommand) { _jobAdsQuery = jobAdsQuery; _jobAdsCommand = jobAdsCommand; }
public UpdateJobAdsTask(IJobAdsCommand jobAdsCommand, IJobAdsQuery jobAdsQuery) : base(EventSource) { _jobAdsCommand = jobAdsCommand; _jobAdsQuery = jobAdsQuery; }
/// <summary> /// Creates an OPEN job ad /// </summary> /// <param name="jobAdsCommand"></param> /// <param name="employer"></param> /// <returns>Open job ad</returns> public static JobAd PostTestJobAd(this IJobAdsCommand jobAdsCommand, IEmployer employer) { return(PostTestJobAd(jobAdsCommand, employer, JobAdStatus.Open)); }
public static JobAd PostTestJobAd(this IJobAdsCommand jobAdsCommand, IEmployer employer, string title) { return(PostTestJobAd(jobAdsCommand, employer.CreateTestJobAd(title), JobAdStatus.Open)); }
public static JobAd PostTestJobAd(this IJobAdsCommand jobAdsCommand, IEmployer employer, JobAdStatus jobStatus) { return(PostTestJobAd(jobAdsCommand, employer.CreateTestJobAd(), jobStatus)); }
public AnonymousJobAdsCommand(IJobPostersCommand jobPostersCommand, IJobAdsCommand jobAdsCommand) { _jobPostersCommand = jobPostersCommand; _jobAdsCommand = jobAdsCommand; }
public static JobAd PostTestJobAd(this IJobAdsCommand jobAdsCommand, AnonymousUser user, string title) { return(PostTestJobAd(jobAdsCommand, user.CreateTestJobAd(title), JobAdStatus.Open)); }
public static JobAd PostTestJobAd(this IJobAdsCommand jobAdsCommand, AnonymousUser user, JobAdStatus jobStatus) { return(PostTestJobAd(jobAdsCommand, user.CreateTestJobAd(), jobStatus)); }