|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.resourcemanagement.support.server.managers.scope.ScopeManager
public class ScopeManager
Scopes and their maps are persisted in this structure.
| Constructor Summary | |
|---|---|
ScopeManager()
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ScopeManager()
| Method Detail |
|---|
public static org.gcube.common.scope.impl.ScopeBean getScope(String scope)
throws Exception
Exceptionpublic static void setScopeConfigFile(String file)
public static Map<String,org.gcube.common.scope.impl.ScopeBean> getAvailableScopes()
throws Exception
Exceptionpublic static void clear()
public static void update()
throws Exception
Exception
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
IOExceptionpublic static Document getDocumentGivenXML(String result)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||