Interface I_CmsGalleryService
- All Superinterfaces:
com.google.gwt.user.client.rpc.RemoteService
- All Known Implementing Classes:
CmsGalleryService
Handles all RPC services related to the gallery dialog.
- Since:
- 8.0.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteResource
(String resourcePath) Deletes the given resource.Loads the gallery configuration for the adeView mode.getGalleries
(String context, List<String> resourceTypes) Returns the available galleries depending on the given resource types.getGalleryActionInfo
(String sitePath) Gets the gallery upload action information for the given path.getInfoForResource
(String path, String locale) Returns the resource info for a single resource.Returns the initial data for the given gallery mode.getSearch
(CmsGalleryDataBean data) Performs an initial search based on the given data bean and the available parameters of the request.getSearch
(CmsGallerySearchBean searchObj) Returns the gallery search object containing search results and the currant search parameter.getSubEntries
(String rootPath, boolean isRoot, String filter) Returns the sub entries to the given sitemap path.getSubFolders
(String path) Gets the sub-folders of a folder.loadVfsEntryBean
(String path, String filter) Loads the root VFS entry bean for the given site root.void
saveResultViewType
(String resultViewType) Stores the result view type with the user.void
Saves the tree open state for a tree tab.void
Updates the offline indices.
-
Method Details
-
deleteResource
Deletes the given resource.- Parameters:
resourcePath
- the resource path of the resource to delete- Throws:
CmsRpcException
- if something goes wrong
-
getAdeViewModeConfiguration
Loads the gallery configuration for the adeView mode.- Returns:
- the gallery configuration
-
getGalleries
List<CmsGalleryFolderBean> getGalleries(String context, List<String> resourceTypes) throws CmsRpcException Returns the available galleries depending on the given resource types.- Parameters:
context
- URI of the current page or subsiteresourceTypes
- the resource types- Returns:
- the galleries
- Throws:
CmsRpcException
- if something goes wrong
-
getGalleryActionInfo
Gets the gallery upload action information for the given path.- Parameters:
sitePath
- the path of a gallery folder- Returns:
- the gallery upload action information for that folder (may be null if no folder is found)
- Throws:
CmsRpcException
- if something goes wrong
-
getInfoForResource
Returns the resource info for a single resource.- Parameters:
path
- the resource pathlocale
- the content locale- Returns:
- the resource info
- Throws:
CmsRpcException
- if something goes wrong
-
getSubEntries
List<CmsSitemapEntryBean> getSubEntries(String rootPath, boolean isRoot, String filter) throws CmsRpcException Returns the sub entries to the given sitemap path.- Parameters:
rootPath
- the root pathisRoot
-true
if the requested entry is the root entryfilter
- the search filter string- Returns:
- the sub entries
- Throws:
CmsRpcException
- if something goes wrong
-
getSubFolders
Gets the sub-folders of a folder.- Parameters:
path
- the path of a folder- Returns:
- beans representing the sub-folders of the folder
- Throws:
CmsRpcException
- if something goes wrong
-
loadVfsEntryBean
Loads the root VFS entry bean for the given site root.- Parameters:
path
- the site rootfilter
- the filter string- Returns:
- the root VFS entry bean for the given site root
- Throws:
CmsRpcException
- if something goes wrong
-
saveResultViewType
Stores the result view type with the user.- Parameters:
resultViewType
- the result view type
-
saveTreeOpenState
void saveTreeOpenState(String treeName, String treeToken, String siteRoot, Set<CmsUUID> openItems) throws CmsRpcException Saves the tree open state for a tree tab.- Parameters:
treeName
- the tree name for which to save the tree statetreeToken
- the tree token for which to save the tree statesiteRoot
- the site rootopenItems
- the set of structure ids of open tree items- Throws:
CmsRpcException
- if something goes wrong
-
updateIndex
Updates the offline indices.- Throws:
CmsRpcException
- if something goes wrong
-