Class DefaultOfferSortStrategy

java.lang.Object
de.hybris.platform.travelfacades.strategies.impl.DefaultOfferSortStrategy
All Implemented Interfaces:
OfferSortStrategy

public class DefaultOfferSortStrategy extends Object implements OfferSortStrategy
Default implementation of the OfferSortStrategy interface.
  • Constructor Details

    • DefaultOfferSortStrategy

      public DefaultOfferSortStrategy()
  • Method Details

    • applyStrategy

      public List<OfferGroupData> applyStrategy(List<OfferGroupData> offerGroups)
      Description copied from interface: OfferSortStrategy
      Applies the sorting strategy for OfferGroups based on OfferSort enum
      Specified by:
      applyStrategy in interface OfferSortStrategy
      Parameters:
      offerGroups - the offer groups
      Returns:
      sorted list of Offer Groups
    • getUndefinedOfferGroups

      protected List<OfferGroupData> getUndefinedOfferGroups(List<OfferGroupData> offerGroups, List<OfferSort> offerSortEnums)
      Checks whether there are any OfferGroups which are not defined by OfferSort enum
      Parameters:
      offerGroups - all offer groups
      offerSortEnums - list of all defined offer group categories
      Returns:
      undefined offer groups
    • getEnumerationService

      protected de.hybris.platform.enumeration.EnumerationService getEnumerationService()
      Gets enumeration service.
      Returns:
      the enumerationService
    • setEnumerationService

      public void setEnumerationService(de.hybris.platform.enumeration.EnumerationService enumerationService)
      Sets enumeration service.
      Parameters:
      enumerationService - the enumerationService to set