|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
A collector that generates list of CmsResource objects from the VFS.
| Method Summary | |
List |
getCollectorNames()
Returns a list of all collector names (Strings) this collector implementation supports. |
String |
getCreateLink(CmsObject cms,
String collectorName,
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. |
String |
getCreateParam(CmsObject cms,
String collectorName,
String param)
Returns the parameter that must be passed to the getCreateLink(CmsObject, String, String) method. |
int |
getOrder()
Returns the "order weight" of this collector. |
List |
getResults(CmsObject cms,
String collectorName,
String param)
Returns a list of CmsResource Objects that are
gathered in the VFS using the named collector. |
void |
setOrder(int order)
Sets the "order weight" of this collector. |
| Methods inherited from interface java.lang.Comparable |
compareTo |
| Method Detail |
public List getCollectorNames()
public String getCreateLink(CmsObject cms,
String collectorName,
String param)
throws CmsException,
CmsDataAccessException
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 parameter
CmsException - if something goes wrong
CmsDataAccessException - if the param attrib of the corresponding collector tag is invalidgetCreateParam(CmsObject, String, String)
public String getCreateParam(CmsObject cms,
String collectorName,
String param)
throws CmsDataAccessException
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 context
getCreateLink(CmsObject, String, String) method, or null
CmsDataAccessException - if the param attrib of the corresponding collector tag is invalidgetCreateLink(CmsObject, String, String)public int getOrder()
The "order weight" is important because two collector classes may provide a collector with the same name. If this is the case, the collector implementation with the higher order number "overrules" the lower order number classs.
public List getResults(CmsObject cms,
String collectorName,
String param)
throws CmsDataAccessException,
CmsException
CmsResource 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 parameter
CmsException - if something goes wrong
CmsDataAccessException - if the param attrib of the corresponding collector tag is invalidpublic void setOrder(int order)
order - the order weight to setgetOrder()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||