|
||||||||
| 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
public class 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<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. |
| 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 shown| Method Detail |
|---|
public 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 in interface I_CmsListResourceCollectorgetResource in class A_CmsListResourceCollectorcms - the cms objectitem - the item
A_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_CmsListResourceCollectorBe sure to cache the resources.
getResources in interface I_CmsListResourceCollectorgetResources in class A_CmsListResourceCollectorcms - 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 set
protected void setAdditionalColumns(CmsListItem item,
CmsResourceUtil resUtil)
A_CmsListResourceCollectorOverwrite this method to set additional column entries.
setAdditionalColumns in class A_CmsListResourceCollectoritem - 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 | |||||||