org.gcube.resourcemanagement.support.server.managers.scope
Class ScopeManager
java.lang.Object
org.gcube.resourcemanagement.support.server.managers.scope.ScopeManager
public class ScopeManager
- extends Object
Scopes and their maps are persisted in this structure.
- Author:
- Massimiliano Assante (ISTI-CNR), Daniele Strollo
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScopeManager
public ScopeManager()
getScope
public static org.gcube.common.core.scope.GCUBEScope getScope(String scope)
throws Exception
- Throws:
Exception
setScopeConfigFile
public static void setScopeConfigFile(String file)
getAvailableScopes
public static Map<String,org.gcube.common.core.scope.GCUBEScope> getAvailableScopes()
throws Exception
- Refreshes the list of scopes and associated maps.
- Throws:
Exception
clear
public static void clear()
update
public static void update()
throws Exception
- Throws:
Exception
getVREFromVO
protected static List<org.gcube.common.core.scope.VRE> getVREFromVO(org.gcube.common.core.scope.VO vo)
throws Exception
- Throws:
Exception
getMapXML
public static String getMapXML(org.gcube.common.core.scope.GCUBEScope 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
fileToString
public static String fileToString(String path)
throws IOException
- Throws:
IOException
getDocumentGivenXML
public static Document getDocumentGivenXML(String result)
Copyright © 2013. All Rights Reserved.