Class StringSortStatementFormatter
java.lang.Object
de.hybris.platform.cms2.cmsitems.service.impl.StringSortStatementFormatter
- All Implemented Interfaces:
SortStatementFormatter
Attributes of type
String are sorted by comparing the strings using their lower case representation. This
makes the sorting case non-sensitive.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionformatSortStatement(Sort sort) Format the sort parameter of the providedSortobject.booleanisApplicable(AttributeDescriptorModel attributeDescriptor) Determines if a custom sort statement formatter should be applied given theAttributeDescriptorModelprovided.
-
Constructor Details
-
StringSortStatementFormatter
public StringSortStatementFormatter()
-
-
Method Details
-
isApplicable
Description copied from interface:SortStatementFormatterDetermines if a custom sort statement formatter should be applied given theAttributeDescriptorModelprovided.- Specified by:
isApplicablein interfaceSortStatementFormatter- Parameters:
attributeDescriptor- the attribute descriptor model used to evaluate the condition- Returns:
- true when the condition is met and the sort parameter should be formatted using
SortStatementFormatter.formatSortStatement(Sort); false otherwise
-
formatSortStatement
Description copied from interface:SortStatementFormatterFormat the sort parameter of the providedSortobject.- Specified by:
formatSortStatementin interfaceSortStatementFormatter- Parameters:
sort- the Sort object containing the sort parameter and direction- Returns:
- the formatted sort parameter
-