Class GuestCountValidationHandler
java.lang.Object
de.hybris.platform.staticpackagebackoffice.widgets.handler.GuestCountValidationHandler
- All Implemented Interfaces:
com.hybris.cockpitng.widgets.configurableflow.FlowActionHandler
public class GuestCountValidationHandler
extends Object
implements com.hybris.cockpitng.widgets.configurableflow.FlowActionHandler
The Guest Count Validation Handler class.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected de.hybris.platform.servicelayer.model.ModelServiceGets model service.protected com.hybris.cockpitng.util.notifications.NotificationServiceGets notification service.protected TravelBackofficeCommonValidatorvoidperform(com.hybris.cockpitng.config.jaxb.wizard.CustomType customType, com.hybris.cockpitng.widgets.configurableflow.FlowActionHandlerAdapter flowActionHandlerAdapter, Map<String, String> map) This method performs a validation on a guest count type.voidsetModelService(de.hybris.platform.servicelayer.model.ModelService modelService) Sets model service.voidsetNotificationService(com.hybris.cockpitng.util.notifications.NotificationService notificationService) Sets notification service.voidsetTravelBackofficeCommonValidator(TravelBackofficeCommonValidator travelBackofficeCommonValidator)
-
Constructor Details
-
GuestCountValidationHandler
public GuestCountValidationHandler()
-
-
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) This method performs a validation on a guest count type. Checks if exists a guest count with the same combination of passenger type and quantity.- Specified by:
performin interfacecom.hybris.cockpitng.widgets.configurableflow.FlowActionHandler- Parameters:
customType- the customTypeflowActionHandlerAdapter- the flowActionHandlerAdaptermap- the map
-
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
-
getNotificationService
protected com.hybris.cockpitng.util.notifications.NotificationService getNotificationService()Gets notification service.- Returns:
- the notification service
-
setNotificationService
public void setNotificationService(com.hybris.cockpitng.util.notifications.NotificationService notificationService) Sets notification service.- Parameters:
notificationService- the notification service
-
getTravelBackofficeCommonValidator
- Returns:
- the travelBackofficeCommonValidator
-
setTravelBackofficeCommonValidator
public void setTravelBackofficeCommonValidator(TravelBackofficeCommonValidator travelBackofficeCommonValidator) - Parameters:
travelBackofficeCommonValidator- the travelBackofficeCommonValidator to set
-