To get full access to the Kademi Hub existing customers can login here, or new customers can register here.
This is a specialised List used for manipulating and querying resources You'll usually this to sort, group, filter lists, as well as create new lists which you can add to in the template
Extends: CommonList
Properties
| Name | Returns | Notes |
|---|---|---|
| dirs | ResourceList | Returns a list of only directories from this list |
| files | ResourceList | Returns a list of only files (ie not directories) from this list |
| ofType | Map<String,ResourceList> | Returns a map which you can use to filter by type |
| parents | ResourceList | For each item in this list, return all of its parents up to the website |
| readable | ResourceList<T> | |
| sortByModifiedDate | ResourceList | Returns a new list where all articles are sorted by their modified date. |
| sortByName | ResourceList | Returns a new list where all articles are sorted by their name. |
| sortByTitle | ResourceList | Returns a new list where all articles are sorted by their title, if they have one, otherwise their name |
Methods
| Signature | Returns | Notes |
|---|---|---|
get(String name) | CommonResource | |
hasChild(String name) | boolean | |
remove(Object o) | boolean | |
exclude(String s) | ResourceList | |
exclude(String s1, String s2) | ResourceList | |
exclude(String s1, String s2, String s3) | ResourceList | |
_exclude(String s) | ResourceList | |
excludeType(String s) | ResourceList | Return a list containing the current elements except any resources of the given type |
excludeType(String s1, String s2) | ResourceList | Return a list containing the current elements except any resources of the given types |
excludeType(String s1, String s2, String s3) | ResourceList | Return a list containing the current elements except any resources of the given types |
excludeType(String s1, String s2, String s3, String s4) | ResourceList | Return a list containing the current elements except any resources of the given types |
_excludeType(String s) | ResourceList | Return a list containing the current elements except any resources of the given type |
ofType(String s) | ResourceList<T> | |
ofTypeOr(String orTypes) | ResourceList<T> | |
next(Resource from) | Resource | |
previous(Resource from) | Resource | |
sortByField(String fieldName) | ResourceList<T> | |
sortByIntField(String fieldName) | ResourceList<CommonResource> | |
dedupe() | ResourceList<T> | Return a list with the same items as this one, but de-duplicated based on href |