Package org.opencms.ade.galleries.shared
Class CmsGalleryDataBean
java.lang.Object
org.opencms.ade.galleries.shared.CmsGalleryDataBean
- All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable
public class CmsGalleryDataBean
extends Object
implements com.google.gwt.user.client.rpc.IsSerializable
This bean holding the gallery dialog information required for displaying the content of the gallery tabs.
- Since:
- 8.0.0
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the categories.Gets the context parameters.Returns the current element.Gets the default search scope.Returns the galleries map.Gets the prefix for the key used to store the last selected gallery.boolean
Gets the default value for the "include expired" option.Returns the locale.Returns the locales map.getMode()
Returns the gallery mode.Returns the gallery reference site-path.Returns the result view type.getScope()
Returns the search scope.Returns the site selector options for the sitemap.Gets the result sort order.Returns the start folder.Returns the start folder filter.Returns the start gallery folder.Returns the start tab.Gets the tab configuration.Returns the configured tabs.Gets the tree token, which is used to determine which tree state is loaded from the session.getTypes()
Returns the types map.Returns the vfsPreloadData.Returns the list of root folders to display in the VFS tab.Gets the list of site selector options for the VFS tab.void
setCategories
(List<CmsCategoryTreeEntry> categories) Sets the categories.void
setCurrentElement
(String currentElement) Sets the current element.void
Sets the default search scope.void
setGalleries
(List<CmsGalleryFolderBean> galleries) Sets the galleries map.void
setGalleryStoragePrefix
(String prefix) Sets the prefix for the key used to store the last selected gallery.void
setIncludeExpiredDefault
(boolean includeExpiredDefault) Sets the default value for the 'include expired' option.void
Sets the locale.void
setLocales
(Map<String, String> locales) Sets the locales map.void
Sets the gallery mode.void
setReferenceSitePath
(String referenceSitePath) Sets the gallery reference site-path.void
setResultViewType
(String resultViewType) Sets the result view type.void
setScope
(CmsGallerySearchScope scope) Sets the search scope.void
Sets the site selector options for the sitemap tab.void
Sets the result sort order.void
setStartFolder
(String startFolder) Sets the start folder.void
setStartFolderFilter
(Set<String> startFolderFilter) Sets the start folder filter.void
setStartGallery
(String startGallery) Sets the start gallery folder.void
Sets the start tab.void
setTabConfiguration
(CmsGalleryTabConfiguration tabConfiguration) Sets the tab configuration.void
Sets the tab id's.void
setTreeToken
(String treeToken) Sets the tree token.void
setTypes
(List<CmsResourceTypeBean> types) Sets the types map.void
setVfsPreloadData
(CmsVfsEntryBean vfsPreloadData) Sets the vfsPreloadData.void
setVfsRootFolders
(List<CmsVfsEntryBean> rootFolders) Sets the root folders to be displayed in the VFS folder tab.void
setVfsSiteSelectorOptions
(List<CmsSiteSelectorOption> siteSelectorOptions) Sets the available site selector options.
-
Field Details
-
DICT_NAME
Name of the used JS variable.- See Also:
-
-
Constructor Details
-
CmsGalleryDataBean
public CmsGalleryDataBean()Default constructor.
-
-
Method Details
-
getCategories
Returns the categories.- Returns:
- the categories
-
getContextParameters
Gets the context parameters.These are additional parameters to store information about the context from which the gallery dialog was opened.
- Returns:
- the context parameters
-
getCurrentElement
Returns the current element.- Returns:
- the current element
-
getDefaultScope
Gets the default search scope.- Returns:
- the default search scope
-
getGalleries
Returns the galleries map.- Returns:
- the galleries
-
getGalleryStoragePrefix
Gets the prefix for the key used to store the last selected gallery.- Returns:
- the gallery key prefix
-
getIncludeExpiredDefault
Gets the default value for the "include expired" option.- Returns:
- the default value
-
getLocale
Returns the locale.- Returns:
- the locale
-
getLocales
Returns the locales map.- Returns:
- the locales
-
getMode
Returns the gallery mode.- Returns:
- the gallery mode
-
getReferenceSitePath
Returns the gallery reference site-path.In widget, editor and containerpage mode this will be the edited resource, otherwise the opened gallery folder.
- Returns:
- the gallery reference site-path
-
getResultViewType
Returns the result view type.- Returns:
- the result view type
-
getScope
Returns the search scope.- Returns:
- the search scope
-
getSitemapSiteSelectorOptions
Returns the site selector options for the sitemap.- Returns:
- the site selector options for the sitemap
-
getSortOrder
Gets the result sort order.- Returns:
- the result sort order
-
getStartFolder
Returns the start folder.- Returns:
- the start folder
-
getStartFolderFilter
Returns the start folder filter.- Returns:
- the start folder filter
-
getStartGallery
Returns the start gallery folder.- Returns:
- the start gallery folder
-
getStartTab
Returns the start tab.- Returns:
- the startTab
-
getTabConfiguration
Gets the tab configuration.- Returns:
- the tab configuration
-
getTabIds
Returns the configured tabs.- Returns:
- the configured tabs
-
getTreeToken
Gets the tree token, which is used to determine which tree state is loaded from the session.- Returns:
- the tree token
-
getTypes
Returns the types map.- Returns:
- the types
-
getVfsPreloadData
Returns the vfsPreloadData.- Returns:
- the vfsPreloadData
-
getVfsRootFolders
Returns the list of root folders to display in the VFS tab.- Returns:
- the list root folders to display in the VFS tab
-
getVfsSiteSelectorOptions
Gets the list of site selector options for the VFS tab.- Returns:
- the list of site selector options for the VFS tab
-
setCategories
Sets the categories.- Parameters:
categories
- the categories to set
-
setCurrentElement
Sets the current element.- Parameters:
currentElement
- the current element to set
-
setGalleries
Sets the galleries map.- Parameters:
galleries
- the galleries to set
-
setGalleryStoragePrefix
Sets the prefix for the key used to store the last selected gallery.- Parameters:
prefix
- the prefix for the gallery key
-
setIncludeExpiredDefault
Sets the default value for the 'include expired' option.- Parameters:
includeExpiredDefault
- the default value to set
-
setLocale
Sets the locale.- Parameters:
locale
- the locale to set
-
setLocales
Sets the locales map.- Parameters:
locales
- the locales to set
-
setReferenceSitePath
Sets the gallery reference site-path.In widget, editor and containerpage mode this will be the edited resource, otherwise the opened gallery folder.
- Parameters:
referenceSitePath
- the gallery reference site-path to set
-
setResultViewType
Sets the result view type.- Parameters:
resultViewType
- the result view type to set
-
setSitemapSiteSelectorOptions
Sets the site selector options for the sitemap tab.- Parameters:
options
- the site selector options for the sitemap tab
-
setStartFolder
Sets the start folder.- Parameters:
startFolder
- the start folder to set
-
setStartFolderFilter
Sets the start folder filter.- Parameters:
startFolderFilter
- the start folder filter to set
-
setStartGallery
Sets the start gallery folder.- Parameters:
startGallery
- the start gallery folder to set
-
setTreeToken
Sets the tree token.- Parameters:
treeToken
- the new tree token
-
setTypes
Sets the types map.- Parameters:
types
- the types to set
-
setVfsRootFolders
Sets the root folders to be displayed in the VFS folder tab.- Parameters:
rootFolders
- beans representing the root folders
-
setVfsSiteSelectorOptions
Sets the available site selector options.- Parameters:
siteSelectorOptions
- the available site selector options
-