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, getCodeServerPolicyUrl, getRequestModuleBasePath, getSerializationPolicy, init, loadPolicyFromCodeServer, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, processCall, processPost, shouldCompressResponsedoPost, doUnexpectedFailure, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContentdoDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, servicepublic final void emptyCache()
emptyCache in interface ServiceProxypublic final void setUseCache(boolean flag)
setUseCache in interface ServiceProxypublic final void setSuperUser(boolean superUser)
setSuperUser in interface ServiceProxypublic final org.gcube.resourcemanagement.support.client.utils.CurrentStatus initStatus()
initStatus in interface ServiceProxypublic final void initScopes(boolean doClean)
initScopes in interface ServiceProxypublic final org.gcube.resourcemanagement.support.shared.types.Tuple<String> addResourcesToScope(String resType, List<String> resourceIDs, String scope) throws Exception
addResourcesToScope in interface ServiceProxyExceptionpublic final org.gcube.resourcemanagement.support.shared.types.Tuple<String> removeResourcesFromScope(String resType, List<String> resourceIDs, String scope) throws Exception
removeResourcesFromScope in interface ServiceProxyExceptionpublic final String deploy(List<String> ghnsID, List<String> servicesID) throws Exception
deploy in interface ServiceProxyExceptionpublic final org.gcube.resourcemanagement.support.shared.types.Tuple<String> checkDeployStatus(String scope, String deployID) throws Exception
checkDeployStatus in interface ServiceProxyExceptionpublic final List<String> getAvailableScopes()
getAvailableScopes in interface ServiceProxypublic final List<String> getAvailableAddScopes()
getAvailableAddScopes in interface ServiceProxypublic final HashMap<String,ArrayList<String>> getResourceTypeTree(String scope) throws Exception
ServiceProxygetResourceTypeTree in interface ServiceProxyscope - the scope of resourcesExceptionorg.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)
ServiceProxygetRelatedResources in interface ServiceProxypublic final List<String> getResourcesByType(String scope, String type)
ServiceProxygetResourcesByType in interface ServiceProxyscope - 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
ServiceProxygetGenericResourceDescriptor in interface ServiceProxyExceptionpublic 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 ServiceProxyExceptionpublic final List<String> getWSResources(String scope)
ServiceProxygetWSResources in interface ServiceProxyscope - the scope of resourcespublic final List<String> getResourcesBySubType(String scope, String type, String subtype)
ServiceProxygetResourcesBySubType in interface ServiceProxyscope - 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)
ServiceProxygetResourceByID in interface ServiceProxyscope - 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 ServiceProxyExceptionpublic final void updateGenericResource(String ID, String name, String description, String body, String subType) throws Exception
updateGenericResource in interface ServiceProxyExceptionpublic final void setCurrentScope(String scope)
ServiceProxysetCurrentScope in interface ServiceProxypublic final Map<String,org.gcube.resourcemanagement.support.shared.plugins.GenericResourcePlugin> getGenericResourcePlugins() throws Exception
getGenericResourcePlugins in interface ServiceProxyExceptionpublic 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 ServiceProxyInvalidParameterExceptionExceptionCopyright © 2015. All Rights Reserved.