示例#1
0
 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;
 }
示例#2
0
        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);
        }
示例#3
0
        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);
        }
示例#4
0
 public EmployerJobAdsCommand(IJobAdsCommand jobAdsCommand, IJobAdsQuery jobAdsQuery, IEmployerCreditsCommand employerCreditsCommand, int dailyLimit, int weeklyLimit)
 {
     _jobAdsCommand          = jobAdsCommand;
     _jobAdsQuery            = jobAdsQuery;
     _employerCreditsCommand = employerCreditsCommand;
     _dailyLimit             = dailyLimit;
     _weeklyLimit            = weeklyLimit;
 }
示例#5
0
 public JobAdPostsManager(IEmployerJobAdsCommand employerJobAdsCommand, IJobAdsCommand jobAdsCommand, IJobAdsQuery jobAdsQuery, IJobAdIntegrationQuery jobAdIntegrationQuery, IExternalJobAdsCommand externalJobAdsCommand)
 {
     _employerJobAdsCommand = employerJobAdsCommand;
     _jobAdsCommand         = jobAdsCommand;
     _jobAdsQuery           = jobAdsQuery;
     _jobAdIntegrationQuery = jobAdIntegrationQuery;
     _externalJobAdsCommand = externalJobAdsCommand;
 }
示例#6
0
 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;
 }
示例#7
0
 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;
 }
示例#8
0
 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";
 }
示例#9
0
 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;
 }
示例#10
0
 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;
 }
示例#11
0
 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;
 }
示例#12
0
 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;
 }
示例#13
0
 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;
 }
示例#14
0
        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.
        }
示例#15
0
        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);
        }
示例#16
0
        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);
        }
示例#17
0
 public static JobAd PostTestJobAd(this IJobAdsCommand jobAdsCommand, AnonymousUser user)
 {
     return(PostTestJobAd(jobAdsCommand, user, JobAdStatus.Open));
 }
示例#18
0
        public JobAdSalariesParserCommand(IJobAdsQuery jobAdsQuery, IJobAdsCommand jobAdsCommand)
        {
            _jobAdsQuery = jobAdsQuery;

            _jobAdsCommand = jobAdsCommand;
        }
示例#19
0
 public UpdateJobAdsTask(IJobAdsCommand jobAdsCommand, IJobAdsQuery jobAdsQuery)
     : base(EventSource)
 {
     _jobAdsCommand = jobAdsCommand;
     _jobAdsQuery   = jobAdsQuery;
 }
示例#20
0
 /// <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));
 }
示例#21
0
 public static JobAd PostTestJobAd(this IJobAdsCommand jobAdsCommand, IEmployer employer, string title)
 {
     return(PostTestJobAd(jobAdsCommand, employer.CreateTestJobAd(title), JobAdStatus.Open));
 }
示例#22
0
 public static JobAd PostTestJobAd(this IJobAdsCommand jobAdsCommand, IEmployer employer, JobAdStatus jobStatus)
 {
     return(PostTestJobAd(jobAdsCommand, employer.CreateTestJobAd(), jobStatus));
 }
示例#23
0
 public AnonymousJobAdsCommand(IJobPostersCommand jobPostersCommand, IJobAdsCommand jobAdsCommand)
 {
     _jobPostersCommand = jobPostersCommand;
     _jobAdsCommand     = jobAdsCommand;
 }
示例#24
0
 public static JobAd PostTestJobAd(this IJobAdsCommand jobAdsCommand, AnonymousUser user, string title)
 {
     return(PostTestJobAd(jobAdsCommand, user.CreateTestJobAd(title), JobAdStatus.Open));
 }
示例#25
0
 public static JobAd PostTestJobAd(this IJobAdsCommand jobAdsCommand, AnonymousUser user, JobAdStatus jobStatus)
 {
     return(PostTestJobAd(jobAdsCommand, user.CreateTestJobAd(), jobStatus));
 }