Class DefaultSortDefinition
java.lang.Object
org.ametys.web.frontoffice.search.metamodel.impl.DefaultSortDefinition
- All Implemented Interfaces:
SortDefinition
- Direct Known Subclasses:
CommonPertinenceSortDefinition
,CommonTitleSortDefinition
Default implementation of
SortDefinition
.-
Constructor Summary
ConstructorDescriptionDefaultSortDefinition
(String id, I18nizableText label, String searchFieldString) Default constructor with aString
DefaultSortDefinition
(String id, I18nizableText label, SearchField searchField) Default constructor with aSearchField
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ametys.web.frontoffice.search.metamodel.SortDefinition
orders
-
Constructor Details
-
DefaultSortDefinition
Default constructor with aSearchField
- Parameters:
id
- The idlabel
- The labelsearchField
- The search field
-
DefaultSortDefinition
Default constructor with aString
- Parameters:
id
- The idlabel
- The labelsearchFieldString
- The search field as a string
-
-
Method Details
-
getId
Description copied from interface:SortDefinition
Gets the id of the sort. It must be unique across all sort definitions- Specified by:
getId
in interfaceSortDefinition
- Returns:
- the unique id of the sort
-
getLabel
Description copied from interface:SortDefinition
Gets the label of the sort.- Specified by:
getLabel
in interfaceSortDefinition
- Returns:
- the label of the sort.
-
getField
Description copied from interface:SortDefinition
Gets the sort field- Specified by:
getField
in interfaceSortDefinition
- Returns:
- the sort field
-