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
  • Constructor Details

    • ManageScheduleConfigurationsJob

      public ManageScheduleConfigurationsJob()
  • Method Details

    • perform

      public de.hybris.platform.servicelayer.cronjob.PerformResult perform(CronJobModel cronJobModel)
      Specified by:
      perform in interface de.hybris.platform.servicelayer.cronjob.JobPerformable<CronJobModel>
      Specified by:
      perform in class de.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

      protected BackofficeTransportOfferingService getBackofficeTransportOfferingService()
      Returns:
      backofficeTransportOfferingService
    • setBackofficeTransportOfferingService

      public void setBackofficeTransportOfferingService(BackofficeTransportOfferingService backofficeTransportOfferingService)
      Parameters:
      backofficeTransportOfferingService - the backofficeTransportOfferingService to set
    • getBackofficeScheduleConfigurationService

      protected BackofficeScheduleConfigurationService 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