public class CmsListResourceLinkRelationCollector extends A_CmsListResourceCollector
限定符和类型 | 字段和说明 |
---|---|
protected static org.apache.commons.logging.Log |
LOG
The log object for this class.
|
m_collectorParameter, m_liCache, m_resCache, m_resources, VFS_PATH_NONE
PARAM_FILTER, PARAM_ORDER, PARAM_PAGE, PARAM_RESOURCES, PARAM_SORTBY, SEP_KEYVAL, SEP_PARAM
构造器和说明 |
---|
CmsListResourceLinkRelationCollector(A_CmsListExplorerDialog wp,
java.lang.String resource,
boolean isSource)
Public constructor.
|
限定符和类型 | 方法和说明 |
---|---|
java.util.List<java.lang.String> |
getCollectorNames()
Returns a list of all collector names (Strings) this collector implementation supports.
|
java.lang.String |
getResource()
Returns the resource.
|
CmsResource |
getResource(CmsObject cms,
CmsListItem item)
Returns the resource for the given item.
|
java.util.List<CmsResource> |
getResources(CmsObject cms,
java.util.Map<java.lang.String,java.lang.String> params)
Returns all, unsorted and unfiltered, resources.
|
boolean |
isSource()
Returns the isSource.
|
protected void |
setAdditionalColumns(CmsListItem item,
CmsResourceUtil resUtil)
Set additional column entries for a resource.
|
void |
setResource(java.lang.String resource)
Sets the resource.
|
void |
setSource(boolean isSource)
Sets the isSource.
|
compareTo, createResourceListItem, getCreateLink, getCreateLink, getCreateParam, getCreateParam, getCreateTypeId, getDefaultCollectorName, getDefaultCollectorParam, getDummyListItem, getInternalResources, getListItems, getOrder, getResourceNamesFromParam, getResults, getResults, getState, getWp, setDefaultCollectorName, setDefaultCollectorParam, setOrder, setPage, setResourcesParam
public CmsListResourceLinkRelationCollector(A_CmsListExplorerDialog wp, java.lang.String resource, boolean isSource)
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 shownpublic java.util.List<java.lang.String> getCollectorNames()
I_CmsResourceCollector
I_CmsResourceCollector.getCollectorNames()
public java.lang.String getResource()
public CmsResource getResource(CmsObject cms, CmsListItem item)
A_CmsListResourceCollector
getResource
在接口中 I_CmsListResourceCollector
getResource
在类中 A_CmsListResourceCollector
cms
- the cms objectitem
- the itemA_CmsListResourceCollector.getResource(org.opencms.file.CmsObject, org.opencms.workplace.list.CmsListItem)
public java.util.List<CmsResource> getResources(CmsObject cms, java.util.Map<java.lang.String,java.lang.String> params)
A_CmsListResourceCollector
Be sure to cache the resources.
getResources
在接口中 I_CmsListResourceCollector
getResources
在类中 A_CmsListResourceCollector
cms
- the cms objectparams
- the parameter mapCmsResource
objectsA_CmsListResourceCollector.getResources(org.opencms.file.CmsObject, java.util.Map)
public boolean isSource()
public void setResource(java.lang.String resource)
resource
- the resource to setpublic void setSource(boolean isSource)
isSource
- the isSource to setprotected void setAdditionalColumns(CmsListItem item, CmsResourceUtil resUtil)
A_CmsListResourceCollector
Overwrite this method to set additional column entries.
setAdditionalColumns
在类中 A_CmsListResourceCollector
item
- the current list itemresUtil
- the resource util object for getting the info fromA_CmsListResourceCollector.setAdditionalColumns(org.opencms.workplace.list.CmsListItem, org.opencms.workplace.explorer.CmsResourceUtil)