Class CreateInventoryForBookingClassStepHandler

java.lang.Object
de.hybris.platform.transportbackoffice.widgets.inventory.handler.CreateInventoryForBookingClassStepHandler
All Implemented Interfaces:
com.hybris.cockpitng.widgets.configurableflow.FlowActionHandler
Direct Known Subclasses:
CreateAncillaryInventoryForBookingClassStepHandler

public class CreateInventoryForBookingClassStepHandler extends Object implements com.hybris.cockpitng.widgets.configurableflow.FlowActionHandler
Responsible for handling the next step logic for Step 1 in Create Inventory for Booking Class.
  • Constructor Details

    • CreateInventoryForBookingClassStepHandler

      public CreateInventoryForBookingClassStepHandler()
  • Method Details

    • perform

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

      protected void emptySelection(ManageStockLevelInfo manageStockLevel, com.hybris.cockpitng.widgets.configurableflow.FlowActionHandlerAdapter adapter)
      This method is used to empty the previous user data for radio buttons except "radioButtonSelected"
      Parameters:
      manageStockLevel - the manage stock level
      adapter - the adapter
    • validateScheduleSelection

      protected String validateScheduleSelection(com.hybris.cockpitng.widgets.configurableflow.FlowActionHandlerAdapter adapter, ManageStockLevelInfo manageStockLevel)
      Validate schedule selection string.
      Parameters:
      adapter - the adapter
      manageStockLevel - the manage stock level
      Returns:
      the string
    • validateSectorSelection

      protected String validateSectorSelection(ManageStockLevelInfo manageStockLevel)
      Validate sector selection string.
      Parameters:
      manageStockLevel - the manage stock level
      Returns:
      the string
    • validateFlightSelection

      protected String validateFlightSelection(ManageStockLevelInfo manageStockLevel)
      Validate flight selection string.
      Parameters:
      manageStockLevel - the manage stock level
      Returns:
      the string
    • displayErrorMessage

      protected void displayErrorMessage(String errorMsg, String title)
      Displays the error message pop-up.
      Parameters:
      errorMsg - the error msg
      title - the title
    • getBackofficeScheduleConfigurationService

      protected BackofficeScheduleConfigurationService getBackofficeScheduleConfigurationService()
      Gets backoffice schedule configuration service.
      Returns:
      the backoffice schedule configuration service
    • setBackofficeScheduleConfigurationService

      public void setBackofficeScheduleConfigurationService(BackofficeScheduleConfigurationService backofficeScheduleConfigurationService)
      Sets backoffice schedule configuration service.
      Parameters:
      backofficeScheduleConfigurationService - the backoffice schedule configuration service