public class CmsGallerySearchBean
extends java.lang.Object
implements com.google.gwt.user.client.rpc.IsSerializable
The search object collects the current parameters which are used for the search and contains the search results for the current search parameters.
限定符和类型 | 字段和说明 |
---|---|
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.
|
构造器和说明 |
---|
CmsGallerySearchBean()
Empty default constructor.
|
CmsGallerySearchBean(CmsGallerySearchBean searchObj)
Constructor of the search object.
|
限定符和类型 | 方法和说明 |
---|---|
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.GalleryMode |
getGalleryMode()
Gets the gallery mode.
|
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 |
isDisablePreview()
Returns true if no preview should be shown for the search result.
|
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 |
setDisablePreview(boolean disablePreview)
Sets the 'disable preview' flag.
|
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 |
setGalleryMode(I_CmsGalleryProviderConstants.GalleryMode galleryMode)
Sets the gallery mode.
|
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.
|
public static final int DEFAULT_MATCHES_PER_PAGE
public static final int DEFAULT_TAB_ID
public static final java.lang.String DICT_NAME
public CmsGallerySearchBean()
public CmsGallerySearchBean(CmsGallerySearchBean searchObj)
The constructor copies the content of the provided parameter to the current bean.
searchObj
- a search object with contentpublic 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.GalleryMode getGalleryMode()
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 isDisablePreview()
public 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 setDisablePreview(boolean disablePreview)
disablePreview
- true if the preview for the search result should not be shownpublic 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 setGalleryMode(I_CmsGalleryProviderConstants.GalleryMode galleryMode)
galleryMode
- the gallery mode 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