public class CmsSolrCollector extends A_CmsResourceCollector
m_order, SEPARATOR_TEMPLATEFILEDEFAULT_LIMIT| Constructor and Description |
|---|
CmsSolrCollector() |
| Modifier and Type | Method and Description |
|---|---|
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. |
java.util.List<CmsResource> |
getResults(CmsObject cms,
java.lang.String name,
java.lang.String param,
int numResults)
Returns a list of
CmsResource Objects that are
gathered in the VFS using the named collector. |
checkParams, compareTo, createResourceForCollector, equals, getCreateInFolder, getCreateInFolder, getCreateLink, getCreateParam, getDefaultCollectorName, getDefaultCollectorParam, getOrder, getPostCreateHandler, getPublishResources, getResults, hashCode, setDefaultCollectorName, setDefaultCollectorParam, setOrder, shrinkToFit, shrinkToFitpublic CmsSolrCollector()
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) throws 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 parameterCmsException - if something goes wrongCmsDataAccessException - if the parameter attribute of the corresponding collector tag is invalidI_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) throws CmsException
I_CmsResourceCollectorReturns -1 if creation of new items is not supported.
getCreateTypeId in interface I_CmsResourceCollectorgetCreateTypeId in class A_CmsResourceCollectorcms - the current CmsObjectcollectorName - the name of the collector to useparam - an optional collector parameterCmsException - if something goes wrongA_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)public java.util.List<CmsResource> getResults(CmsObject cms, java.lang.String name, java.lang.String param, int numResults) throws CmsException
I_CmsResourceCollectorCmsResource Objects that are
gathered in the VFS using the named collector.This method takes as a parameter the desired number of results. If this number is -1, the number of results will only depend on the collector parameters. If it is positive, any given result number in the collector parameter string will not be used.
cms - the current CmsObjectname - the name of the collector to useparam - an optional collector parameternumResults - the desired number of results (overrides result number possiblCmsException - if something goes wrongCmsDataAccessException - if the parameter attribute of the corresponding collector tag is invalidI_CmsResourceCollector.getResults(org.opencms.file.CmsObject, java.lang.String, java.lang.String)