public class ServiceProxyImpl extends com.google.gwt.user.server.rpc.RemoteServiceServlet implements ServiceProxy
Constructor and Description |
---|
ServiceProxyImpl() |
Modifier and Type | Method and Description |
---|---|
org.gcube.resourcemanagement.support.shared.types.Tuple<String> |
addResourcesToScope(String resType,
List<String> resourceIDs,
String scope) |
org.gcube.resourcemanagement.support.shared.types.Tuple<String> |
checkDeployStatus(String scope,
String deployID) |
String |
createGenericResource(String ID,
String name,
String description,
String body,
String subType) |
String |
deploy(List<String> ghnsID,
List<String> servicesID) |
void |
doOperation(org.gcube.resourcemanagement.support.shared.operations.SupportedOperations opCode,
String scope,
List<org.gcube.resourcemanagement.support.shared.types.datamodel.ResourceDescriptor> resources)
RESOURCE OPERATIONS
|
void |
emptyCache() |
List<String> |
getAvailableAddScopes() |
List<String> |
getAvailableScopes() |
org.gcube.resourcemanagement.support.shared.types.datamodel.ResourceDescriptor |
getGenericResourceDescriptor(String scope,
String resID)
Used for generic resource editing form to retrieve the profile.
|
Map<String,org.gcube.resourcemanagement.support.shared.plugins.GenericResourcePlugin> |
getGenericResourcePlugins() |
List<String> |
getRelatedResources(String type,
String id,
String scope)
Given a type retrieves its related resources.
|
org.gcube.resourcemanagement.support.shared.types.datamodel.CompleteResourceProfile |
getResourceByID(String scope,
String type,
String resID)
Retrieves the XML profiles and its HTML representation of
a resource given its unique identifier and its type.
|
List<String> |
getResourcesBySubType(String scope,
String type,
String subtype)
Filters the resources in a given scope by their type and subtype.
|
List<String> |
getResourcesByType(String scope,
String type)
For a given type returns all the resources defined in the IS having
the chosen type.
|
List<org.gcube.resourcemanagement.support.shared.types.datamodel.ResourceDescriptor> |
getResourcesModel(String scope,
String type,
String subType,
List<org.gcube.resourcemanagement.support.shared.types.Tuple<String>> additionalMaps) |
HashMap<String,ArrayList<String>> |
getResourceTypeTree(String scope)
Given a scope, provides the set of (Type, SubType) couples
defining resources in the system.
|
List<String> |
getWSResources(String scope)
Returns the list of WSResources
|
void |
initScopes(boolean doClean) |
org.gcube.resourcemanagement.support.client.utils.CurrentStatus |
initStatus()
Called by portlet at module instantiation
|
org.gcube.resourcemanagement.support.shared.types.Tuple<String> |
removeResourcesFromScope(String resType,
List<String> resourceIDs,
String scope)
REMOVE FROM SCOPE
|
void |
setCurrentScope(String scope)
This way the servlet stores the scope in the session.
|
void |
setSuperUser(boolean superUser) |
void |
setUseCache(boolean flag) |
void |
updateGenericResource(String ID,
String name,
String description,
String body,
String subType) |
checkPermutationStrongName, doGetSerializationPolicy, getSerializationPolicy, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, processPost, shouldCompressResponse
doPost, doUnexpectedFailure, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContent
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service
public final void emptyCache()
emptyCache
in interface ServiceProxy
public final void setUseCache(boolean flag)
setUseCache
in interface ServiceProxy
public final void setSuperUser(boolean superUser)
setSuperUser
in interface ServiceProxy
public final org.gcube.resourcemanagement.support.client.utils.CurrentStatus initStatus()
initStatus
in interface ServiceProxy
public final void initScopes(boolean doClean)
initScopes
in interface ServiceProxy
public final org.gcube.resourcemanagement.support.shared.types.Tuple<String> addResourcesToScope(String resType, List<String> resourceIDs, String scope) throws Exception
addResourcesToScope
in interface ServiceProxy
Exception
public final org.gcube.resourcemanagement.support.shared.types.Tuple<String> removeResourcesFromScope(String resType, List<String> resourceIDs, String scope) throws Exception
removeResourcesFromScope
in interface ServiceProxy
Exception
public final String deploy(List<String> ghnsID, List<String> servicesID) throws Exception
deploy
in interface ServiceProxy
Exception
public final org.gcube.resourcemanagement.support.shared.types.Tuple<String> checkDeployStatus(String scope, String deployID) throws Exception
checkDeployStatus
in interface ServiceProxy
Exception
public final List<String> getAvailableScopes()
getAvailableScopes
in interface ServiceProxy
public final List<String> getAvailableAddScopes()
getAvailableAddScopes
in interface ServiceProxy
public final HashMap<String,ArrayList<String>> getResourceTypeTree(String scope) throws Exception
ServiceProxy
getResourceTypeTree
in interface ServiceProxy
scope
- the scope of resourcesException
org.gcube.portlets.admin.resourcemanagement.server.gcube.services.ISClientRequester#getResourcesTypes(org.gcube.common.core.scope.GCUBEScope)
public final List<String> getRelatedResources(String type, String id, String scope)
ServiceProxy
getRelatedResources
in interface ServiceProxy
public final List<String> getResourcesByType(String scope, String type)
ServiceProxy
getResourcesByType
in interface ServiceProxy
scope
- the scope of resourcestype
- the type of searched resources (e.g. GHN, RunningInstance, ...)public final org.gcube.resourcemanagement.support.shared.types.datamodel.ResourceDescriptor getGenericResourceDescriptor(String scope, String resID) throws Exception
ServiceProxy
getGenericResourceDescriptor
in interface ServiceProxy
Exception
public final List<org.gcube.resourcemanagement.support.shared.types.datamodel.ResourceDescriptor> getResourcesModel(String scope, String type, String subType, List<org.gcube.resourcemanagement.support.shared.types.Tuple<String>> additionalMaps) throws Exception
getResourcesModel
in interface ServiceProxy
Exception
public final List<String> getWSResources(String scope)
ServiceProxy
getWSResources
in interface ServiceProxy
scope
- the scope of resourcespublic final List<String> getResourcesBySubType(String scope, String type, String subtype)
ServiceProxy
getResourcesBySubType
in interface ServiceProxy
scope
- the scope of resourcestype
- the type of searched resources (e.g. GHN, RunningInstance, ...)subtype
- the subtype of search resources (e.g. for GHN is its domain).public final org.gcube.resourcemanagement.support.shared.types.datamodel.CompleteResourceProfile getResourceByID(String scope, String type, String resID)
ServiceProxy
getResourceByID
in interface ServiceProxy
scope
- the scope of the resourcetype
- the type of the searched resource (e.g. GHN, RunningInstance, ...)resID
- the unique identifier of the resourcepublic final String createGenericResource(String ID, String name, String description, String body, String subType) throws Exception
createGenericResource
in interface ServiceProxy
Exception
public final void updateGenericResource(String ID, String name, String description, String body, String subType) throws Exception
updateGenericResource
in interface ServiceProxy
Exception
public final void setCurrentScope(String scope)
ServiceProxy
setCurrentScope
in interface ServiceProxy
public final Map<String,org.gcube.resourcemanagement.support.shared.plugins.GenericResourcePlugin> getGenericResourcePlugins() throws Exception
getGenericResourcePlugins
in interface ServiceProxy
Exception
public final void doOperation(org.gcube.resourcemanagement.support.shared.operations.SupportedOperations opCode, String scope, List<org.gcube.resourcemanagement.support.shared.types.datamodel.ResourceDescriptor> resources) throws Exception
doOperation
in interface ServiceProxy
InvalidParameterException
Exception
Copyright © 2015. All Rights Reserved.