|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opencms.workplace.list.A_CmsListResourceCollector
org.opencms.workplace.search.CmsSearchResourcesCollector
public class CmsSearchResourcesCollector
Collector for receiving CmsResources from a search result set.
Field Summary | |
---|---|
static java.lang.String |
COLLECTOR_NAME
Parameter of the default collector name. |
protected java.util.Map |
m_srCache
Resource cache. |
static java.lang.String |
PARAM_FIELDS
Meta Parameter name constant. |
static java.lang.String |
PARAM_MAXCREATIONDATE
Maximum creation date parameter name constant. |
static java.lang.String |
PARAM_MAXLASTMODIFICATIONDATE
Maximum last modification date parameter name constant. |
static java.lang.String |
PARAM_MINCREATIONDATE
Minimum creation date parameter name constant. |
static java.lang.String |
PARAM_MINLASTMODIFICATIONDATE
Minimum last modification date parameter name constant. |
static java.lang.String |
PARAM_QUERY
Query Parameter name constant. |
static java.lang.String |
PARAM_SORT
Sort Parameter name constant. |
Fields inherited from class org.opencms.workplace.list.A_CmsListResourceCollector |
---|
m_collectorParameter, m_liCache, m_resCache, m_resources, VFS_PATH_NONE |
Fields inherited from interface org.opencms.workplace.list.I_CmsListResourceCollector |
---|
PARAM_FILTER, PARAM_ORDER, PARAM_PAGE, PARAM_RESOURCES, PARAM_SORTBY, SEP_KEYVAL, SEP_PARAM |
Constructor Summary | |
---|---|
CmsSearchResourcesCollector(A_CmsListExplorerDialog wp,
java.lang.String query,
java.lang.String sort,
java.lang.String fields,
java.util.List searchRoots,
java.lang.String minCreationDate,
java.lang.String maxCreationDate,
java.lang.String minLastModificationDate,
java.lang.String maxLastModificationDate)
Constructor, creates a new instance. |
Method Summary | |
---|---|
java.util.List |
getCollectorNames()
Returns a list of all collector names (Strings) this collector implementation supports. |
protected java.util.List |
getInternalResources(CmsObject cms,
java.util.Map params)
Wrapper method for caching the result of A_CmsListResourceCollector.getResources(CmsObject, Map) . |
java.util.List |
getResources(CmsObject cms,
java.util.Map params)
Returns all, unsorted and unfiltered, resources. |
CmsSearchResult |
getSearchResult(java.lang.String structureId)
Returns the search result object for the given structure id. |
protected void |
setAdditionalColumns(CmsListItem item,
CmsResourceUtil resUtil)
Set additional column entries for a resource. |
void |
setPage(int page)
Sets the current display page. |
Methods inherited from class org.opencms.workplace.list.A_CmsListResourceCollector |
---|
compareTo, createResourceListItem, getCreateLink, getCreateLink, getCreateParam, getCreateParam, getDefaultCollectorName, getDefaultCollectorParam, getDummyListItem, getListItems, getOrder, getResource, getResourceNamesFromParam, getResults, getResults, getState, getWp, setDefaultCollectorName, setDefaultCollectorParam, setOrder, setResourcesParam |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String COLLECTOR_NAME
public static final java.lang.String PARAM_FIELDS
public static final java.lang.String PARAM_MAXCREATIONDATE
public static final java.lang.String PARAM_MAXLASTMODIFICATIONDATE
public static final java.lang.String PARAM_MINCREATIONDATE
public static final java.lang.String PARAM_MINLASTMODIFICATIONDATE
public static final java.lang.String PARAM_QUERY
public static final java.lang.String PARAM_SORT
protected java.util.Map m_srCache
Constructor Detail |
---|
public CmsSearchResourcesCollector(A_CmsListExplorerDialog wp, java.lang.String query, java.lang.String sort, java.lang.String fields, java.util.List searchRoots, java.lang.String minCreationDate, java.lang.String maxCreationDate, java.lang.String minLastModificationDate, java.lang.String maxLastModificationDate)
wp
- the workplace objectquery
- the search querysort
- the sort by parameterfields
- the comma separated list of fields to searchsearchRoots
- a list of search rootsminCreationDate
- the minimum creation date of the resources to be searchedmaxCreationDate
- the maximum creation date of the resources to be searchedminLastModificationDate
- the minimum creation date of the resources to be searchedmaxLastModificationDate
- the maximum creation date of the resources to be searchedMethod Detail |
---|
public java.util.List getCollectorNames()
I_CmsResourceCollector
I_CmsResourceCollector.getCollectorNames()
public java.util.List getResources(CmsObject cms, java.util.Map params) throws CmsException
A_CmsListResourceCollector
Be sure to cache the resources.
getResources
in interface I_CmsListResourceCollector
getResources
in class A_CmsListResourceCollector
cms
- the cms objectparams
- the parameter map
CmsResource
objects
CmsException
- if something goes wrongA_CmsListResourceCollector.getResources(org.opencms.file.CmsObject, java.util.Map)
public CmsSearchResult getSearchResult(java.lang.String structureId)
structureId
- the structure id
public void setPage(int page)
A_CmsListResourceCollector
setPage
in interface I_CmsListResourceCollector
setPage
in class A_CmsListResourceCollector
page
- the new display pageA_CmsListResourceCollector.setPage(int)
protected java.util.List getInternalResources(CmsObject cms, java.util.Map params) throws CmsException
A_CmsListResourceCollector
A_CmsListResourceCollector.getResources(CmsObject, Map)
.
getInternalResources
in class A_CmsListResourceCollector
cms
- the cms objectparams
- the parameter map
A_CmsListResourceCollector.getResources(CmsObject, Map)
CmsException
- if something goes wrongA_CmsListResourceCollector.getInternalResources(org.opencms.file.CmsObject, java.util.Map)
protected void setAdditionalColumns(CmsListItem item, CmsResourceUtil resUtil)
A_CmsListResourceCollector
Overwrite this method to set additional column entries.
setAdditionalColumns
in class A_CmsListResourceCollector
item
- 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)
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |