Class MarketingRatePlanInfoJob

java.lang.Object
de.hybris.platform.servicelayer.cronjob.AbstractJobPerformable<MarketingRatePlanInfoCronjobModel>
de.hybris.platform.travelservices.cronjob.MarketingRatePlanInfoJob
All Implemented Interfaces:
de.hybris.platform.servicelayer.cronjob.JobPerformable<MarketingRatePlanInfoCronjobModel>

public class MarketingRatePlanInfoJob extends de.hybris.platform.servicelayer.cronjob.AbstractJobPerformable<MarketingRatePlanInfoCronjobModel>
Cronjob to create and populate the MarketingRatePlanInfo and the RatePlanConfig. This cronjob will correctly populated the items only if the GuestOccupancy are set just for the Accommodation. In case that different ratePlans are used for different GuestOccupancies, the logic should be extended and customised.
  • Field Details

    • DEFAULT_CATALOG_VERSION

      protected static final String DEFAULT_CATALOG_VERSION
      See Also:
    • productCatalogId

      protected String productCatalogId
  • Constructor Details

    • MarketingRatePlanInfoJob

      public MarketingRatePlanInfoJob()
  • Method Details

    • perform

      public de.hybris.platform.servicelayer.cronjob.PerformResult perform(MarketingRatePlanInfoCronjobModel marketingRatePlanInfoCronjobModel)
      Specified by:
      perform in interface de.hybris.platform.servicelayer.cronjob.JobPerformable<MarketingRatePlanInfoCronjobModel>
      Specified by:
      perform in class de.hybris.platform.servicelayer.cronjob.AbstractJobPerformable<MarketingRatePlanInfoCronjobModel>
    • createMarketingRatePlanInfoList

      protected void createMarketingRatePlanInfoList(List<AccommodationOfferingModel> accommodationOfferings, String ratePlanCode)
    • createNewMarketingRatePlanInfo

      protected MarketingRatePlanInfoModel createNewMarketingRatePlanInfo(AccommodationOfferingModel accommodationOffering, List<AccommodationModel> accommodations, GuestOccupancyModel guestOccupancyModel, String ratePlanCode)
    • createRatePlanConfig

      protected RatePlanConfigModel createRatePlanConfig(AccommodationModel accommodationModel, String ratePlanCode, CatalogVersionModel catalogVersion)
    • getAccommodationOfferingService

      protected AccommodationOfferingService getAccommodationOfferingService()
      Returns:
      the accommodationOfferingService
    • setAccommodationOfferingService

      public void setAccommodationOfferingService(AccommodationOfferingService accommodationOfferingService)
      Parameters:
      accommodationOfferingService - the accommodationOfferingService to set
    • getModelService

      protected de.hybris.platform.servicelayer.model.ModelService getModelService()
      Returns:
      the modelService
    • setModelService

      public void setModelService(de.hybris.platform.servicelayer.model.ModelService modelService)
      Overrides:
      setModelService in class de.hybris.platform.servicelayer.cronjob.AbstractJobPerformable<MarketingRatePlanInfoCronjobModel>
      Parameters:
      modelService - the modelService to set
    • getCatalogVersionService

      protected de.hybris.platform.catalog.CatalogVersionService getCatalogVersionService()
      Returns:
      the catalogVersionService
    • setCatalogVersionService

      public void setCatalogVersionService(de.hybris.platform.catalog.CatalogVersionService catalogVersionService)
      Parameters:
      catalogVersionService - the catalogVersionService to set
    • getRatePlanConfigService

      protected RatePlanConfigService getRatePlanConfigService()
      Returns:
      the ratePlanConfigService
    • setRatePlanConfigService

      public void setRatePlanConfigService(RatePlanConfigService ratePlanConfigService)
      Parameters:
      ratePlanConfigService - the ratePlanConfigService to set
    • getMarketingRatePlanInfoService

      protected MarketingRatePlanInfoService getMarketingRatePlanInfoService()
      Returns:
      the marketingRatePlanInfoService
    • setMarketingRatePlanInfoService

      public void setMarketingRatePlanInfoService(MarketingRatePlanInfoService marketingRatePlanInfoService)
      Parameters:
      marketingRatePlanInfoService - the marketingRatePlanInfoService to set
    • getDefaultAccommodationService

      protected DefaultAccommodationService getDefaultAccommodationService()
    • setDefaultAccommodationService

      public void setDefaultAccommodationService(DefaultAccommodationService defaultAccommodationService)