Class ComposedTypeSorter
- java.lang.Object
-
- de.hybris.platform.catalog.job.sort.impl.ComposedTypeSorter
-
- All Implemented Interfaces:
Sorter<ComposedTypeModel>
public class ComposedTypeSorter extends java.lang.Object implements Sorter<ComposedTypeModel>
Implementation of the sorter usingRequirementSolver.solve(Collection)for determining order. TODO write unit test
-
-
Constructor Summary
Constructors Constructor Description ComposedTypeSorter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetTypeService(TypeService typeService)java.util.List<ComposedTypeModel>sort(java.util.Collection<ComposedTypeModel> originalComposedTypeSet)
-
-
-
Method Detail
-
setTypeService
public void setTypeService(TypeService typeService)
-
sort
public java.util.List<ComposedTypeModel> sort(java.util.Collection<ComposedTypeModel> originalComposedTypeSet)
- Specified by:
sortin interfaceSorter<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)
-
-