|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.liquidsite.core.content.ContentSelector
A content selector. This class controls the selection of content objects when making database queries.
| Constructor Summary | |
ContentSelector(Domain domain)
Creates a new content selector for the specified domain. |
|
| Method Summary | |
void |
limitResults(int start,
int count)
Sets the result start and count limitations. |
void |
requireCategory(int category)
Sets the content category requirement. |
void |
requireParent(Content parent)
Adds a content parent requirement. |
void |
requireRootParent()
Adds a content parent requirement. |
void |
sortByAuthor(boolean ascending)
Adds a content modified author sort key to the query. |
void |
sortByCategory(boolean ascending)
Adds a content category sort key to the query. |
void |
sortByDocumentProperty(java.lang.String property,
boolean ascending)
Adds a document property sort key to the query. |
void |
sortById(boolean ascending)
Adds a content identifier sort key to the query. |
void |
sortByModified(boolean ascending)
Adds a content modified date sort key to the query. |
void |
sortByName(boolean ascending)
Adds a content name sort key to the query. |
void |
sortByOnline(boolean ascending)
Adds a content online date sort key to the query. |
void |
sortByParent(boolean ascending)
Adds a content parent identifier sort key to the query. |
void |
sortByRevision(boolean ascending)
Adds a content revision sort key to the query. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ContentSelector(Domain domain)
domain - the domain| Method Detail |
public void requireRootParent()
public void requireParent(Content parent)
parent - the parent content objectpublic void requireCategory(int category)
category - the content category requiredpublic void sortById(boolean ascending)
ascending - the ascending sort order flagpublic void sortByRevision(boolean ascending)
ascending - the ascending sort order flagpublic void sortByCategory(boolean ascending)
ascending - the ascending sort order flagpublic void sortByName(boolean ascending)
ascending - the ascending sort order flagpublic void sortByParent(boolean ascending)
ascending - the ascending sort order flagpublic void sortByOnline(boolean ascending)
ascending - the ascending sort order flagpublic void sortByModified(boolean ascending)
ascending - the ascending sort order flagpublic void sortByAuthor(boolean ascending)
ascending - the ascending sort order flag
public void sortByDocumentProperty(java.lang.String property,
boolean ascending)
property - the document property nameascending - the ascending sort order flag
public void limitResults(int start,
int count)
start - the index of the first result objectcount - the maximum number of result objects
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||