Class DefaultBundleTemplateFareProductValidationStrategy
java.lang.Object
de.hybris.platform.travelfacades.strategies.impl.DefaultBundleTemplateFareProductValidationStrategy
- All Implemented Interfaces:
AddTransportBundleToCartValidationStrategy
public class DefaultBundleTemplateFareProductValidationStrategy
extends Object
implements AddTransportBundleToCartValidationStrategy
Strategy to validate the bundleTemplateId and the fareProductCode of the addBundleToCartData.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected TravelBundleTemplateServiceGets travel bundle template service.voidsetTravelBundleTemplateService(TravelBundleTemplateService travelBundleTemplateService) Sets travel bundle template service.voidvalidate(AddBundleToCartData addBundleToCartData) Validates if 1) the bundleTemplateId corresponds to an existing BundleTemplate in the system.
-
Constructor Details
-
DefaultBundleTemplateFareProductValidationStrategy
public DefaultBundleTemplateFareProductValidationStrategy()
-
-
Method Details
-
validate
public void validate(AddBundleToCartData addBundleToCartData) throws AddTransportBundleToCartException Validates if 1) the bundleTemplateId corresponds to an existing BundleTemplate in the system. 2) the fareProductCode is contained in the bundle template retrieved.- Specified by:
validatein interfaceAddTransportBundleToCartValidationStrategy- Parameters:
addBundleToCartData- the addBundleToCartData to be validated- Throws:
AddTransportBundleToCartException
-
getTravelBundleTemplateService
Gets travel bundle template service.- Returns:
- the travel bundle template service
-
setTravelBundleTemplateService
Sets travel bundle template service.- Parameters:
travelBundleTemplateService- the travel bundle template service
-