org.gcube.resourcemanagement.support.server.gcube
Class ISClientRequester

java.lang.Object
  extended by 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
ISClientRequester()
           
 
Method Summary
static void emptyCache()
           
static Map<String,GenericResourcePlugin> getGenericResourcePlugins(org.gcube.common.core.scope.GCUBEScope scope)
           
static HashMap<String,ArrayList<TMPluginFormField>> getGenericResourceTreeManagerPlugins(org.gcube.common.core.scope.GCUBEScope scope)
          get the plugins for tree manager
static List<String> getRelatedResources(CacheManager status, String type, String id, org.gcube.common.core.scope.GCUBEScope queryScope)
           
static CompleteResourceProfile getResourceByID(String xmlFilePath, org.gcube.common.core.scope.GCUBEScope queryScope, String resType, String resID)
           
static List<ResourceDescriptor> getResourceModels(org.gcube.common.core.scope.GCUBEScope queryScope, String type, String subType, List<Tuple<String>> additionalMaps)
           
static List<String> getResourcesByType(CacheManager status, org.gcube.common.core.scope.GCUBEScope queryScope, String type, String subType)
           
static HashMap<String,ArrayList<String>> getResourcesTree(CacheManager status, org.gcube.common.core.scope.GCUBEScope queryScope)
          For all the resource in the scope retrieves their (type, subtype) values.
static List<String> getWSResources(org.gcube.common.core.scope.GCUBEScope queryScope)
           
static String XML2HTML(String xml, String xslt)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ISClientRequester

public ISClientRequester()
Method Detail

emptyCache

public static void emptyCache()

getResourcesTree

public static final HashMap<String,ArrayList<String>> getResourcesTree(CacheManager status,
                                                                       org.gcube.common.core.scope.GCUBEScope 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.core.scope.GCUBEScope queryScope)
                                              throws Exception
Throws:
Exception

getResourcesByType

public static final List<String> getResourcesByType(CacheManager status,
                                                    org.gcube.common.core.scope.GCUBEScope queryScope,
                                                    String type,
                                                    String subType)
                                             throws Exception
Throws:
Exception

getResourceModels

public static final List<ResourceDescriptor> getResourceModels(org.gcube.common.core.scope.GCUBEScope queryScope,
                                                               String type,
                                                               String subType,
                                                               List<Tuple<String>> additionalMaps)
                                                        throws Exception
Throws:
Exception

getWSResources

public static final List<String> getWSResources(org.gcube.common.core.scope.GCUBEScope queryScope)
                                         throws Exception
Throws:
Exception

getResourceByID

public static final CompleteResourceProfile getResourceByID(String xmlFilePath,
                                                            org.gcube.common.core.scope.GCUBEScope queryScope,
                                                            String resType,
                                                            String resID)
                                                     throws Exception
Throws:
Exception

getGenericResourcePlugins

public static Map<String,GenericResourcePlugin> getGenericResourcePlugins(org.gcube.common.core.scope.GCUBEScope scope)
                                                                   throws Exception
Throws:
Exception

getGenericResourceTreeManagerPlugins

public static HashMap<String,ArrayList<TMPluginFormField>> getGenericResourceTreeManagerPlugins(org.gcube.common.core.scope.GCUBEScope 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

XML2HTML

public static String XML2HTML(String xml,
                              String xslt)
                       throws Exception
Throws:
Exception


Copyright © 2013. All Rights Reserved.