|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.opencms.ade.galleries.shared.CmsGallerySearchBean
public class CmsGallerySearchBean
This bean represents the current search object.
The search object collects the current parameters which are used for the search and contains the search results for the current search parameters.
| Field Summary | |
|---|---|
static int |
DEFAULT_MATCHES_PER_PAGE
The default matches per page. |
static int |
DEFAULT_TAB_ID
The default tab id to use when the gallery is opened. |
static java.lang.String |
DICT_NAME
Name of the used JS variable. |
| Constructor Summary | |
|---|---|
CmsGallerySearchBean()
Empty default constructor. |
|
CmsGallerySearchBean(CmsGallerySearchBean searchObj)
Constructor of the search object. |
|
| Method Summary | |
|---|---|
void |
addCategory(java.lang.String category)
Adds a category to the categories list. |
void |
addFolder(java.lang.String folder)
Adds a new VFS folder to search in. |
void |
addGallery(java.lang.String gallery)
Adds a gallery folder to the galleries list. |
void |
addType(java.lang.String type)
Adds a type to the types list. |
void |
clearCategories()
Clears the categories list. |
void |
clearFolders()
Clears the list of VFS folders. |
void |
clearFullTextSearch()
Clears the full text search. |
void |
clearGalleries()
Clears the galleries list. |
void |
clearTypes()
Clears the types list. |
java.util.List<java.lang.String> |
getCategories()
Returns the list of the available categories. |
long |
getDateCreatedEnd()
Returns the dateCreatedEnd. |
long |
getDateCreatedStart()
Returns the dateCreatedStart. |
long |
getDateModifiedEnd()
Returns the dateModifiedEnd. |
long |
getDateModifiedStart()
Returns the dateModifiedStart. |
java.util.Set<java.lang.String> |
getFolders()
Returns the list of selected VFS folders. |
java.util.List<java.lang.String> |
getGalleries()
Returns the list of the available galleries. |
I_CmsGalleryProviderConstants.GalleryTabId |
getInitialTabId()
Gets the initial tab id. |
int |
getLastPage()
Gets the index of the last search results page. |
java.lang.String |
getLocale()
Returns the search locale. |
int |
getMatchesPerPage()
Returns the number of matches per search page. |
int |
getPage()
Returns the page. |
java.lang.String |
getQuery()
Returns the search query string. |
java.lang.String |
getReferencePath()
Gets the gallery reference path. |
java.lang.String |
getResourcePath()
Returns the path to the selected resource in the current search. |
java.lang.String |
getResourceType()
Returns the resource type of the selected resource. |
int |
getResultCount()
Returns the resultCount. |
java.util.List<CmsResultItemBean> |
getResults()
Returns the results. |
CmsGallerySearchScope |
getScope()
Gets the search scope. |
CmsSitemapEntryBean |
getSitemapPreloadData()
Gets the sitemap preload data. |
java.lang.String |
getSortOrder()
Returns the sort order of the search results. |
java.lang.String |
getTabId()
Returns the tabId. |
java.util.List<java.lang.String> |
getTypes()
Returns the list of the available type. |
CmsVfsEntryBean |
getVfsPreloadData()
Gets the VFS preload data. |
boolean |
hasMore()
Checks if there are more search items available on the next page. |
boolean |
isEmpty()
Checks if any search parameter are selected. |
boolean |
isIgnoreSearchExclude()
Returns the search exclude property ignore flag. |
boolean |
isIncludeExpired()
Returns if the search should include expired or unreleased resources. |
void |
removeCategory(java.lang.String category)
Removes a category from the categories list. |
void |
removeFolder(java.lang.String folder)
Removes a folder from the folder list. |
void |
removeGallery(java.lang.String gallery)
Removes a gallery folder from the galleries list. |
void |
removeType(java.lang.String type)
Removes a type from the types list. |
void |
setCategories(java.util.List<java.lang.String> categories)
Sets the categories. |
void |
setDateCreatedEnd(long dateCreatedEnd)
Sets the dateCreatedEnd. |
void |
setDateCreatedStart(long dateCreatedStart)
Sets the dateCreatedStart. |
void |
setDateModifiedEnd(long dateModifiedEnd)
Sets the dateModifiedEnd. |
void |
setDateModifiedStart(long dateModifiedStart)
Sets the dateModifiedStart. |
void |
setFolders(java.util.Set<java.lang.String> folders)
Sets the folders to search in. |
void |
setGalleries(java.util.List<java.lang.String> galleries)
Sets the galleries. |
void |
setIgnoreSearchExclude(boolean excludeForPageEditor)
Sets the search exclude property ignore flag. |
void |
setIncludeExpired(boolean includeExpired)
Sets if the search should include expired or unreleased resources. |
void |
setInitialTabId(I_CmsGalleryProviderConstants.GalleryTabId initialTabId)
Sets the initial tab id. |
void |
setLastPage(int lastPage)
Sets the index of the last search result page. |
void |
setLocale(java.lang.String locale)
Sets the locale. |
void |
setMatchesPerPage(int matchesPerPage)
Sets the matchesPerPage. |
void |
setPage(int page)
Sets the page. |
void |
setQuery(java.lang.String query)
Sets the query. |
void |
setReferencePath(java.lang.String referencePath)
Sets the gallery reference path. |
void |
setResourcePath(java.lang.String resourcePath)
Sets the resourcePath. |
void |
setResourceType(java.lang.String resourceType)
Sets the resource type of the selected resource. |
void |
setResultCount(int resultCount)
Sets the resultCount. |
void |
setResults(java.util.List<CmsResultItemBean> results)
Sets the results. |
void |
setScope(CmsGallerySearchScope scope)
Sets the search scope. |
void |
setSitemapPreloadData(CmsSitemapEntryBean preloadData)
Sets the sitemap preload data. |
void |
setSortOrder(java.lang.String sortOrder)
Sets the sortOrder. |
void |
setTabId(java.lang.String tabId)
Sets the tabId. |
void |
setTypes(java.util.List<java.lang.String> types)
Sets the type names. |
void |
setVfsPreloadData(CmsVfsEntryBean preloadData)
Sets the VFS tree preload data. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_MATCHES_PER_PAGE
public static final int DEFAULT_TAB_ID
public static final java.lang.String DICT_NAME
| Constructor Detail |
|---|
public CmsGallerySearchBean()
public CmsGallerySearchBean(CmsGallerySearchBean searchObj)
The constructor copies the content of the provided parameter to the current bean.
searchObj - a search object with content| Method Detail |
|---|
public void addCategory(java.lang.String category)
category - the categorypublic void addFolder(java.lang.String folder)
folder - the folder to addpublic void addGallery(java.lang.String gallery)
gallery - the gallerypublic void addType(java.lang.String type)
type - the typepublic void clearCategories()
public void clearFolders()
public void clearFullTextSearch()
public void clearGalleries()
public void clearTypes()
public java.util.List<java.lang.String> getCategories()
public long getDateCreatedEnd()
public long getDateCreatedStart()
public long getDateModifiedEnd()
public long getDateModifiedStart()
public java.util.Set<java.lang.String> getFolders()
public java.util.List<java.lang.String> getGalleries()
public I_CmsGalleryProviderConstants.GalleryTabId getInitialTabId()
public int getLastPage()
public java.lang.String getLocale()
public int getMatchesPerPage()
public int getPage()
public java.lang.String getQuery()
public java.lang.String getReferencePath()
public java.lang.String getResourcePath()
public java.lang.String getResourceType()
public int getResultCount()
public java.util.List<CmsResultItemBean> getResults()
public CmsGallerySearchScope getScope()
public CmsSitemapEntryBean getSitemapPreloadData()
public java.lang.String getSortOrder()
public java.lang.String getTabId()
public java.util.List<java.lang.String> getTypes()
public CmsVfsEntryBean getVfsPreloadData()
public boolean hasMore()
true if there are more search results available false otherwisepublic boolean isEmpty()
public boolean isIgnoreSearchExclude()
public boolean isIncludeExpired()
true if the search should include expired or unreleased resourcespublic void removeCategory(java.lang.String category)
category - the categorypublic void removeFolder(java.lang.String folder)
folder - the folder to removepublic void removeGallery(java.lang.String gallery)
gallery - the gallerypublic void removeType(java.lang.String type)
type - the typepublic void setCategories(java.util.List<java.lang.String> categories)
categories - the categories to setpublic void setDateCreatedEnd(long dateCreatedEnd)
dateCreatedEnd - the dateCreatedEnd to setpublic void setDateCreatedStart(long dateCreatedStart)
dateCreatedStart - the dateCreatedStart to setpublic void setDateModifiedEnd(long dateModifiedEnd)
dateModifiedEnd - the dateModifiedEnd to setpublic void setDateModifiedStart(long dateModifiedStart)
dateModifiedStart - the dateModifiedStart to setpublic void setFolders(java.util.Set<java.lang.String> folders)
folders - the folderspublic void setGalleries(java.util.List<java.lang.String> galleries)
galleries - the galleries to setpublic void setIgnoreSearchExclude(boolean excludeForPageEditor)
excludeForPageEditor - the search exclude property ignore flagpublic void setIncludeExpired(boolean includeExpired)
includeExpired - if the search should include expired or unreleased resourcespublic void setInitialTabId(I_CmsGalleryProviderConstants.GalleryTabId initialTabId)
initialTabId - the initial tab idpublic void setLastPage(int lastPage)
lastPage - the index of the last search result pagepublic void setLocale(java.lang.String locale)
locale - the locale to setpublic void setMatchesPerPage(int matchesPerPage)
matchesPerPage - the matchesPerPage to setpublic void setPage(int page)
page - the page to setpublic void setQuery(java.lang.String query)
query - the query to setpublic void setReferencePath(java.lang.String referencePath)
referencePath - the gallery reference pathpublic void setResourcePath(java.lang.String resourcePath)
resourcePath - the resourcePath to setpublic void setResourceType(java.lang.String resourceType)
resourceType - the resource type to setpublic void setResultCount(int resultCount)
resultCount - the resultCount to setpublic void setResults(java.util.List<CmsResultItemBean> results)
results - the results to setpublic void setScope(CmsGallerySearchScope scope)
scope - the search scopepublic void setSitemapPreloadData(CmsSitemapEntryBean preloadData)
preloadData - the sitemap preload datapublic void setSortOrder(java.lang.String sortOrder)
sortOrder - the sortOrder to setpublic void setTabId(java.lang.String tabId)
tabId - the tabId to setpublic void setTypes(java.util.List<java.lang.String> types)
types - the type names to setpublic void setVfsPreloadData(CmsVfsEntryBean preloadData)
preloadData - the VFS tree preload data
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||