Ejemplo n.º 1
0
 public SearchesApiController(IJobAdSearchesCommand jobAdSearchesCommand, IJobAdSearchesQuery jobAdSearchesQuery, IJobAdSearchAlertsCommand jobAdSearchAlertsCommand, IAnonymousUsersCommand anonymousUsersCommand)
 {
     _jobAdSearchesCommand     = jobAdSearchesCommand;
     _jobAdSearchesQuery       = jobAdSearchesQuery;
     _jobAdSearchAlertsCommand = jobAdSearchAlertsCommand;
     _anonymousUsersCommand    = anonymousUsersCommand;
 }
Ejemplo n.º 2
0
        public static IList <JobAdSearchExecution> GetRecentSearchExecutions(this IJobAdSearchesQuery jobAdSearchesQuery, Guid memberId)
        {
            // Consolidate searches with the same criteria, and then take the latest run instance of each.

            var now = DateTime.Now;

            return((from e in jobAdSearchesQuery.GetJobAdSearchExecutions(memberId, new DateTimeRange(now.AddMonths(-1 * RecentMonths), now))
                    group e by e.Criteria into g
                    select(from x in g orderby x.StartTime descending select x).First()).OrderByDescending(e => e.StartTime).ToList());
        }
Ejemplo n.º 3
0
 public SearchController(IJobAdFoldersCommand jobAdFoldersCommand, IExecuteJobAdSearchCommand executeJobAdSearchCommand, IJobAdSearchesCommand jobAdSearchesCommand, IJobAdSearchesQuery jobAdSearchesQuery, IJobAdsQuery jobAdsQuery, ILocationQuery locationQuery, ICommunitiesQuery communitiesQuery, IVerticalsQuery verticalsQuery, IIndustriesQuery industriesQuery, IJobAdFoldersQuery jobAdFoldersQuery, IJobAdFlagListsQuery jobAdFlagListsQuery, IMemberJobAdViewsQuery memberJobAdViewsQuery, IJobAdProcessingQuery jobAdProcessingQuery, IJobAdBlockListsQuery jobAdBlockListsQuery, IEmployersQuery employersQuery)
     : base(executeJobAdSearchCommand, jobAdsQuery, jobAdFlagListsQuery, memberJobAdViewsQuery, jobAdProcessingQuery, jobAdFoldersQuery, jobAdFoldersCommand, jobAdBlockListsQuery, employersQuery)
 {
     _jobAdSearchesCommand = jobAdSearchesCommand;
     _jobAdSearchesQuery   = jobAdSearchesQuery;
     _locationQuery        = locationQuery;
     _communitiesQuery     = communitiesQuery;
     _verticalsQuery       = verticalsQuery;
     _industriesQuery      = industriesQuery;
 }
Ejemplo n.º 4
0
 public EmailJobSearchAlertsTask(IEmailsCommand emailsCommand, IJobAdsQuery jobAdsQuery, IExecuteJobAdSearchCommand executeJobAdSearchCommand, IJobAdSearchAlertsCommand jobAdSearchAlertsCommand, IJobAdSearchAlertsQuery jobAdSearchAlertsQuery, IJobAdSearchesQuery jobAdSearchesQuery, IMembersQuery membersQuery, IAnonymousUsersQuery anonymousUsersQuery)
     : base(EventSource, emailsCommand)
 {
     _jobAdsQuery = jobAdsQuery;
     _executeJobAdSearchCommand = executeJobAdSearchCommand;
     _jobAdSearchAlertsCommand  = jobAdSearchAlertsCommand;
     _jobAdSearchAlertsQuery    = jobAdSearchAlertsQuery;
     _jobAdSearchesQuery        = jobAdSearchesQuery;
     _membersQuery        = membersQuery;
     _anonymousUsersQuery = anonymousUsersQuery;
 }
Ejemplo n.º 5
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;
 }
Ejemplo n.º 6
0
 public MembersController(IFilesQuery filesQuery, IEmployerMemberAccessReportsQuery employerMemberAccessReportsQuery, IMembersQuery membersQuery, ICandidatesQuery candidatesQuery, IResumesQuery resumesQuery, IMemberStatusQuery memberStatusQuery, IJobAdSearchesQuery jobAdSearchesQuery, IExecuteJobAdSearchCommand executeJobAdSearchCommand, IJobAdsQuery jobAdsQuery, IJobAdReportsQuery jobAdReportsQuery, IMemberApplicationsQuery memberApplicationsQuery, IEmailVerificationsCommand emailVerificationsCommand, IEmailVerificationsQuery emailVerificationsQuery)
 {
     _filesQuery = filesQuery;
     _employerMemberAccessReportsQuery = employerMemberAccessReportsQuery;
     _membersQuery              = membersQuery;
     _candidatesQuery           = candidatesQuery;
     _resumesQuery              = resumesQuery;
     _memberStatusQuery         = memberStatusQuery;
     _jobAdSearchesQuery        = jobAdSearchesQuery;
     _executeJobAdSearchCommand = executeJobAdSearchCommand;
     _jobAdsQuery               = jobAdsQuery;
     _jobAdReportsQuery         = jobAdReportsQuery;
     _memberApplicationsQuery   = memberApplicationsQuery;
     _emailVerificationsCommand = emailVerificationsCommand;
     _emailVerificationsQuery   = emailVerificationsQuery;
 }
Ejemplo n.º 7
0
 public SearchesMobileController(IJobAdSearchesQuery jobAdSearchesQuery, IJobAdSearchAlertsQuery jobAdSearchAlertsQuery)
     : base(jobAdSearchesQuery, jobAdSearchAlertsQuery)
 {
 }
Ejemplo n.º 8
0
 public JobAdSearchAlertsQuery(ISearchAlertsRepository repository, IJobAdSearchesQuery jobAdSearchesQuery)
 {
     _repository         = repository;
     _jobAdSearchesQuery = jobAdSearchesQuery;
 }
Ejemplo n.º 9
0
 public JobAdSearchAlertsCommand(ISearchAlertsRepository repository, IJobAdSearchesCommand jobAdSearchesCommand, IJobAdSearchesQuery jobAdSearchesQuery)
 {
     _repository           = repository;
     _jobAdSearchesCommand = jobAdSearchesCommand;
     _jobAdSearchesQuery   = jobAdSearchesQuery;
 }
Ejemplo n.º 10
0
 public SearchesWebController(IJobAdSearchesQuery jobAdSearchesQuery, IJobAdSearchAlertsQuery jobAdSearchAlertsQuery, IJobAdSearchAlertsCommand jobAdSearchAlertsCommand, IAnonymousUsersQuery anonymousUsersQuery)
     : base(jobAdSearchesQuery, jobAdSearchAlertsQuery)
 {
     _jobAdSearchAlertsCommand = jobAdSearchAlertsCommand;
     _anonymousUsersQuery      = anonymousUsersQuery;
 }
Ejemplo n.º 11
0
 protected SearchesController(IJobAdSearchesQuery jobAdSearchesQuery, IJobAdSearchAlertsQuery jobAdSearchAlertsQuery)
 {
     _jobAdSearchesQuery     = jobAdSearchesQuery;
     _jobAdSearchAlertsQuery = jobAdSearchAlertsQuery;
 }
Ejemplo n.º 12
0
 public HomeMobileController(ILocationQuery locationQuery, IJobAdSearchesQuery jobAdSearchesQuery, IJobAdSearchAlertsQuery jobAdSearchAlertsQuery)
 {
     _locationQuery          = locationQuery;
     _jobAdSearchesQuery     = jobAdSearchesQuery;
     _jobAdSearchAlertsQuery = jobAdSearchAlertsQuery;
 }