Package org.opencms.workplace.list
Interface I_CmsListResourceCollector
- All Superinterfaces:
Comparable<org.opencms.file.collectors.I_CmsResourceCollector>,org.opencms.file.collectors.I_CmsCollectorPublishListProvider,org.opencms.file.collectors.I_CmsResourceCollector
- All Known Implementing Classes:
A_CmsListResourceCollector,CmsContentCheckCollector,CmsDeleteBrokenRelationsCollector,CmsInternalLinkValidationFilesCollector,CmsListResourceLinkRelationCollector,CmsLockedResourcesCollector,CmsProjectFilesCollector,CmsPublishBrokenRelationsCollector,CmsSearchResourcesCollector,CmsShowOrgUnitResourcesCollector,CmsSourceSearchCollector
public interface I_CmsListResourceCollector
extends org.opencms.file.collectors.I_CmsResourceCollector
Collector to provide
CmsResource objects for a explorer List.- Since:
- 6.1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringParameter name constant.static final StringParameter name constant.static final StringParameter name constant.static final StringResources parameter name constant.static final StringParameter name constant.static final StringKey-Value delimiter constant.static final StringParameter delimiter constant.Fields inherited from interface org.opencms.file.collectors.I_CmsResourceCollector
DEFAULT_LIMIT -
Method Summary
Modifier and TypeMethodDescriptiongetListItems(String parameter) Returns a list of list items from a list of resources.org.opencms.file.CmsResourcegetResource(org.opencms.file.CmsObject cms, CmsListItem item) Returns the resource for the given item.List<org.opencms.file.CmsResource> getResources(org.opencms.file.CmsObject cms, Map<String, String> params) Returns all, unsorted and unfiltered, resources.getWp()Returns the workplace object.voidsetPage(int page) Sets the current display page.Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface org.opencms.file.collectors.I_CmsCollectorPublishListProvider
getPublishResourcesMethods inherited from interface org.opencms.file.collectors.I_CmsResourceCollector
getCollectorNames, getCreateLink, getCreateLink, getCreateParam, getCreateParam, getCreateTypeId, getDefaultCollectorName, getDefaultCollectorParam, getOrder, getResults, getResults, getResults, setDefaultCollectorName, setDefaultCollectorParam, setOrder
-
Field Details
-
PARAM_FILTER
Parameter name constant.- See Also:
-
PARAM_ORDER
Parameter name constant.- See Also:
-
PARAM_PAGE
Parameter name constant.- See Also:
-
PARAM_RESOURCES
Resources parameter name constant.- See Also:
-
PARAM_SORTBY
Parameter name constant.- See Also:
-
SEP_KEYVAL
Key-Value delimiter constant.- See Also:
-
SEP_PARAM
Parameter delimiter constant.- See Also:
-
-
Method Details
-
getListItems
Returns a list of list items from a list of resources.- Parameters:
parameter- the collector parameter ornullfor default.- Returns:
- a list of
CmsListItemobjects - Throws:
org.opencms.main.CmsException- if something goes wrong
-
getResource
Returns the resource for the given item.- Parameters:
cms- the cms objectitem- the item- Returns:
- the resource
-
getResources
List<org.opencms.file.CmsResource> getResources(org.opencms.file.CmsObject cms, Map<String, String> params) throws org.opencms.main.CmsExceptionReturns all, unsorted and unfiltered, resources.Be sure to cache the resources.
- Parameters:
cms- the cms objectparams- the parameter map- Returns:
- a list of
CmsResourceobjects - Throws:
org.opencms.main.CmsException- if something goes wrong
-
getWp
Returns the workplace object.- Returns:
- the workplace object
-
setPage
Sets the current display page.- Parameters:
page- the new display page
-