Package org.opencms.workplace.commons
Class CmsListResourceLinkRelationCollector
java.lang.Object
org.opencms.workplace.list.A_CmsListResourceCollector
org.opencms.workplace.commons.CmsListResourceLinkRelationCollector
- All Implemented Interfaces:
Comparable<org.opencms.file.collectors.I_CmsResourceCollector>,org.opencms.file.collectors.I_CmsCollectorPublishListProvider,org.opencms.file.collectors.I_CmsResourceCollector,I_CmsListResourceCollector
Collector for resources with relations to a given resource.
- Since:
- 6.9.1
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final org.apache.commons.logging.LogThe log object for this class.Fields inherited from class org.opencms.workplace.list.A_CmsListResourceCollector
m_collectorParameter, m_liCache, m_resCache, m_resources, VFS_PATH_NONEFields inherited from interface org.opencms.workplace.list.I_CmsListResourceCollector
PARAM_FILTER, PARAM_ORDER, PARAM_PAGE, PARAM_RESOURCES, PARAM_SORTBY, SEP_KEYVAL, SEP_PARAMFields inherited from interface org.opencms.file.collectors.I_CmsResourceCollector
DEFAULT_LIMIT -
Constructor Summary
ConstructorsConstructorDescriptionCmsListResourceLinkRelationCollector(A_CmsListExplorerDialog wp, String resource, boolean isSource) Public constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the resource.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.booleanisSource()Returns the isSource.protected voidsetAdditionalColumns(CmsListItem item, org.opencms.workplace.explorer.CmsResourceUtil resUtil) Set additional column entries for a resource.voidsetResource(String resource) Sets the resource.voidsetSource(boolean isSource) Sets the isSource.Methods inherited from class org.opencms.workplace.list.A_CmsListResourceCollector
compareTo, createResourceListItem, getCreateLink, getCreateLink, getCreateParam, getCreateParam, getCreateTypeId, getDefaultCollectorName, getDefaultCollectorParam, getDummyListItem, getInternalResources, getListItems, getOrder, getPublishResources, getResourceNamesFromParam, getResults, getResults, getResults, getState, getWp, setDefaultCollectorName, setDefaultCollectorParam, setOrder, setPage, setResourcesParam
-
Field Details
-
LOG
The log object for this class.
-
-
Constructor Details
-
CmsListResourceLinkRelationCollector
public CmsListResourceLinkRelationCollector(A_CmsListExplorerDialog wp, String resource, boolean isSource) Public constructor.- Parameters:
wp- the current list explorer dialogresource- the current resource to get link relations forisSource- indicates if the current request shows the source resources for the relations are shown
-
-
Method Details
-
getCollectorNames
- See Also:
-
getResource
Returns the resource.- Returns:
- the resource
-
getResource
Description copied from class:A_CmsListResourceCollectorReturns the resource for the given item.- Specified by:
getResourcein interfaceI_CmsListResourceCollector- Overrides:
getResourcein classA_CmsListResourceCollector- Parameters:
cms- the cms objectitem- the item- Returns:
- the resource
- See Also:
-
getResources
public List<org.opencms.file.CmsResource> getResources(org.opencms.file.CmsObject cms, Map<String, String> params) Description copied from class:A_CmsListResourceCollectorReturns all, unsorted and unfiltered, resources.Be sure to cache the resources.
- Specified by:
getResourcesin interfaceI_CmsListResourceCollector- Specified by:
getResourcesin classA_CmsListResourceCollector- Parameters:
cms- the cms objectparams- the parameter map- Returns:
- a list of
CmsResourceobjects - See Also:
-
isSource
Returns the isSource.- Returns:
- the isSource
-
setResource
Sets the resource.- Parameters:
resource- the resource to set
-
setSource
Sets the isSource.- Parameters:
isSource- the isSource to set
-
setAdditionalColumns
protected void setAdditionalColumns(CmsListItem item, org.opencms.workplace.explorer.CmsResourceUtil resUtil) Description copied from class:A_CmsListResourceCollectorSet additional column entries for a resource.Overwrite this method to set additional column entries.
- Specified by:
setAdditionalColumnsin classA_CmsListResourceCollector- Parameters:
item- the current list itemresUtil- the resource util object for getting the info from- See Also:
-