Class ComposedTypeSorter

java.lang.Object
de.hybris.platform.catalog.job.sort.impl.ComposedTypeSorter
All Implemented Interfaces:
Sorter<ComposedTypeModel>

public class ComposedTypeSorter extends Object implements Sorter<ComposedTypeModel>
Implementation of the sorter using RequirementSolver.solve(Collection) for determining order. TODO write unit test
  • Constructor Details

    • ComposedTypeSorter

      public ComposedTypeSorter()
  • Method Details

    • setTypeService

      public void setTypeService(TypeService typeService)
    • sort

      public List<ComposedTypeModel> sort(Collection<ComposedTypeModel> originalComposedTypeSet)
      Specified by:
      sort in interface Sorter<ComposedTypeModel>
      Parameters:
      originalComposedTypeSet - unsorted set of composed types from the catalog manager
      Returns:
      a list of the same composed types, an element of this list depends on another element of the same list with a lower index (or not)