Class ShoppingCreateBundleChildTemplatesHandler

java.lang.Object
de.hybris.platform.shoppingbackoffice.widgets.bundle.ShoppingCreateBundleChildTemplatesHandler
All Implemented Interfaces:
com.hybris.cockpitng.widgets.configurableflow.FlowActionHandler

public class ShoppingCreateBundleChildTemplatesHandler extends Object implements com.hybris.cockpitng.widgets.configurableflow.FlowActionHandler
Custom Handler for the custom navigation action defined in the Bundle Wizard. This handler sets the catalog version of the Parent Bundle in the child bundles
  • Field Details

  • Constructor Details

    • ShoppingCreateBundleChildTemplatesHandler

      public ShoppingCreateBundleChildTemplatesHandler()
  • Method Details

    • perform

      public void perform(com.hybris.cockpitng.config.jaxb.wizard.CustomType customType, com.hybris.cockpitng.widgets.configurableflow.FlowActionHandlerAdapter flowActionHandlerAdapter, Map<String,String> map)
      Specified by:
      perform in interface com.hybris.cockpitng.widgets.configurableflow.FlowActionHandler
    • validateUniqueBundleId

      protected boolean validateUniqueBundleId(String bundleTemplateId, String version)
      Validate the bundleTemplateId that should be unique for the given catalog.
      Parameters:
      bundleTemplateId - as the bundle template id
      version - as the version
      Returns:
      true if the id is valid, false otherwise
    • getBundleTemplateStatus

      protected BundleTemplateStatusModel getBundleTemplateStatus()
      Returns the bundle template status model
      Returns:
      bundle template status model
    • getFareBundleTemplateId

      protected String getFareBundleTemplateId(String bundleTemplateId)
      Returns the id of the Fare Product Bundle Template. The id is build as a concat of the {#FARE_PRODUCT_BUNDLE_ID} constant and the id of the parentBundleTemplate id.
      Parameters:
      bundleTemplateId - the bundle template id
      Returns:
      a string representing the id of the Fare Product Bundle Template
    • getAncillaryBundleTemplateId

      protected String getAncillaryBundleTemplateId(String bundleTemplateId)
      Returns the id of the Ancillary Product Bundle Template. The id is build as a concat of the {#ANCILLARY_PRODUCT_BUNDLE_ID} constant and the id of the parentBundleTemplate id.
      Parameters:
      bundleTemplateId - the bundle template id
      Returns:
      a string representing the id of the Ancillary Product Bundle Template
    • getFareProductBundleSelectionCriteria

      protected BundleSelectionCriteriaModel getFareProductBundleSelectionCriteria(CatalogVersionModel catalogVersion, String bundleTemplateId)
      Returns the BundleSelectionCriteriaModel instance of PickExactlyNBundleSelectionCriteriaModel for the Fare product bundle template.
      Parameters:
      catalogVersion - as the catalog version
      bundleTemplateId - as the bundle template id
      Returns:
      the bundle selection criteria model
    • getAncillaryProductBundleSelectionCriteria

      protected BundleSelectionCriteriaModel getAncillaryProductBundleSelectionCriteria(CatalogVersionModel catalogVersion, String bundleTemplateId)
      Returns the BundleSelectionCriteriaModel instance of AutoPickBundleSelectionCriteriaModel for the Ancillary product bundle template.
      Parameters:
      catalogVersion - as the catalog version
      bundleTemplateId - as the bundle template id
      Returns:
      the bundle selection criteria model
    • getTravelBundleTemplateService

      protected TravelBundleTemplateService getTravelBundleTemplateService()
      Gets travel bundle template service.
      Returns:
      the travel bundle template service
    • setTravelBundleTemplateService

      public void setTravelBundleTemplateService(TravelBundleTemplateService travelBundleTemplateService)
      Sets travel bundle template service.
      Parameters:
      travelBundleTemplateService - the travel bundle template service
    • getTravelBundleTemplateStatusService

      protected TravelBundleTemplateStatusService getTravelBundleTemplateStatusService()
      Gets travel bundle template status service.
      Returns:
      the travel bundle template status service
    • setTravelBundleTemplateStatusService

      public void setTravelBundleTemplateStatusService(TravelBundleTemplateStatusService travelBundleTemplateStatusService)
      Sets travel bundle template status service.
      Parameters:
      travelBundleTemplateStatusService - the travel bundle template status service
    • getModelService

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

      public void setModelService(de.hybris.platform.servicelayer.model.ModelService modelService)
      Sets model service.
      Parameters:
      modelService - the model service
    • getEnumerationService

      protected de.hybris.platform.enumeration.EnumerationService getEnumerationService()
      Gets enumeration service.
      Returns:
      the enumeration service
    • setEnumerationService

      public void setEnumerationService(de.hybris.platform.enumeration.EnumerationService enumerationService)
      Sets enumeration service.
      Parameters:
      enumerationService - the enumeration service