|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.infoglue.cms.util.sorters.ContentSort
public class ContentSort
Utility class for sorting content/content version objects. Any number of properties and/or attributes of the content/content versions can be used in the sort.
| Constructor Summary | |
|---|---|
ContentSort(TemplateController controller,
java.util.Collection elements)
Constructs a sorter for the specified elements. |
|
| Method Summary | |
|---|---|
void |
addContentProperty(java.lang.String name,
boolean ascending)
Use the specified content property in the sort. |
void |
addContentVersionAttribute(java.lang.String name,
boolean ascending,
boolean caseSensitive)
Use the specified content version attribute 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 |
addContentVersionAttribute(java.lang.String name,
java.lang.String className,
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. |
java.util.List |
getContentResult()
Returns a list of sorted ContentVO objects. |
java.util.List |
getContentResult(java.lang.String comparatorClass)
Returns a list of sorted ContentVO objects. |
java.util.List |
getContentVersionResult()
Returns a list of sorted ContentVersionVO objects. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContentSort(TemplateController controller,
java.util.Collection elements)
controller - the controller to use when interacting with the model.elements - the list of objects to sort.| 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,
boolean ascending,
boolean caseSensitive)
String.
ascending - indicates the sort order to use when sorting on the specified attribute.
public void addContentVersionAttribute(java.lang.String name,
java.lang.String className,
boolean ascending,
boolean caseSensitive)
className - indicates the name of the Comparable to use when sorting on the attribute.ascending - indicates the sort order to use when sorting on the specified attribute.
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 java.util.List getContentResult()
ContentVO objects.
public java.util.List getContentResult(java.lang.String comparatorClass)
ContentVO objects.
sorts - the list using the comparatorClass specified. The comparator must implement the interface org.infoglue.cms.util.sorters.TemplateControllerAwareComparator
public java.util.List getContentVersionResult()
ContentVersionVO objects.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||