org.xwiki.gwt.wysiwyg.client.plugin.macro
Class MacroServiceAsyncCacheProxy

java.lang.Object
  extended by org.xwiki.gwt.wysiwyg.client.plugin.macro.MacroServiceAsyncCacheProxy
All Implemented Interfaces:
MacroServiceAsync

public class MacroServiceAsyncCacheProxy
extends Object
implements MacroServiceAsync

Cache proxy for MacroServiceAsync.

Version:
$Id: 45747c05f33f9dbd592b520a95a2881479517e24 $

Constructor Summary
MacroServiceAsyncCacheProxy(MacroServiceAsync service)
          Creates a new cache proxy for the given service.
 
Method Summary
 void getMacroDescriptor(String macroId, String syntaxId, com.google.gwt.user.client.rpc.AsyncCallback<MacroDescriptor> async)
          Makes a request to the server to get the descriptor for the specified macro.
 void getMacroDescriptors(String syntaxId, com.google.gwt.user.client.rpc.AsyncCallback<List<MacroDescriptor>> async)
          Makes a request to the server to get all the macro descriptors for the specified syntax.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MacroServiceAsyncCacheProxy

public MacroServiceAsyncCacheProxy(MacroServiceAsync service)
Creates a new cache proxy for the given service.

Parameters:
service - the service to be cached
Method Detail

getMacroDescriptor

public void getMacroDescriptor(String macroId,
                               String syntaxId,
                               com.google.gwt.user.client.rpc.AsyncCallback<MacroDescriptor> async)
Makes a request to the server to get the descriptor for the specified macro.

Specified by:
getMacroDescriptor in interface MacroServiceAsync
Parameters:
macroId - a macro identifier
syntaxId - a syntax identifier
async - the call-back to be used for notifying the caller after receiving the response from the server
See Also:
MacroServiceAsync.getMacroDescriptor(String, String, AsyncCallback)

getMacroDescriptors

public void getMacroDescriptors(String syntaxId,
                                com.google.gwt.user.client.rpc.AsyncCallback<List<MacroDescriptor>> async)
Makes a request to the server to get all the macro descriptors for the specified syntax.

Specified by:
getMacroDescriptors in interface MacroServiceAsync
Parameters:
syntaxId - a syntax identifier
async - the call-back to be used for notifying the caller after receiving the response from the server
See Also:
MacroServiceAsync.getMacroDescriptors(String, AsyncCallback)


Copyright © 2004-2013 XWiki. All Rights Reserved.