org.opencms.workplace.explorer
Class CmsNewResourceXmlContentModelCollector

java.lang.Object
  extended byorg.opencms.workplace.list.A_CmsListResourceCollector
      extended byorg.opencms.workplace.explorer.CmsNewResourceXmlContentModelCollector
All Implemented Interfaces:
java.lang.Comparable, I_CmsListResourceCollector, I_CmsResourceCollector

public class CmsNewResourceXmlContentModelCollector
extends A_CmsListResourceCollector

Collector for model files used in the list for the new XML content dialog.

Since:
6.5.4
Version:
$Revision: 1.4 $
Author:
Andreas Zahner

Field Summary
static java.lang.String COLLECTOR_NAME
          Parameter of the default collector name.
 
Fields inherited from class org.opencms.workplace.list.A_CmsListResourceCollector
m_collectorParameter, m_liCache, m_resCache, 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
CmsNewResourceXmlContentModelCollector(A_CmsListExplorerDialog wp, java.util.List resources)
          Constructor, creates a new instance.
 
Method Summary
 java.util.List getCollectorNames()
          Returns a list of all collector names (Strings) this collector implementation supports.
 java.util.List getResources(CmsObject cms, java.util.Map params)
          Returns all, unsorted and unfiltered, resources.
 java.util.List getResults(CmsObject cms, java.lang.String collectorName, java.lang.String parameter)
          The parameter must follow the syntax "page:nr" where nr is the number of the page to be displayed.
protected  void setAdditionalColumns(CmsListItem item, CmsResourceUtil resUtil)
          Set additional column entries for a resource.
 
Methods inherited from class org.opencms.workplace.list.A_CmsListResourceCollector
compareTo, createResourceListItem, getCreateLink, getCreateLink, getCreateParam, getCreateParam, getDefaultCollectorName, getDefaultCollectorParam, getDummyListItem, getInternalResources, getListItems, getOrder, getResource, getResourceNamesFromParam, 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

COLLECTOR_NAME

public static final java.lang.String COLLECTOR_NAME
Parameter of the default collector name.

See Also:
Constant Field Values
Constructor Detail

CmsNewResourceXmlContentModelCollector

public CmsNewResourceXmlContentModelCollector(A_CmsListExplorerDialog wp,
                                              java.util.List resources)
Constructor, creates a new instance.

Parameters:
wp - the workplace object
resources - list of locked resources
Method Detail

getCollectorNames

public java.util.List getCollectorNames()
Description copied from interface: I_CmsResourceCollector
Returns a list of all collector names (Strings) this collector implementation supports.

Returns:
a list of all collector names this collector implementation supports
See Also:
I_CmsResourceCollector.getCollectorNames()

getResources

public java.util.List getResources(CmsObject cms,
                                   java.util.Map params)
Description copied from class: A_CmsListResourceCollector
Returns all, unsorted and unfiltered, resources.

Be sure to cache the resources.

Specified by:
getResources in interface I_CmsListResourceCollector
Specified by:
getResources in class A_CmsListResourceCollector
Parameters:
cms - the cms object
params - the parameter map
Returns:
a list of CmsResource objects
See Also:
A_CmsListResourceCollector.getResources(org.opencms.file.CmsObject, java.util.Map)

getResults

public java.util.List getResults(CmsObject cms,
                                 java.lang.String collectorName,
                                 java.lang.String parameter)
Description copied from class: A_CmsListResourceCollector
The parameter must follow the syntax "page:nr" where nr is the number of the page to be displayed.

Specified by:
getResults in interface I_CmsResourceCollector
Overrides:
getResults in class A_CmsListResourceCollector
See Also:
I_CmsResourceCollector.getResults(org.opencms.file.CmsObject, java.lang.String, java.lang.String)

setAdditionalColumns

protected void setAdditionalColumns(CmsListItem item,
                                    CmsResourceUtil resUtil)
Description copied from class: A_CmsListResourceCollector
Set additional column entries for a resource.

Overwrite this method to set additional column entries.

Specified by:
setAdditionalColumns in class A_CmsListResourceCollector
Parameters:
item - the current list item
resUtil - the resource util object for getting the info from
See Also:
A_CmsListResourceCollector.setAdditionalColumns(org.opencms.workplace.list.CmsListItem, org.opencms.workplace.explorer.CmsResourceUtil)