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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddisplayErrorMessage(String errorMsg, String title) Displays the error message pop-up.protected voidemptySelection(ManageStockLevelInfo manageStockLevel, com.hybris.cockpitng.widgets.configurableflow.FlowActionHandlerAdapter adapter) This method is used to empty the previous user data for radio buttons except "radioButtonSelected"protected BackofficeScheduleConfigurationServiceGets backoffice schedule configuration service.voidperform(com.hybris.cockpitng.config.jaxb.wizard.CustomType customType, com.hybris.cockpitng.widgets.configurableflow.FlowActionHandlerAdapter adapter, Map<String, String> parameters) voidsetBackofficeScheduleConfigurationService(BackofficeScheduleConfigurationService backofficeScheduleConfigurationService) Sets backoffice schedule configuration service.protected StringvalidateFlightSelection(ManageStockLevelInfo manageStockLevel) Validate flight selection string.protected StringvalidateScheduleSelection(com.hybris.cockpitng.widgets.configurableflow.FlowActionHandlerAdapter adapter, ManageStockLevelInfo manageStockLevel) Validate schedule selection string.protected StringvalidateSectorSelection(ManageStockLevelInfo manageStockLevel) Validate sector selection string.
-
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:
performin interfacecom.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 leveladapter- the adapter
-
validateScheduleSelection
protected String validateScheduleSelection(com.hybris.cockpitng.widgets.configurableflow.FlowActionHandlerAdapter adapter, ManageStockLevelInfo manageStockLevel) Validate schedule selection string.- Parameters:
adapter- the adaptermanageStockLevel- the manage stock level- Returns:
- the string
-
validateSectorSelection
Validate sector selection string.- Parameters:
manageStockLevel- the manage stock level- Returns:
- the string
-
validateFlightSelection
Validate flight selection string.- Parameters:
manageStockLevel- the manage stock level- Returns:
- the string
-
displayErrorMessage
Displays the error message pop-up.- Parameters:
errorMsg- the error msgtitle- the title
-
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
-