Class CreateBundleMappingOptionsHandler

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

public class CreateBundleMappingOptionsHandler extends Object implements com.hybris.cockpitng.widgets.configurableflow.FlowActionHandler
Custom Handler for the custom navigation action defined in the Bundle Template Wizard. This handler sets the target on the customType based on the selected radio button.
  • Field Details

    • MAPPING_ATTRIBUTE_KEY

      protected static final String MAPPING_ATTRIBUTE_KEY
      See Also:
    • CREATE_BUNDLE_WIZARD_FIRST_STEP_ERROR_MESSAGE

      protected static final String CREATE_BUNDLE_WIZARD_FIRST_STEP_ERROR_MESSAGE
      See Also:
    • CREATE_BUNDLE_WIZARD_FIRST_STEP_ERROR_TITLE

      protected static final String CREATE_BUNDLE_WIZARD_FIRST_STEP_ERROR_TITLE
      See Also:
  • Constructor Details

    • CreateBundleMappingOptionsHandler

      public CreateBundleMappingOptionsHandler()
  • 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
    • validateMandatoryFields

      protected boolean validateMandatoryFields(com.hybris.cockpitng.components.Widgetslot widgetslot)
      Validates if the mandatory reference editor is populated when the corresponding radio button is selected.
      Parameters:
      widgetslot - as the widget slot
      Returns:
      boolean true if it is valid, false otherwise
    • getReferenceEditorId

      protected String getReferenceEditorId(org.zkoss.zul.Radio radio)
      Returns the id of the reference editor corresponding to the given radio
      Parameters:
      radio - as the radio
      Returns:
      the reference editor id
    • resetReferenceSelection

      protected void resetReferenceSelection(com.hybris.cockpitng.core.model.WidgetModel widgetModel, String radioId)
      Reset the selection in the reference editor corresponding to the radio button for the given radioId.
      Parameters:
      widgetModel - as the widget model.
      radioId - as the id of the radio button