|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.infoglue.cms.util.sorters.SortElement
public class SortElement
A SortElement object is created for each content/content version
to be sorted. If the SortElement is constructed using a content
and the content version is needed, the content version to use is decided by
fetching the language used by the TemplateController.
Strictly speaking we never sort on a content or a content version, we are
sorting on a content and the content version indicated by the
language used by the TemplateController at the same time.
| Method Summary | |
|---|---|
void |
addContentProperty(java.lang.String name,
boolean ascending)
Use the specified content property in the sort. |
void |
addContentVersionAttribute(java.lang.String name,
java.lang.Class clazz,
boolean ascending,
boolean caseSensitive)
Use the specified content version attribute in the sort. |
void |
addContentVersionProperty(java.lang.String name,
boolean ascending)
Use the specified content version property in the sort. |
int |
compareTo(java.lang.Object o)
Compares two SortStruct objects by comparing their SortComparable:s. |
ContentVersionVO |
getContentVersionVO()
Returns the content version value object. |
ContentVO |
getContentVO()
Returns the content value object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void addContentProperty(java.lang.String name,
boolean ascending)
ascending - indicates the sort order to use when sorting on the specified property.
public void addContentVersionProperty(java.lang.String name,
boolean ascending)
ascending - indicates the sort order to use when sorting on the specified property.
public void addContentVersionAttribute(java.lang.String name,
java.lang.Class clazz,
boolean ascending,
boolean caseSensitive)
clazz - indicates the Comparable to use when sorting on the attribute.ascending - indicates the sort order to use when sorting on the specified attribute.public ContentVersionVO getContentVersionVO()
public ContentVO getContentVO()
public final int compareTo(java.lang.Object o)
SortStruct objects by comparing their SortComparable:s.
compareTo in interface java.lang.Comparableo - the object to ne compared.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||