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:
java.io.Serializable
- Enclosing class:
- ContentSearch
public static class ContentSearch.SortContentField extends ContentSearch.ResultSortOrder
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SortContentField(java.lang.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getOrderName()
boolean
isAscending()
java.lang.String
prettyPrintSortOrder(boolean detailed, java.util.Locale locale)
void
setSortOrder(ContentSearch.ContentSearchContext contentSearchContext)
-
-
-
Constructor Detail
-
SortContentField
public SortContentField(java.lang.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 Detail
-
setSortOrder
public void setSortOrder(ContentSearch.ContentSearchContext contentSearchContext)
- Specified by:
setSortOrder
in classContentSearch.ResultSortOrder
-
getOrderName
public java.lang.String getOrderName()
- Specified by:
getOrderName
in classContentSearch.ResultSortOrder
-
prettyPrintSortOrder
public java.lang.String prettyPrintSortOrder(boolean detailed, java.util.Locale locale)
- Specified by:
prettyPrintSortOrder
in classContentSearch.ResultSortOrder
-
isAscending
public boolean isAscending()
- Specified by:
isAscending
in classContentSearch.ResultSortOrder
-
-