public class CmsNewResourceXmlContentModelCollector extends A_CmsListResourceCollector
| 限定符和类型 | 字段和说明 |
|---|---|
static java.lang.String |
COLLECTOR_NAME
Parameter of the default collector name.
|
m_collectorParameter, m_liCache, m_resCache, m_resources, VFS_PATH_NONEPARAM_FILTER, PARAM_ORDER, PARAM_PAGE, PARAM_RESOURCES, PARAM_SORTBY, SEP_KEYVAL, SEP_PARAM| 构造器和说明 |
|---|
CmsNewResourceXmlContentModelCollector(A_CmsListExplorerDialog wp,
java.util.List<CmsResource> resources)
Constructor, creates a new instance.
|
| 限定符和类型 | 方法和说明 |
|---|---|
java.util.List<java.lang.String> |
getCollectorNames()
Returns a list of all collector names (Strings) this collector implementation supports.
|
CmsResource |
getResource(CmsObject cms,
CmsListItem item)
Returns the dummy resource object representing the "none" selection, this has to be treated specially.
|
java.util.List<CmsResource> |
getResources(CmsObject cms,
java.util.Map<java.lang.String,java.lang.String> params)
Returns all, unsorted and unfiltered, resources.
|
java.util.List<CmsResource> |
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.
|
compareTo, createResourceListItem, getCreateLink, getCreateLink, getCreateParam, getCreateParam, getCreateTypeId, getDefaultCollectorName, getDefaultCollectorParam, getDummyListItem, getInternalResources, getListItems, getOrder, getResourceNamesFromParam, getResults, getState, getWp, setDefaultCollectorName, setDefaultCollectorParam, setOrder, setPage, setResourcesParampublic static final java.lang.String COLLECTOR_NAME
public CmsNewResourceXmlContentModelCollector(A_CmsListExplorerDialog wp, java.util.List<CmsResource> resources)
wp - the workplace objectresources - list of locked resourcespublic java.util.List<java.lang.String> getCollectorNames()
I_CmsResourceCollectorI_CmsResourceCollector.getCollectorNames()public CmsResource getResource(CmsObject cms, CmsListItem item)
getResource 在接口中 I_CmsListResourceCollectorgetResource 在类中 A_CmsListResourceCollectorcms - 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_CmsListResourceCollectorBe sure to cache the resources.
getResources 在接口中 I_CmsListResourceCollectorgetResources 在类中 A_CmsListResourceCollectorcms - the cms objectparams - the parameter mapCmsResource objectsA_CmsListResourceCollector.getResources(org.opencms.file.CmsObject, java.util.Map)public java.util.List<CmsResource> getResults(CmsObject cms, java.lang.String collectorName, java.lang.String parameter)
A_CmsListResourceCollectorgetResults 在接口中 I_CmsResourceCollectorgetResults 在类中 A_CmsListResourceCollectorcms - the current CmsObjectcollectorName - the name of the collector to useparameter - an optional collector parameterI_CmsResourceCollector.getResults(org.opencms.file.CmsObject, java.lang.String, java.lang.String)protected void setAdditionalColumns(CmsListItem item, CmsResourceUtil resUtil)
A_CmsListResourceCollectorOverwrite this method to set additional column entries.
setAdditionalColumns 在类中 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)