|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.opencms.search.galleries.CmsGallerySearch
public class CmsGallerySearch
Contains the functions for the gallery search.
| Field Summary | |
|---|---|
protected CmsObject |
m_cms
The OpenCms object used for the search. |
| Constructor Summary | |
|---|---|
CmsGallerySearch()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getIndex()
Returns the name of the current search index. |
CmsGallerySearchResultList |
getResult(CmsGallerySearchParameters params)
Returns the gallery search result list. |
CmsGallerySearchIndex |
getSearchIndex()
Returns the current gallery search index. |
void |
init(CmsObject cms)
Initializes the bean with the provided OpenCms context object. |
static CmsGallerySearchResult |
searchById(CmsObject cms,
CmsUUID structureId,
java.util.Locale locale)
Searches by structure id. |
CmsGallerySearchResult |
searchById(CmsUUID id,
java.util.Locale locale)
Searches by structure id. |
static CmsGallerySearchResult |
searchByPath(CmsObject cms,
java.lang.String rootPath,
java.util.Locale locale)
Searches by structure id. |
CmsGallerySearchResult |
searchByPath(java.lang.String path,
java.util.Locale locale)
Searches by structure id. |
void |
setIndex(java.lang.String indexName)
Set the name of the index to search. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected transient CmsObject m_cms
| Constructor Detail |
|---|
public CmsGallerySearch()
| Method Detail |
|---|
public static CmsGallerySearchResult searchById(CmsObject cms,
CmsUUID structureId,
java.util.Locale locale)
throws CmsException
cms - the OpenCms context to use for the searchstructureId - the structure id of the document to search forlocale - the locale for which the search result should be returned
CmsException - if something goes wrong
public static CmsGallerySearchResult searchByPath(CmsObject cms,
java.lang.String rootPath,
java.util.Locale locale)
throws CmsException
cms - the OpenCms context to use for the searchrootPath - the resource root pathlocale - the locale for which the search result should be returned
CmsException - if something goes wrongpublic java.lang.String getIndex()
public CmsGallerySearchResultList getResult(CmsGallerySearchParameters params)
throws CmsException
params - the gallery search parameters
CmsException - if the search failedpublic CmsGallerySearchIndex getSearchIndex()
public void init(CmsObject cms)
cms - the OpenCms context to use for the search
public CmsGallerySearchResult searchById(CmsUUID id,
java.util.Locale locale)
throws CmsException
id - the structure id of the document to search forlocale - the locale for which the search result should be returned
CmsException - if something goes wrong
public CmsGallerySearchResult searchByPath(java.lang.String path,
java.util.Locale locale)
throws CmsException
path - the resource pathlocale - the locale for which the search result should be returned
CmsException - if something goes wrong
public void setIndex(java.lang.String indexName)
throws CmsException
A former search result will be deleted.
indexName - the name of the index
CmsException - if the index was not found or was not an instance of @link CmsGallerySearchIndex
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||