Interface IListView<T>
- All Superinterfaces:
Collection<T>
,Iterable<T>
,List<T>
,Serializable
- All Known Subinterfaces:
IDirPrincipalList
,ISelectedListView
,ITaskDefinitionList
,ITaskList
,IThingListView
Base interface for a paged list view.
Modifications are not persistant:
modifing a list view or its contents does not modify the underlying resource(s).
Instances can contain only
IView
s.-
Method Summary
Modifier and TypeMethodDescriptionGets the paging cookie associated with this list.void
setCookie
(IPagingCookie cookie) Sets the paging cookie associated with this list.void
sort()
Sorts objects in this view according to paging cookie sort order.void
sort
(Comparator<? super T> comp) Sorts the list using the given Comparator.Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, spliterator, subList, toArray, toArray
-
Method Details
-
getCookie
IPagingCookie getCookie()Gets the paging cookie associated with this list.- Returns:
- Paging cookie associated with this list or null.
-
setCookie
Sets the paging cookie associated with this list.- Parameters:
cookie
- Cookie to associate with this list. May be null.
-
sort
Sorts the list using the given Comparator.- Specified by:
sort
in interfaceList<T>
- Parameters:
comp
- Comparator to use when sorting the list.- Throws:
PortalException
- if an error occured while sorting.
-
sort
Sorts objects in this view according to paging cookie sort order. Important: IView property to be sorted should implement Comparable- Throws:
PortalException
-