Class DefaultSortDataParsingStrategy
java.lang.Object
de.hybris.platform.servicelayer.search.paginated.strategies.impl.DefaultSortDataParsingStrategy
- All Implemented Interfaces:
SortDataParsingStrategy
Default implementation of
SortDataParsingStrategy.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetQueryAlias(Map<String, String> sortCodeToQueryAlias, SortData sortData) getSortCode(Map<String, String> sortCodeToQueryAlias, SortData sortData) Gets the sort code for the given {link SortData} ifMapcontains the sortData.code as key.getSortDirection(Map<String, String> sortCodeToQueryAlias, SortData sortData) Gets the sort direction of the givenSortData
-
Constructor Details
-
DefaultSortDataParsingStrategy
public DefaultSortDataParsingStrategy()
-
-
Method Details
-
getQueryAlias
Description copied from interface:SortDataParsingStrategy- Specified by:
getQueryAliasin interfaceSortDataParsingStrategy- Parameters:
sortCodeToQueryAlias- the map contains mapping between sortData.code and query aliassortData- the sort data- Returns:
- the matching query alias
-
getSortCode
Description copied from interface:SortDataParsingStrategyGets the sort code for the given {link SortData} ifMapcontains the sortData.code as key. Otherwise, returns an empty string.- Specified by:
getSortCodein interfaceSortDataParsingStrategy- Parameters:
sortCodeToQueryAlias- the map contains mapping between sortData.code and query aliassortData- the sort data- Returns:
- the sort code
-
getSortDirection
Description copied from interface:SortDataParsingStrategyGets the sort direction of the givenSortData- Specified by:
getSortDirectionin interfaceSortDataParsingStrategy- Parameters:
sortCodeToQueryAlias- the map contains mapping between sortData.code and query aliassortData- the sort data- Returns:
- the sort direction
-