Class ISClientRequester


  • public class ISClientRequester
    extends Object
    All the requests to the IS are implemented here.
    Author:
    Massimiliano Assante (ISTI-CNR), Daniele Strollo
    • 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.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
      • 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
      • getWSResources

        public static final List<String> getWSResources​(org.gcube.common.scope.impl.ScopeBean queryScope)
                                                 throws Exception
        Parameters:
        queryScope -
        Returns:
        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
      • XML2HTML

        public static String XML2HTML​(String xml,
                                      String xslt)
                               throws Exception
        transform an xml in a readable xml by using HTML
        Parameters:
        xml -
        xslt -
        Returns:
        Throws:
        Exception