Interface I_CmsGalleryServiceAsync
public interface I_CmsGalleryServiceAsync
Handles all RPC services related to the gallery dialog.
- Since:
- 8.0.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteResource
(String resourcePath, com.google.gwt.user.client.rpc.AsyncCallback<Void> callback) Deletes the given resource.void
getAdeViewModeConfiguration
(com.google.gwt.user.client.rpc.AsyncCallback<CmsGalleryConfiguration> callback) Loads the gallery configuration for the adeView mode.void
getGalleries
(String context, List<String> resourceTypes, com.google.gwt.user.client.rpc.AsyncCallback<List<CmsGalleryFolderBean>> callback) Returns the available galleries depending on the given resource types.void
getGalleryActionInfo
(String sitePath, com.google.gwt.user.client.rpc.AsyncCallback<CmsGalleryActionInfo> info) Gets gallery upload information.void
getInfoForResource
(String path, String locale, com.google.gwt.user.client.rpc.AsyncCallback<CmsResultItemBean> callback) Returns the resource info for a single resource.void
getInitialSettings
(CmsGalleryConfiguration conf, com.google.gwt.user.client.rpc.AsyncCallback<CmsGalleryDataBean> callback) Returns the initial data for the given gallery mode.void
getSearch
(CmsGalleryDataBean data, com.google.gwt.user.client.rpc.AsyncCallback<CmsGallerySearchBean> callback) Performs an initial search based on the given data bean and the available parameters of the request.void
getSearch
(CmsGallerySearchBean searchObj, com.google.gwt.user.client.rpc.AsyncCallback<CmsGallerySearchBean> callback) Returns the gallery search object containing search results and the currant search parameter.void
getSubEntries
(String rootPath, boolean isRoot, String filter, com.google.gwt.user.client.rpc.AsyncCallback<List<CmsSitemapEntryBean>> callback) Returns the sub entries to the given sitemap path.void
getSubFolders
(String path, com.google.gwt.user.client.rpc.AsyncCallback<List<CmsVfsEntryBean>> callback) Gets the sub-folders of a folder.void
loadVfsEntryBean
(String path, String filter, com.google.gwt.user.client.rpc.AsyncCallback<CmsVfsEntryBean> resultCallback) Loads the root VFS entry bean for the given site root.void
saveResultViewType
(String resultViewType, com.google.gwt.user.client.rpc.AsyncCallback<Void> callback) Stores the result view type with the user.void
saveTreeOpenState
(String treeName, String treeToken, String siteRoot, Set<CmsUUID> openItems, com.google.gwt.user.client.rpc.AsyncCallback<Void> callback) Saves the tree open state.void
updateIndex
(com.google.gwt.user.client.rpc.AsyncCallback<Void> callback) Updates the offline indices.
-
Method Details
-
getGalleryActionInfo
void getGalleryActionInfo(String sitePath, com.google.gwt.user.client.rpc.AsyncCallback<CmsGalleryActionInfo> info) Gets gallery upload information.- Parameters:
sitePath
- the site path of a folderinfo
- the gallery upload information, or null if no folder with that path is found
-
deleteResource
void deleteResource(String resourcePath, com.google.gwt.user.client.rpc.AsyncCallback<Void> callback) Deletes the given resource.- Parameters:
resourcePath
- the resource path of the resource to deletecallback
- the callback
-
getAdeViewModeConfiguration
void getAdeViewModeConfiguration(com.google.gwt.user.client.rpc.AsyncCallback<CmsGalleryConfiguration> callback) Loads the gallery configuration for the adeView mode.- Parameters:
callback
- the callback for the result
-
getGalleries
void getGalleries(String context, List<String> resourceTypes, com.google.gwt.user.client.rpc.AsyncCallback<List<CmsGalleryFolderBean>> callback) Returns the available galleries depending on the given resource types.- Parameters:
context
- the current subsiteresourceTypes
- the resource typescallback
- the callback
-
getInfoForResource
void getInfoForResource(String path, String locale, com.google.gwt.user.client.rpc.AsyncCallback<CmsResultItemBean> callback) Returns the resource info for a single resource.- Parameters:
path
- the resource pathlocale
- the content localecallback
- the callback
-
getSubEntries
void getSubEntries(String rootPath, boolean isRoot, String filter, com.google.gwt.user.client.rpc.AsyncCallback<List<CmsSitemapEntryBean>> callback) 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, only relevant when isRoot is truecallback
- the asynchronous callback
-
getSubFolders
void getSubFolders(String path, com.google.gwt.user.client.rpc.AsyncCallback<List<CmsVfsEntryBean>> callback) Gets the sub-folders of a folder.- Parameters:
path
- the path of a foldercallback
- the asynchronous callback
-
loadVfsEntryBean
void loadVfsEntryBean(String path, String filter, com.google.gwt.user.client.rpc.AsyncCallback<CmsVfsEntryBean> resultCallback) Loads the root VFS entry bean for the given site root.- Parameters:
path
- the site rootfilter
- the search filterresultCallback
- the callback for the result
-
saveResultViewType
void saveResultViewType(String resultViewType, com.google.gwt.user.client.rpc.AsyncCallback<Void> callback) Stores the result view type with the user.- Parameters:
resultViewType
- the result view typecallback
- the callback
-
saveTreeOpenState
void saveTreeOpenState(String treeName, String treeToken, String siteRoot, Set<CmsUUID> openItems, com.google.gwt.user.client.rpc.AsyncCallback<Void> callback) Saves the tree open state.- Parameters:
treeName
- the tree nametreeToken
- the tree tokensiteRoot
- the site rootopenItems
- the open itemscallback
- the result callback
-
updateIndex
Updates the offline indices.- Parameters:
callback
- the callback
-