/**************************************************************************** * This software is part of the gCube Project. * Site: http://www.gcube-system.org/ **************************************************************************** * The gCube/gCore software is licensed as Free Open Source software * conveying to the EUPL (http://ec.europa.eu/idabc/eupl). * The software and documentation is provided by its authors/distributors * "as is" and no expressed or * implied warranty is given for its use, quality or fitness for a * particular case. **************************************************************************** * Filename: ServiceProxyAsync.java **************************************************************************** * @author Daniele Strollo ***************************************************************************/ package org.gcube.portlets.admin.resourcemanagement.client.remote; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import org.gcube.resourcemanagement.support.client.utils.CurrentStatus; import org.gcube.resourcemanagement.support.shared.operations.SupportedOperations; import org.gcube.resourcemanagement.support.shared.plugins.GenericResourcePlugin; import org.gcube.resourcemanagement.support.shared.types.Tuple; import org.gcube.resourcemanagement.support.shared.types.datamodel.CompleteResourceProfile; import org.gcube.resourcemanagement.support.shared.types.datamodel.ResourceDescriptor; import com.google.gwt.user.client.rpc.AsyncCallback; /** * The asynchronous representation of {@link ServiceProxy} interface. * Needed to implement the server side async RPC. * * @author Daniele Strollo (ISTI-CNR) */ public interface ServiceProxyAsync { void emptyCache(AsyncCallback callback); void setUseCache(boolean flag, AsyncCallback callback); void setSuperUser(boolean superUser, AsyncCallback callback); void setCurrentScope(String scope, AsyncCallback callback); void initStatus(AsyncCallback callback); void initScopes(boolean doClean, AsyncCallback callback); void addResourcesToScope(final String resType, final List resourceIDs, final String scope, AsyncCallback> callback); void removeResourcesFromScope(final String resType, final List resourceIDs, final String scope, AsyncCallback> callback); void deploy(final List ghnsID, final List servicesID, AsyncCallback callback); void checkDeployStatus(String scope, String deployID, AsyncCallback> callback); void getResourcesModel(String scope, String type, String subType, final List> additionalMaps, AsyncCallback> callback); void getGenericResourceDescriptor(String scope, String resID, AsyncCallback callback); /** * @see ServiceProxy#getAvailableScopes() */ void getAvailableScopes(AsyncCallback> callback); void getAvailableAddScopes(AsyncCallback> callback); void getResourceTypeTree(String scope, AsyncCallback>> callback); void getRelatedResources(String type, String id, String scope, AsyncCallback> callback); /** * @see ServiceProxy#getResourcesByType(String, String) */ void getResourcesByType(String scope, String type, AsyncCallback> callback); /** * @see ServiceProxy#getResourcesBySubType(String, String, String) */ void getResourcesBySubType(String scope, String type, String subtype, AsyncCallback> callback); /** * @see ServiceProxy#getWSResources(String) */ void getWSResources(String scope, AsyncCallback> callback); /** * @see ServiceProxy#getResourceByID(String, String, String) */ void getResourceByID(String scope, String type, String resID, AsyncCallback callback); void createGenericResource( final String id, final String name, final String description, final String body, final String subType, AsyncCallback callback); void updateGenericResource( final String id, final String name, final String description, final String body, final String subType, AsyncCallback callback); void getGenericResourcePlugins(AsyncCallback> callback); /*********************************************************** * RESOURCE OPERATIONS **********************************************************/ void doOperation(SupportedOperations opCode, String scope, List resources, AsyncCallback callback) throws Exception; void enableSuperUserMode(String password, AsyncCallback callback); }