java.lang.Object
org.gcube.informationsystem.resourceregistry.contexts.ContextUtility

public class ContextUtility extends Object
Author:
Luca Frosini (ISTI - CNR)
  • Method Details

    • getInstance

      public static ContextUtility getInstance()
    • getCurrentContextFullName

      public static String getCurrentContextFullName()
    • getCurrentRequestEnvironment

      public static InstanceEnvironment getCurrentRequestEnvironment() throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      Throws:
      org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
    • getCurrentUserUsername

      public static String getCurrentUserUsername()
    • addInstanceEnvironment

      public void addInstanceEnvironment(InstanceEnvironment instanceEnvironment)
    • 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()