|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet
com.google.gwt.user.server.rpc.RemoteServiceServlet
org.gcube.portlets.admin.resourcemanagement.server.ServiceProxyImpl
public class ServiceProxyImpl
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet |
|---|
perThreadRequest, perThreadResponse |
| Constructor Summary | |
|---|---|
ServiceProxyImpl()
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class com.google.gwt.user.server.rpc.RemoteServiceServlet |
|---|
checkPermutationStrongName, doGetSerializationPolicy, getSerializationPolicy, onAfterResponseSerialized, onBeforeRequestDeserialized, processCall, processPost, shouldCompressResponse |
| Methods inherited from class com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet |
|---|
doPost, doUnexpectedFailure, getPermutationStrongName, getThreadLocalRequest, getThreadLocalResponse, onAfterRequestDeserialized, readContent |
| Methods inherited from class javax.servlet.http.HttpServlet |
|---|
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
| Methods inherited from class javax.servlet.GenericServlet |
|---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServiceProxyImpl()
| Method Detail |
|---|
public 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 ServiceProxy
public final org.gcube.resourcemanagement.support.shared.types.Tuple<String> addResourcesToScope(String resType,
List<String> resourceIDs,
String scope)
throws Exception
addResourcesToScope in interface ServiceProxyException
public final org.gcube.resourcemanagement.support.shared.types.Tuple<String> removeResourcesFromScope(String resType,
List<String> resourceIDs,
String scope)
throws Exception
removeResourcesFromScope in interface ServiceProxyException
public final String deploy(List<String> ghnsID,
List<String> servicesID)
throws Exception
deploy in interface ServiceProxyException
public 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 ServiceProxy
public final HashMap<String,ArrayList<String>> getResourceTypeTree(String scope)
throws Exception
ServiceProxy
getResourceTypeTree in interface ServiceProxyscope - the scope of resources
Exceptionorg.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 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
ServiceProxy
getGenericResourceDescriptor in interface ServiceProxyException
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 ServiceProxyExceptionpublic final List<String> getWSResources(String scope)
ServiceProxy
getWSResources in interface ServiceProxyscope - the scope of resources
public final List<String> getResourcesBySubType(String scope,
String type,
String subtype)
ServiceProxy
getResourcesBySubType 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)
ServiceProxy
getResourceByID in interface ServiceProxyscope - the scope of the resourcetype - the type of the searched resource (e.g. GHN, RunningInstance, ...)resID - the unique identifier of the resource
public final String createGenericResource(String ID,
String name,
String description,
String body,
String subType)
throws Exception
createGenericResource in interface ServiceProxyException
public final void updateGenericResource(String ID,
String name,
String description,
String body,
String subType)
throws Exception
updateGenericResource in interface ServiceProxyExceptionpublic 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 ServiceProxyException
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 ServiceProxyInvalidParameterException
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||