@ProviderType
public interface ResourceSorter
Resources by a column defined in
/libs/dam/gui/content/commons/availablecolumns.| Modifier and Type | Method and Description |
|---|---|
Comparator<Resource> |
getComparator(String column)
Return a comparator for the given column that sorts ascending.
|
List<Resource> |
sort(Iterator<Resource> resources,
String column,
boolean reverse,
int limit,
int offset,
String[] filters)
Sorts the given
resources by the given column name. |
List<Resource> sort(Iterator<Resource> resources, String column, boolean reverse, int limit, int offset, 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 Comparator<Resource> getComparator(@Nullable String column)
column - Column used as sort criteriaCopyright © 2010 - 2020 Adobe. All Rights Reserved