Nuxeo Enterprise Platform 5.4

org.nuxeo.opensocial.container.client.service.api
Interface ContainerServiceAsync


public interface ContainerServiceAsync

ContainerServiceAsync

Author:
Guillaume Cusnieux

Method Summary
 void addGadget(String gadgetName, Map<String,String> gwtParams, com.google.gwt.user.client.rpc.AsyncCallback<GadgetBean> callback)
          Add gadget
 void getContainer(Map<String,String> gwtParams, com.google.gwt.user.client.rpc.AsyncCallback<Container> callback)
          Retrieve a specific container
 void getGadgetList(Map<String,String> gwtParams, com.google.gwt.user.client.rpc.AsyncCallback<Map<String,List<String>>> asyncCallback)
          Get collection of gadget name sorted by category
 void removeGadget(GadgetBean gadget, Map<String,String> gwtParams, com.google.gwt.user.client.rpc.AsyncCallback<GadgetBean> callback)
          Remove gadget
 void saveGadget(GadgetBean gadgetBean, Map<String,String> gwtParams, com.google.gwt.user.client.rpc.AsyncCallback<GadgetBean> callback)
          Save Gadget
 void saveGadgetPreferences(GadgetBean gadget, String form, Map<String,String> gwtParams, com.google.gwt.user.client.rpc.AsyncCallback<GadgetBean> callback)
          Save preferences of gadget with form parameter
 void saveGadgetsCollection(Collection<GadgetBean> collection, Map<String,String> gwtParams, com.google.gwt.user.client.rpc.AsyncCallback<Boolean> callback)
          Save collection of gadgets
 void saveLayout(Map<String,String> gwtParams, String layout, com.google.gwt.user.client.rpc.AsyncCallback<Container> callback)
          Save layout of container
 

Method Detail

getContainer

void getContainer(Map<String,String> gwtParams,
                  com.google.gwt.user.client.rpc.AsyncCallback<Container> callback)
Retrieve a specific container

Parameters:
gwtParams -
AsyncCallback -
Throws:
ContainerServiceException

saveLayout

void saveLayout(Map<String,String> gwtParams,
                String layout,
                com.google.gwt.user.client.rpc.AsyncCallback<Container> callback)
Save layout of container

Parameters:
gwtParams -
layoutName -
AsyncCallback -

saveGadgetPreferences

void saveGadgetPreferences(GadgetBean gadget,
                           String form,
                           Map<String,String> gwtParams,
                           com.google.gwt.user.client.rpc.AsyncCallback<GadgetBean> callback)
Save preferences of gadget with form parameter

Parameters:
gadget -
form - : new preferences
gwtParams -
AsyncCallback -

removeGadget

void removeGadget(GadgetBean gadget,
                  Map<String,String> gwtParams,
                  com.google.gwt.user.client.rpc.AsyncCallback<GadgetBean> callback)
Remove gadget

Parameters:
gadget -
gwtParams -
AsyncCallback -

addGadget

void addGadget(String gadgetName,
               Map<String,String> gwtParams,
               com.google.gwt.user.client.rpc.AsyncCallback<GadgetBean> callback)
Add gadget

Parameters:
gadgetName -
gwtParams -
AsyncCallback -

saveGadgetsCollection

void saveGadgetsCollection(Collection<GadgetBean> collection,
                           Map<String,String> gwtParams,
                           com.google.gwt.user.client.rpc.AsyncCallback<Boolean> callback)
Save collection of gadgets

Parameters:
collection -
gwtParams -
AsyncCallback -

saveGadget

void saveGadget(GadgetBean gadgetBean,
                Map<String,String> gwtParams,
                com.google.gwt.user.client.rpc.AsyncCallback<GadgetBean> callback)
Save Gadget

Parameters:
gadget -
gwtParams -
AsyncCallback -

getGadgetList

void getGadgetList(Map<String,String> gwtParams,
                   com.google.gwt.user.client.rpc.AsyncCallback<Map<String,List<String>>> asyncCallback)
Get collection of gadget name sorted by category

Parameters:
gwtParams -
AsyncCallback - >>

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.