Class DefaultTravelRestrictionService
java.lang.Object
de.hybris.platform.travelservices.services.impl.DefaultTravelRestrictionService
- All Implemented Interfaces:
TravelRestrictionService
Default implementation of the
TravelRestrictionService interface.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAddToCartCriteria(ProductModel productModel) Returns the AddToCartCriteriaType for the given productModel.protected de.hybris.platform.enumeration.EnumerationServicevoidsetEnumerationService(de.hybris.platform.enumeration.EnumerationService enumerationService)
-
Constructor Details
-
DefaultTravelRestrictionService
public DefaultTravelRestrictionService()
-
-
Method Details
-
getAddToCartCriteria
Description copied from interface:TravelRestrictionServiceReturns the AddToCartCriteriaType for the given productModel. It retrieves the offerGroup of the product and returns its addToCartCriteria restriction if present, the default criteria otherwise.- Specified by:
getAddToCartCriteriain interfaceTravelRestrictionService- Parameters:
productModel- the product model- Returns:
- the AddToCartCriteriaType for the given product
-
getEnumerationService
protected de.hybris.platform.enumeration.EnumerationService getEnumerationService()- Returns:
- the enumerationService
-
setEnumerationService
public void setEnumerationService(de.hybris.platform.enumeration.EnumerationService enumerationService) - Parameters:
enumerationService- the enumerationService to set
-