Class CreateBundleAncillaryProductHandler

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

public class CreateBundleAncillaryProductHandler extends Object implements com.hybris.cockpitng.widgets.configurableflow.FlowActionHandler
Custom Handler for the custom navigation action defined in the Bundle Wizard. This handler validates Change Product Price Rule or price rows for selected Ancillary Products
  • Field Details

    • ADD_ANCILLARY_BUNDLE_TEMPLATE_ERROR_MESSAGE

      protected static final String ADD_ANCILLARY_BUNDLE_TEMPLATE_ERROR_MESSAGE
      See Also:
    • CREATE_ANCILLARY_BUNDLE_TEMPLATE_ITEM_ID

      protected static final String CREATE_ANCILLARY_BUNDLE_TEMPLATE_ITEM_ID
      See Also:
  • Constructor Details

    • CreateBundleAncillaryProductHandler

      public CreateBundleAncillaryProductHandler()
  • 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
    • getProductsWithoutPriceRows

      protected List<String> getProductsWithoutPriceRows(List<ProductModel> productModelList)
      Returns Selected Ancillary Products without price Rows in bundle template
      Parameters:
      productModelList -
      Returns:
      List
    • showErrorPopup

      protected void showErrorPopup(String label)
      Method responsible to show error/warning if no ChangeProductPriceBundleRule or PriceRow.
      Parameters:
      label - the label