Class ContextUtility
java.lang.Object
org.gcube.informationsystem.resourceregistry.contexts.ContextUtility
- Author:
- Luca Frosini (ISTI - CNR)
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddInstanceEnvironment(InstanceEnvironment instanceEnvironment) static Stringstatic com.orientechnologies.orient.core.db.document.ODatabaseDocumentstatic InstanceEnvironmentstatic StringgetEnvironmentByUUID(UUID uuid) static ContextUtilitygetRequestEnvironmentByContextFullName(String fullName)
-
Method Details
-
getInstance
-
getCurrentContextFullName
-
getCurrentRequestEnvironment
public static InstanceEnvironment getCurrentRequestEnvironment() throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException- Throws:
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
-
getCurrentUserUsername
-
addInstanceEnvironment
-
getRequestEnvironmentByContextFullName
public InstanceEnvironment getRequestEnvironmentByContextFullName(String fullName) throws org.gcube.informationsystem.resourceregistry.api.exceptions.contexts.ContextException - Throws:
org.gcube.informationsystem.resourceregistry.api.exceptions.contexts.ContextException
-
getEnvironmentByUUID
public InstanceEnvironment getEnvironmentByUUID(UUID uuid) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException - Throws:
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
-
getCurrentODatabaseDocumentFromThreadLocal
public static com.orientechnologies.orient.core.db.document.ODatabaseDocument getCurrentODatabaseDocumentFromThreadLocal()
-