org.opencms.ade.galleries.shared.rpc
Interface I_CmsGalleryServiceAsync


public interface I_CmsGalleryServiceAsync

Handles all RPC services related to the gallery dialog.

Since:
8.0.0
See Also:
CmsGalleryService, I_CmsGalleryService, I_CmsGalleryServiceAsync

Method Summary
 void deleteResource(java.lang.String resourcePath, com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Void> callback)
          Deletes the given resource.
 void getGalleries(java.util.List<java.lang.String> resourceTypes, com.google.gwt.user.client.rpc.AsyncCallback<java.util.List<CmsGalleryFolderBean>> callback)
          Returns the available galleries depending on the given resource types.
 void getInitialSettings(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 getSubFolders(java.lang.String path, com.google.gwt.user.client.rpc.AsyncCallback<java.util.List<CmsVfsEntryBean>> callback)
          Gets the sub-folders of a folder.
 

Method Detail

deleteResource

void deleteResource(java.lang.String resourcePath,
                    com.google.gwt.user.client.rpc.AsyncCallback<java.lang.Void> callback)
Deletes the given resource.

Parameters:
resourcePath - the resource path of the resource to delete
callback - the callback

getGalleries

void getGalleries(java.util.List<java.lang.String> resourceTypes,
                  com.google.gwt.user.client.rpc.AsyncCallback<java.util.List<CmsGalleryFolderBean>> callback)
Returns the available galleries depending on the given resource types.

Parameters:
resourceTypes - the resource types
callback - the callback

getInitialSettings

void getInitialSettings(com.google.gwt.user.client.rpc.AsyncCallback<CmsGalleryDataBean> callback)
Returns the initial data for the given gallery mode.

Parameters:
callback - the callback

getSearch

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.

Parameters:
data - the data bean
callback - the callback

getSearch

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.

Parameters:
searchObj - the current search object
callback - the callback

getSubFolders

void getSubFolders(java.lang.String path,
                   com.google.gwt.user.client.rpc.AsyncCallback<java.util.List<CmsVfsEntryBean>> callback)
Gets the sub-folders of a folder.

Parameters:
path - the path of a folder
callback - the asynchronous callback