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
Modifier and TypeFieldDescriptionstatic final String
Parameter name constant.static final String
Parameter name constant.static final String
Parameter name constant.static final String
Resources parameter name constant.static final String
Parameter name constant.static final String
Key-Value delimiter constant.static final String
Parameter 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.CmsResource
getResource
(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.void
setPage
(int page) Sets the current display page.Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface org.opencms.file.collectors.I_CmsCollectorPublishListProvider
getPublishResources
Methods 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 ornull
for default.- Returns:
- a list of
CmsListItem
objects - 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
CmsResource
objects - 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
-