public class CmsDefaultResourceCollector extends A_CmsResourceCollector
m_order, SEPARATOR_TEMPLATEFILE| 构造器和说明 |
|---|
CmsDefaultResourceCollector() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected java.util.List<CmsResource> |
allInFolderDateReleasedDesc(CmsObject cms,
java.lang.String param,
boolean tree)
Returns a List of all resources in the folder pointed to by the parameter
sorted by the release date, descending.
|
protected java.util.List<CmsResource> |
allInFolderNavPos(CmsObject cms,
java.lang.String param,
boolean readSubTree)
Collects all resources in a folder (or subtree) sorted by the NavPos property.
|
protected java.util.List<CmsResource> |
getAllInFolder(CmsObject cms,
java.lang.String param,
boolean tree)
Returns all resources in the folder pointed to by 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. |
int |
getCreateTypeId(CmsObject cms,
java.lang.String collectorName,
java.lang.String param)
Returns the id of the resource type for new collector items.
|
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. |
protected java.util.List<CmsResource> |
getSingleFile(CmsObject cms,
java.lang.String param)
Returns a List containing the resources pointed to by the parameter.
|
checkParams, compareTo, createResourceForCollector, equals, getCreateInFolder, getCreateInFolder, getCreateLink, getCreateParam, getDefaultCollectorName, getDefaultCollectorParam, getOrder, getResults, hashCode, setDefaultCollectorName, setDefaultCollectorParam, setOrder, shrinkToFitpublic 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) throws CmsDataAccessException, CmsException
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 parameterCmsDataAccessException - if the parameter attribute of the corresponding collector tag is invalidCmsException - if something goes wrongI_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) throws CmsDataAccessException
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 nullCmsDataAccessException - if the parameter attribute of the corresponding collector tag is invalidI_CmsResourceCollector.getCreateParam(org.opencms.file.CmsObject, java.lang.String, java.lang.String)public int getCreateTypeId(CmsObject cms, java.lang.String collectorName, java.lang.String param)
I_CmsResourceCollectorReturns -1 if creation of new items is not supported.
getCreateTypeId 在接口中 I_CmsResourceCollectorgetCreateTypeId 在类中 A_CmsResourceCollectorcms - the current CmsObjectcollectorName - the name of the collector to useparam - an optional collector parameterA_CmsResourceCollector.getCreateTypeId(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> allInFolderDateReleasedDesc(CmsObject cms, java.lang.String param, boolean tree) throws CmsException
cms - the current CmsObjectparam - the folder name to usetree - if true, look in folder and all child folders, if false, look only in given folderCmsException - if something goes wrongprotected java.util.List<CmsResource> allInFolderNavPos(CmsObject cms, java.lang.String param, boolean readSubTree) throws CmsException
cms - the current user's Cms objectparam - the collector's parameter(s)readSubTree - if true, collects all resources in the subtreeCmsException - if something goes wrongprotected java.util.List<CmsResource> getAllInFolder(CmsObject cms, java.lang.String param, boolean tree) throws CmsException, CmsIllegalArgumentException
cms - the current OpenCms user contextparam - the folder name to usetree - if true, look in folder and all child folders, if false, look only in given folderCmsException - if something goes wrongCmsIllegalArgumentException - if the given param argument is not a link to a single fileprotected java.util.List<CmsResource> getSingleFile(CmsObject cms, java.lang.String param) throws CmsException
cms - the current CmsObjectparam - the name of the file to loadCmsException - if something goes wrong