Class ContextManager


  • public class ContextManager
    extends Object
    Context and their maps are persisted in this structure.
    Author:
    Massimiliano Assante (ISTI-CNR)
    • Constructor Detail

      • ContextManager

        public ContextManager()
    • Method Detail

      • getContext

        public static org.gcube.common.scope.impl.ScopeBean getContext​(String context)
                                                                throws Exception
        Throws:
        Exception
      • getAvailableContexts

        public static Map<String,​org.gcube.common.scope.impl.ScopeBean> getAvailableContexts()
                                                                                            throws Exception
        Refreshes the list of scopes and associated maps.
        Throws:
        Exception
      • clear

        public static void clear()
      • getVREFromVO

        protected static List<String> getVREFromVO​(org.gcube.common.scope.impl.ScopeBean vo)
                                            throws Exception
        query the IS to get the VRE list given a VO
        Parameters:
        vo -
        Returns:
        Throws:
        Exception
      • getVREResourcesFromVO

        protected static List<org.gcube.common.resources.gcore.GenericResource> getVREResourcesFromVO​(org.gcube.common.scope.impl.ScopeBean vo)
                                                                                               throws Exception
        query the IS to get the VRE list given a VO
        Parameters:
        vo -
        Returns:
        Throws:
        Exception
      • getMapXML

        public static String getMapXML​(org.gcube.common.scope.impl.ScopeBean searchvo)
                                throws Exception
        Given a context, if it is a VO or an infrastructure, the corresponding map file is retrieved from the globus location and the contained xml representation is returned.
        Parameters:
        searchvo -
        Returns:
        Throws:
        Exception
      • getDocumentGivenXML

        public static Document getDocumentGivenXML​(String result)