public class ContextManager extends Object
Constructor and Description |
---|
ContextManager() |
Modifier and Type | Method and Description |
---|---|
static void |
clear() |
static Map<String,org.gcube.common.scope.impl.ScopeBean> |
getAvailableContexts()
Refreshes the list of scopes and associated maps.
|
static org.gcube.common.scope.impl.ScopeBean |
getContext(String context) |
static Document |
getDocumentGivenXML(String result) |
static String |
getMapXML(org.gcube.common.scope.impl.ScopeBean searchvo)
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.
|
protected static List<String> |
getVREFromVO(org.gcube.common.scope.impl.ScopeBean vo)
query the IS to get the VRE list given a VO
|
protected static List<org.gcube.common.resources.gcore.GenericResource> |
getVREResourcesFromVO(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> |
readContexts() |
static LinkedHashMap<String,D4SEnvironment> |
readContextsWithUUIDs() |
static void |
update() |
public static org.gcube.common.scope.impl.ScopeBean getContext(String context) throws Exception
Exception
public static Map<String,org.gcube.common.scope.impl.ScopeBean> getAvailableContexts() throws Exception
Exception
public static void clear()
public static LinkedHashMap<String,org.gcube.common.scope.impl.ScopeBean> readContexts() throws Exception
confFile
- Exception
public static LinkedHashMap<String,D4SEnvironment> readContextsWithUUIDs() throws Exception
confFile
- Exception
protected static List<String> getVREFromVO(org.gcube.common.scope.impl.ScopeBean vo) throws Exception
vo
- Exception
protected static List<org.gcube.common.resources.gcore.GenericResource> getVREResourcesFromVO(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
Copyright © 2019. All Rights Reserved.