|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.workplace.wcm.api.query.Sorts
public class Sorts
This class contains several static methods for helping creating Sort
object.
Here is an example of how to use Sorts
:
Query query = queryService.createQuery(DocumentTypes.Content); query.addSelector(Selectors.nameLike("apple_%")); query.addSort(Sorts.byTitle(true));
Nested Class Summary | |
---|---|
protected static interface |
Sorts.SortFactory
Factory interface, used for internal implementation |
Constructor Summary | |
---|---|
Sorts()
|
Method Summary | |
---|---|
static Sort |
byAuthor(SortDirection direction)
Deprecated. consider using byLastModifier |
static Sort |
byDateCreated(SortDirection direction)
Returns a Sort representing 'by created date'. |
static Sort |
byDateModified(SortDirection direction)
Returns a Sort representing 'by modified date'. |
static Sort |
byExpiryDate(SortDirection direction)
Returns a Sort representing 'by expiry date'. |
static Sort |
byGeneralDateOne(SortDirection direction)
Returns a Sort representing 'by general date one'. |
static Sort |
byGeneralDateTwo(SortDirection direction)
Returns a Sort representing 'by general date two'. |
static Sort |
byId(SortDirection direction)
Returns a Sort representing 'by ID'. |
static Sort |
byLastModifier(SortDirection direction)
Returns a Sort representing 'by last modifier'. |
static Sort |
byName(SortDirection direction)
Returns a Sort representing 'by name'. |
static Sort |
byName(SortDirection direction,
java.util.Locale locale)
Returns a Sort representing 'by name'. |
static Sort |
byOwner(SortDirection direction)
Returns a Sort representing 'by owner'. |
static Sort |
byPosition(SortDirection direction)
Returns a Sort representing 'by position'. |
static Sort |
byPublishDate(SortDirection direction)
Returns a Sort representing 'by publish date'. |
static Sort |
byTitle(SortDirection direction)
Returns a Sort representing 'by title'. |
static Sort |
byTitle(SortDirection direction,
java.util.Locale locale)
Returns a Sort representing 'by title'. |
static Sort |
byType(SortDirection direction)
Returns a Sort representing 'by type'. |
static Sort |
byWorkflowStatus(SortDirection direction)
Returns a Sort representing 'by status'. |
static void |
setFactory(Sorts.SortFactory factory)
Sets the concrete factory |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Sorts()
Method Detail |
---|
@Deprecated public static Sort byAuthor(SortDirection direction)
Sort
representing 'by author'.
direction
- weather ascending or descending
public static Sort byName(SortDirection direction)
Sort
representing 'by name'.
Note: this will sort the results based on the system default locale collation
direction
- weather ascending or descending
public static Sort byName(SortDirection direction, java.util.Locale locale)
Sort
representing 'by name'.
direction
- weather ascending or descendinglocale
- to use for the sort collation. The system default will be used if null is supplied.
public static Sort byTitle(SortDirection direction)
Sort
representing 'by title'.
Note: this will sort the results based on the system default locale collation
direction
- weather ascending or descending
public static Sort byTitle(SortDirection direction, java.util.Locale locale)
Sort
representing 'by title'.
direction
- weather ascending or descendinglocale
- to use for the sort collation. The system default will be used if null is supplied.
public static Sort byDateCreated(SortDirection direction)
Sort
representing 'by created date'.
direction
- weather ascending or descending
public static Sort byDateModified(SortDirection direction)
Sort
representing 'by modified date'.
direction
- weather ascending or descending
public static Sort byGeneralDateOne(SortDirection direction)
Sort
representing 'by general date one'.
direction
- weather ascending or descending
public static Sort byGeneralDateTwo(SortDirection direction)
Sort
representing 'by general date two'.
direction
- weather ascending or descending
public static Sort byPublishDate(SortDirection direction)
Sort
representing 'by publish date'.
direction
- weather ascending or descending
public static Sort byExpiryDate(SortDirection direction)
Sort
representing 'by expiry date'.
direction
- weather ascending or descending
public static Sort byId(SortDirection direction)
Sort
representing 'by ID'.
direction
- weather ascending or descending
public static Sort byPosition(SortDirection direction)
Sort
representing 'by position'.
direction
- weather ascending or descending
public static Sort byWorkflowStatus(SortDirection direction)
Sort
representing 'by status'.
direction
- weather ascending or descending
public static Sort byType(SortDirection direction)
Sort
representing 'by type'.
direction
- weather ascending or descending
public static Sort byLastModifier(SortDirection direction)
Sort
representing 'by last modifier'.
direction
- weather ascending or descending
public static Sort byOwner(SortDirection direction)
Sort
representing 'by owner'.
direction
- weather ascending or descending
public static void setFactory(Sorts.SortFactory factory)
factory
- concrete factory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |