Class ISClientRequester
- java.lang.Object
-
- org.gcube.resourcemanagement.support.server.gcube.ISClientRequester
-
public class ISClientRequester extends Object
All the requests to the IS are implemented here.- Author:
- Massimiliano Assante (ISTI-CNR), Daniele Strollo
-
-
Constructor Summary
Constructors Constructor Description ISClientRequester()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidemptyCache()static Map<String,GenericResourcePlugin>getGenericResourcePlugins(org.gcube.common.scope.impl.ScopeBean scope)static HashMap<String,ArrayList<TMPluginFormField>>getGenericResourceTreeManagerPlugins(org.gcube.common.scope.impl.ScopeBean scope)get the plugins for tree managerstatic List<String>getRelatedResources(CacheManager status, String type, String id, org.gcube.common.scope.impl.ScopeBean queryScope)static CompleteResourceProfilegetResourceByID(String xmlFilePath, org.gcube.common.scope.impl.ScopeBean queryScope, String resType, String resID)static List<ResourceDescriptor>getResourceModels(org.gcube.common.scope.impl.ScopeBean queryScope, String type, String subType, List<Tuple<String>> additionalMaps)static List<String>getResourcesByType(CacheManager status, org.gcube.common.scope.impl.ScopeBean queryScope, String type, String subType)static HashMap<String,ArrayList<String>>getResourcesTree(CacheManager status, org.gcube.common.scope.impl.ScopeBean queryScope)For all the resource in the scope retrieves their (type, subtype) values.static List<String>getWSResources(org.gcube.common.scope.impl.ScopeBean queryScope)static StringXML2HTML(String xml, String xslt)transform an xml in a readable xml by using HTML
-
-
-
Method Detail
-
emptyCache
public static void emptyCache()
-
getResourcesTree
public static final HashMap<String,ArrayList<String>> getResourcesTree(CacheManager status, org.gcube.common.scope.impl.ScopeBean queryScope) throws Exception
For all the resource in the scope retrieves their (type, subtype) values. The result is a list of couples of that form.- Returns:
- a list of string tuples (type, subtype)
- Throws:
Exception
-
getRelatedResources
public static final List<String> getRelatedResources(CacheManager status, String type, String id, org.gcube.common.scope.impl.ScopeBean queryScope) throws Exception
- Throws:
Exception
-
getResourcesByType
public static final List<String> getResourcesByType(CacheManager status, org.gcube.common.scope.impl.ScopeBean queryScope, String type, String subType) throws Exception
- Parameters:
status-queryScope-type-subType-- Returns:
- Throws:
Exception
-
getResourceModels
public static final List<ResourceDescriptor> getResourceModels(org.gcube.common.scope.impl.ScopeBean queryScope, String type, String subType, List<Tuple<String>> additionalMaps) throws Exception
- Parameters:
queryScope-type-subType-additionalMaps-- Returns:
- Throws:
Exception
-
getWSResources
public static final List<String> getWSResources(org.gcube.common.scope.impl.ScopeBean queryScope) throws Exception
- Parameters:
queryScope-- Returns:
- Throws:
Exception
-
getResourceByID
public static final CompleteResourceProfile getResourceByID(String xmlFilePath, org.gcube.common.scope.impl.ScopeBean queryScope, String resType, String resID) throws Exception
- Parameters:
xmlFilePath-queryScope-resType-resID-- Returns:
- Throws:
Exception
-
getGenericResourcePlugins
public static Map<String,GenericResourcePlugin> getGenericResourcePlugins(org.gcube.common.scope.impl.ScopeBean scope) throws Exception
- Throws:
Exception
-
getGenericResourceTreeManagerPlugins
public static HashMap<String,ArrayList<TMPluginFormField>> getGenericResourceTreeManagerPlugins(org.gcube.common.scope.impl.ScopeBean scope) throws Exception
get the plugins for tree manager- Parameters:
scope-- Returns:
- a map containing the plugin name as key and a List of formfield
- Throws:
Exception
-
-