|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opencms.workplace.list.A_CmsListResourceCollector
org.opencms.workplace.commons.CmsListResourceLinkRelationCollector
Collector for resources with relations to a given resource.
Field Summary | |
protected static org.apache.commons.logging.Log |
LOG
The 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_NONE |
Fields inherited from interface org.opencms.workplace.list.I_CmsListResourceCollector |
PARAM_FILTER, PARAM_ORDER, PARAM_PAGE, PARAM_RESOURCES, PARAM_SORTBY, SEP_KEYVAL, SEP_PARAM |
Constructor Summary | |
CmsListResourceLinkRelationCollector(A_CmsListExplorerDialog wp,
java.lang.String resource,
boolean isSource)
Public constructor. |
Method Summary | |
java.util.List |
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 |
getResources(CmsObject cms,
java.util.Map 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. |
Methods inherited from class org.opencms.workplace.list.A_CmsListResourceCollector |
compareTo, createResourceListItem, getCreateLink, getCreateLink, getCreateParam, getCreateParam, getDefaultCollectorName, getDefaultCollectorParam, getDummyListItem, getInternalResources, getListItems, getOrder, getResourceNamesFromParam, getResults, getResults, getState, getWp, setDefaultCollectorName, setDefaultCollectorParam, setOrder, setPage, setResourcesParam |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final org.apache.commons.logging.Log LOG
Constructor Detail |
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 shownMethod Detail |
public java.util.List getCollectorNames()
I_CmsResourceCollector
I_CmsResourceCollector.getCollectorNames()
public java.lang.String getResource()
public CmsResource getResource(CmsObject cms, CmsListItem item)
A_CmsListResourceCollector
getResource
in interface I_CmsListResourceCollector
getResource
in class A_CmsListResourceCollector
cms
- the cms objectitem
- the item
A_CmsListResourceCollector.getResource(org.opencms.file.CmsObject, org.opencms.workplace.list.CmsListItem)
public java.util.List getResources(CmsObject cms, java.util.Map params)
A_CmsListResourceCollector
Be sure to cache the resources.
getResources
in interface I_CmsListResourceCollector
getResources
in class A_CmsListResourceCollector
cms
- the cms objectparams
- the parameter map
CmsResource
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
in class 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)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |