Package org.apache.ofbiz.content.content
Class ContentSearch.SortContentField
java.lang.Object
org.apache.ofbiz.content.content.ContentSearch.ResultSortOrder
org.apache.ofbiz.content.content.ContentSearch.SortContentField
- All Implemented Interfaces:
Serializable
- Enclosing class:
- ContentSearch
- See Also:
-
Constructor Summary
ConstructorDescriptionSortContentField
(String fieldName, boolean ascending) Some good field names to try might include: [contentName] [totalQuantityOrdered] for most popular or most purchased [lastModifiedDate] You can also include any other field on the Content entity. -
Method Summary
Modifier and TypeMethodDescriptionboolean
prettyPrintSortOrder
(boolean detailed, Locale locale) void
setSortOrder
(ContentSearch.ContentSearchContext contentSearchContext)
-
Constructor Details
-
SortContentField
Some good field names to try might include: [contentName] [totalQuantityOrdered] for most popular or most purchased [lastModifiedDate] You can also include any other field on the Content entity.
-
-
Method Details
-
setSortOrder
- Specified by:
setSortOrder
in classContentSearch.ResultSortOrder
-
getOrderName
- Specified by:
getOrderName
in classContentSearch.ResultSortOrder
-
prettyPrintSortOrder
- Specified by:
prettyPrintSortOrder
in classContentSearch.ResultSortOrder
-
isAscending
public boolean isAscending()- Specified by:
isAscending
in classContentSearch.ResultSortOrder
-