Class DefaultTravelRestrictionService

java.lang.Object
de.hybris.platform.travelservices.services.impl.DefaultTravelRestrictionService
All Implemented Interfaces:
TravelRestrictionService

public class DefaultTravelRestrictionService extends Object implements TravelRestrictionService
Default implementation of the TravelRestrictionService interface.
  • Constructor Details

    • DefaultTravelRestrictionService

      public DefaultTravelRestrictionService()
  • Method Details

    • getAddToCartCriteria

      public AddToCartCriteriaType getAddToCartCriteria(ProductModel productModel)
      Description copied from interface: TravelRestrictionService
      Returns 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:
      getAddToCartCriteria in interface TravelRestrictionService
      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