Class ScopeManager


  • public class ScopeManager
    extends Object
    Scopes and their maps are persisted in this structure.
    Author:
    Massimiliano Assante (ISTI-CNR), Daniele Strollo
    • Constructor Detail

      • ScopeManager

        public ScopeManager()
    • Method Detail

      • getScope

        public static org.gcube.common.scope.impl.ScopeBean getScope​(String scope)
                                                              throws Exception
        Throws:
        Exception
      • setScopeConfigFile

        public static void setScopeConfigFile​(String file)
      • getAvailableScopes

        public static Map<String,​org.gcube.common.scope.impl.ScopeBean> getAvailableScopes()
                                                                                          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
      • getMapXML

        public static String getMapXML​(org.gcube.common.scope.impl.ScopeBean searchvo)
                                throws Exception
        Given a scope, 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)