@ProviderType
public interface ResourceSorter
Resources by a column defined in
/libs/dam/gui/content/commons/availablecolumns.| Modifier and Type | Method and Description |
|---|---|
java.util.Comparator<Resource> |
getComparator(java.lang.String column)
Return a comparator for the given column that sorts ascending.
|
java.util.List<Resource> |
sort(java.util.Iterator<Resource> resources,
java.lang.String column,
boolean reverse,
int limit,
int offset,
java.lang.String[] filters)
Sorts the given
resources by the given column name. |
java.util.List<Resource> sort(java.util.Iterator<Resource> resources, java.lang.String column, boolean reverse, int limit, int offset, java.lang.String[] filters)
resources by the given column name. If
reverse is true, sorting gets reversed. limit and
offset define the range getting returned.resources - Resources to sortcolumn - Column used as sort criteriareverse - If true result gets reversedlimit - Max number of resources to returnoffset - Number of first resources not to returnfilters - node or mime types@Nullable java.util.Comparator<Resource> getComparator(@Nullable java.lang.String column)
column - Column used as sort criteriaCopyright © 2010 - 2023 Adobe. All Rights Reserved