public class CmsChangedResourceCollector extends A_CmsResourceCollector
| 限定符和类型 | 字段和说明 |
|---|---|
static java.lang.String |
PARAM_KEY_COUNT
The collector parameter key for the maximum number of resources to return.
|
static java.lang.String |
PARAM_KEY_DATEFROM
The collector parameter key for the date from which a resource should be changed.
|
static java.lang.String |
PARAM_KEY_DATETO
The collector parameter key for the date to which a resource should be changed.
|
static java.lang.String |
PARAM_KEY_EXCLUDETYPE
The collector parameter key for the name of the resource type to exclude from the result.
|
static java.lang.String |
PARAM_KEY_RESOURCE
The collector parameter key for the resource, i.e. the parent folder from which the subscribed or visited resources should be read from.
|
static java.lang.String |
PARAM_KEY_SORTBY
The collector parameter key for the sort attribute that should be used to sort the result.
|
m_order, SEPARATOR_TEMPLATEFILE| 构造器和说明 |
|---|
CmsChangedResourceCollector() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected java.util.List<CmsResource> |
allChangedInFolderDate(CmsObject cms,
java.lang.String param,
boolean tree,
boolean asc)
Returns a List of all changed resources in the folder pointed to by the parameter
sorted by the date attributes specified in the parameter.
|
java.util.List<java.lang.String> |
getCollectorNames()
Returns a list of all collector names (Strings) this collector implementation supports.
|
java.lang.String |
getCreateLink(CmsObject cms,
java.lang.String collectorName,
java.lang.String param)
Returns the link that must be executed when a user clicks on the direct edit
"new" button on a list created by the named collector.
|
java.lang.String |
getCreateParam(CmsObject cms,
java.lang.String collectorName,
java.lang.String param)
Returns the parameter that must be passed to the
I_CmsResourceCollector.getCreateLink(CmsObject, String, String) method. |
java.util.List<CmsResource> |
getResults(CmsObject cms,
java.lang.String collectorName,
java.lang.String param)
Returns a list of
CmsResource Objects that are
gathered in the VFS using the named collector. |
checkParams, compareTo, createResourceForCollector, equals, getCreateInFolder, getCreateInFolder, getCreateLink, getCreateParam, getCreateTypeId, getDefaultCollectorName, getDefaultCollectorParam, getOrder, getResults, hashCode, setDefaultCollectorName, setDefaultCollectorParam, setOrder, shrinkToFitpublic static final java.lang.String PARAM_KEY_COUNT
public static final java.lang.String PARAM_KEY_DATEFROM
public static final java.lang.String PARAM_KEY_DATETO
public static final java.lang.String PARAM_KEY_EXCLUDETYPE
public static final java.lang.String PARAM_KEY_RESOURCE
public static final java.lang.String PARAM_KEY_SORTBY
public java.util.List<java.lang.String> getCollectorNames()
I_CmsResourceCollectorI_CmsResourceCollector.getCollectorNames()public java.lang.String getCreateLink(CmsObject cms, java.lang.String collectorName, java.lang.String param)
I_CmsResourceCollector
If this method returns null,
it indicated that the selected collector implementation does not support a "create link",
and so no "new" button will should shown on lists generated with this collector.
cms - the current CmsObjectcollectorName - the name of the collector to useparam - an optional collector parameterI_CmsResourceCollector.getCreateLink(org.opencms.file.CmsObject, java.lang.String, java.lang.String)public java.lang.String getCreateParam(CmsObject cms, java.lang.String collectorName, java.lang.String param)
I_CmsResourceCollectorI_CmsResourceCollector.getCreateLink(CmsObject, String, String) method.
If this method returns null,
it indicates that the selected collector implementation does not support a "create link",
and so no "new" button will should shown on lists generated with this collector.
cms - the current CmsObjectcollectorName - the name of the collector to useparam - an optional collector parameter from the current page contextI_CmsResourceCollector.getCreateLink(CmsObject, String, String) method, or nullI_CmsResourceCollector.getCreateParam(org.opencms.file.CmsObject, java.lang.String, java.lang.String)public java.util.List<CmsResource> getResults(CmsObject cms, java.lang.String collectorName, java.lang.String param) throws CmsDataAccessException, CmsException
I_CmsResourceCollectorCmsResource Objects that are
gathered in the VFS using the named collector.cms - the current CmsObjectcollectorName - the name of the collector to useparam - an optional collector parameterCmsDataAccessException - if the parameter attribute of the corresponding collector tag is invalidCmsException - if something goes wrongI_CmsResourceCollector.getResults(org.opencms.file.CmsObject, java.lang.String, java.lang.String)protected java.util.List<CmsResource> allChangedInFolderDate(CmsObject cms, java.lang.String param, boolean tree, boolean asc) throws CmsException
cms - the current CmsObjectparam - must contain an extended collector parameter set as described by CmsExtendedCollectorDatatree - if true, look in folder and all child folders, if false, look only in given folderasc - if true, the sort is ascending (old dates first), otherwise it is descending
(new dates first)CmsException - if something goes wrong