Class ManageScheduleConfigurationsJob
java.lang.Object
de.hybris.platform.servicelayer.cronjob.AbstractJobPerformable<CronJobModel>
de.hybris.platform.travelbackofficeservices.cronjob.ManageScheduleConfigurationsJob
- All Implemented Interfaces:
de.hybris.platform.servicelayer.cronjob.JobPerformable<CronJobModel>
public class ManageScheduleConfigurationsJob
extends de.hybris.platform.servicelayer.cronjob.AbstractJobPerformable<CronJobModel>
Job creating creating schedule configurations from a transport offerings pool and associating orphan transport offerings to the correct schedule configuration
-
Field Summary
Fields inherited from class de.hybris.platform.servicelayer.cronjob.AbstractJobPerformable
flexibleSearchService, modelService, sessionService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanareMatchingScheduleDays(ScheduleConfigurationModel eligibleSchedule, TransportOfferingModel transportOffering) protected voidassociateTransportOfferingToScheduleConfiguration(ScheduleConfigurationModel scheduleConfiguration, TransportOfferingModel transportOffering) protected ScheduleConfigurationModelcreateScheduleConfiguration(TransportOfferingModel transportOffering) protected ScheduleConfigurationDayModelcreateScheduleConfigurationDay(TransportOfferingModel transportOffering) protected BackofficeScheduleConfigurationServiceprotected BackofficeTransportOfferingServiceprotected de.hybris.platform.enumeration.EnumerationServiceprotected de.hybris.platform.servicelayer.model.ModelServiceprotected booleanhasSameDayAttributes(ScheduleConfigurationDayModel scheduleConfigurationDayModel, TransportOfferingModel transportOffering) protected booleanisMatchingSchedule(ScheduleConfigurationModel schedule, TransportOfferingModel transportOffering) protected booleanisWithinAWeekFromLast(List<TransportOfferingModel> transportOfferings, TransportOfferingModel transportOffering) de.hybris.platform.servicelayer.cronjob.PerformResultperform(CronJobModel cronJobModel) voidsetBackofficeScheduleConfigurationService(BackofficeScheduleConfigurationService backofficeScheduleConfigurationService) voidsetBackofficeTransportOfferingService(BackofficeTransportOfferingService backofficeTransportOfferingService) voidsetEnumerationService(de.hybris.platform.enumeration.EnumerationService enumerationService) protected booleanupdateScheduleConfiguration(ScheduleConfigurationModel scheduleConfigurationModel, TransportOfferingModel transportOffering) Methods inherited from class de.hybris.platform.servicelayer.cronjob.AbstractJobPerformable
clearAbortRequestedIfNeeded, isAbortable, isPerformable, setFlexibleSearchService, setModelService, setSessionService
-
Constructor Details
-
ManageScheduleConfigurationsJob
public ManageScheduleConfigurationsJob()
-
-
Method Details
-
perform
- Specified by:
performin interfacede.hybris.platform.servicelayer.cronjob.JobPerformable<CronJobModel>- Specified by:
performin classde.hybris.platform.servicelayer.cronjob.AbstractJobPerformable<CronJobModel>
-
updateScheduleConfiguration
protected boolean updateScheduleConfiguration(ScheduleConfigurationModel scheduleConfigurationModel, TransportOfferingModel transportOffering) -
areMatchingScheduleDays
protected boolean areMatchingScheduleDays(ScheduleConfigurationModel eligibleSchedule, TransportOfferingModel transportOffering) -
hasSameDayAttributes
protected boolean hasSameDayAttributes(ScheduleConfigurationDayModel scheduleConfigurationDayModel, TransportOfferingModel transportOffering) -
isWithinAWeekFromLast
protected boolean isWithinAWeekFromLast(List<TransportOfferingModel> transportOfferings, TransportOfferingModel transportOffering) -
isMatchingSchedule
protected boolean isMatchingSchedule(ScheduleConfigurationModel schedule, TransportOfferingModel transportOffering) -
createScheduleConfiguration
protected ScheduleConfigurationModel createScheduleConfiguration(TransportOfferingModel transportOffering) -
createScheduleConfigurationDay
protected ScheduleConfigurationDayModel createScheduleConfigurationDay(TransportOfferingModel transportOffering) -
associateTransportOfferingToScheduleConfiguration
protected void associateTransportOfferingToScheduleConfiguration(ScheduleConfigurationModel scheduleConfiguration, TransportOfferingModel transportOffering) -
getBackofficeTransportOfferingService
- Returns:
- backofficeTransportOfferingService
-
setBackofficeTransportOfferingService
public void setBackofficeTransportOfferingService(BackofficeTransportOfferingService backofficeTransportOfferingService) - Parameters:
backofficeTransportOfferingService- the backofficeTransportOfferingService to set
-
getBackofficeScheduleConfigurationService
- Returns:
- backofficeScheduleConfigurationService
-
setBackofficeScheduleConfigurationService
public void setBackofficeScheduleConfigurationService(BackofficeScheduleConfigurationService backofficeScheduleConfigurationService) - Parameters:
backofficeScheduleConfigurationService- the backofficeScheduleConfigurationService to set
-
getModelService
protected de.hybris.platform.servicelayer.model.ModelService getModelService()- Returns:
- modelService
-
getEnumerationService
protected de.hybris.platform.enumeration.EnumerationService getEnumerationService()- Returns:
- enumerationService
-
setEnumerationService
public void setEnumerationService(de.hybris.platform.enumeration.EnumerationService enumerationService) - Parameters:
enumerationService- the enumerationService to set
-