public class ScopeManager extends Object
Constructor and Description |
---|
ScopeManager() |
Modifier and Type | Method and Description |
---|---|
static void |
clear() |
static String |
fileToString(String path) |
static Map<String,org.gcube.common.scope.impl.ScopeBean> |
getAvailableScopes()
Refreshes the list of scopes and associated maps.
|
static Document |
getDocumentGivenXML(String result) |
static String |
getMapXML(org.gcube.common.scope.impl.ScopeBean searchvo)
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.
|
static org.gcube.common.scope.impl.ScopeBean |
getScope(String scope) |
protected static List<String> |
getVREFromVO(org.gcube.common.scope.impl.ScopeBean vo)
query the IS to get the VRE list given a VO
|
static LinkedHashMap<String,org.gcube.common.scope.impl.ScopeBean> |
readScopes(String confFile) |
static void |
setScopeConfigFile(String file) |
static void |
update() |
public static org.gcube.common.scope.impl.ScopeBean getScope(String scope) throws Exception
Exception
public static void setScopeConfigFile(String file)
public static Map<String,org.gcube.common.scope.impl.ScopeBean> getAvailableScopes() throws Exception
Exception
public static void clear()
public static LinkedHashMap<String,org.gcube.common.scope.impl.ScopeBean> readScopes(String confFile) throws Exception
confFile
- Exception
protected static List<String> getVREFromVO(org.gcube.common.scope.impl.ScopeBean vo) throws Exception
vo
- Exception
public static String getMapXML(org.gcube.common.scope.impl.ScopeBean searchvo) throws Exception
searchvo
- Exception
public static String fileToString(String path) throws IOException
IOException
Copyright © 2018. All Rights Reserved.