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

NameReturnsNotes
dirsResourceListReturns a list of only directories from this list
filesResourceListReturns a list of only files (ie not directories) from this list
ofTypeMap<String,ResourceList>Returns a map which you can use to filter by type
parentsResourceListFor each item in this list, return all of its parents up to the website
readableResourceList<T>
sortByModifiedDateResourceListReturns a new list where all articles are sorted by their modified date.
sortByNameResourceListReturns a new list where all articles are sorted by their name.
sortByTitleResourceListReturns a new list where all articles are sorted by their title, if they have one, otherwise their name

Methods

SignatureReturnsNotes
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)ResourceListReturn a list containing the current elements except any resources of the given type
excludeType(String s1, String s2)ResourceListReturn a list containing the current elements except any resources of the given types
excludeType(String s1, String s2, String s3)ResourceListReturn a list containing the current elements except any resources of the given types
excludeType(String s1, String s2, String s3, String s4)ResourceListReturn a list containing the current elements except any resources of the given types
_excludeType(String s)ResourceListReturn 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
To get full access to the Kademi Hub existing customers can login here, or new customers can register here.