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


public interface I_CmsPreviewServiceAsync

Handles the common RPC services related to the gallery preview dialog.

Since:
8.0.0
See Also:
CmsPreviewService, I_CmsPreviewService, I_CmsPreviewServiceAsync

Method Summary
 void getImageInfo(java.lang.String resourcePath, java.lang.String locale, com.google.gwt.user.client.rpc.AsyncCallback<CmsImageInfoBean> callback)
          Returns the image resource data to be displayed in the preview dialog.
 void getResourceInfo(java.lang.String resourcePath, java.lang.String locale, com.google.gwt.user.client.rpc.AsyncCallback<CmsResourceInfoBean> callback)
          Returns the data to be displayed in the preview dialog.
 void syncGetImageInfo(java.lang.String resourcePath, java.lang.String locale, com.google.gwt.user.client.rpc.AsyncCallback<CmsImageInfoBean> callback)
          Returns the image resource data to be displayed in the preview dialog.
 void updateImageProperties(java.lang.String resourcePath, java.lang.String locale, java.util.Map<java.lang.String,java.lang.String> properties, com.google.gwt.user.client.rpc.AsyncCallback<CmsImageInfoBean> callback)
          Saves the given properties to the resource and returns the data to be displayed in the preview dialog.
 void updateResourceProperties(java.lang.String resourcePath, java.lang.String locale, java.util.Map<java.lang.String,java.lang.String> properties, com.google.gwt.user.client.rpc.AsyncCallback<CmsResourceInfoBean> callback)
          Saves the given properties to the resource and returns the data to be displayed in the preview dialog.
 

Method Detail

getImageInfo

void getImageInfo(java.lang.String resourcePath,
                  java.lang.String locale,
                  com.google.gwt.user.client.rpc.AsyncCallback<CmsImageInfoBean> callback)
Returns the image resource data to be displayed in the preview dialog.

Parameters:
resourcePath - the resource path
locale - the content locale
callback - the call-back

getResourceInfo

void getResourceInfo(java.lang.String resourcePath,
                     java.lang.String locale,
                     com.google.gwt.user.client.rpc.AsyncCallback<CmsResourceInfoBean> callback)
Returns the data to be displayed in the preview dialog.

Parameters:
resourcePath - the path to the selected resource
locale - the content locale
callback - the call-back

syncGetImageInfo

@SynchronizedRpcRequest
void syncGetImageInfo(java.lang.String resourcePath,
                                             java.lang.String locale,
                                             com.google.gwt.user.client.rpc.AsyncCallback<CmsImageInfoBean> callback)
Returns the image resource data to be displayed in the preview dialog.

Parameters:
resourcePath - the resource path
locale - the content locale
callback - the call-back

updateImageProperties

void updateImageProperties(java.lang.String resourcePath,
                           java.lang.String locale,
                           java.util.Map<java.lang.String,java.lang.String> properties,
                           com.google.gwt.user.client.rpc.AsyncCallback<CmsImageInfoBean> callback)
Saves the given properties to the resource and returns the data to be displayed in the preview dialog.

Parameters:
resourcePath - the path to the selected resource
locale - the content locale
properties - a map with the key/value pairs of the properties to be updated
callback - the call-back

updateResourceProperties

void updateResourceProperties(java.lang.String resourcePath,
                              java.lang.String locale,
                              java.util.Map<java.lang.String,java.lang.String> properties,
                              com.google.gwt.user.client.rpc.AsyncCallback<CmsResourceInfoBean> callback)
Saves the given properties to the resource and returns the data to be displayed in the preview dialog.

Parameters:
resourcePath - the path to the selected resource
locale - the content locale
properties - a map with the key/value pairs of the properties to be updated
callback - the call-back