Class ContextUtility


  • public class ContextUtility
    extends Object
    Author:
    Luca Frosini (ISTI-CNR)
    • Constructor Detail

      • ContextUtility

        public ContextUtility()
    • Method Detail

      • resetContex

        public static void resetContex()
      • setContextFromToken

        public static void setContextFromToken​(String token)
      • getCurrentContextName

        public static String getCurrentContextName()
      • getContextUUID

        public static UUID getContextUUID​(String token)
                                   throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • getContextName

        public static String getContextName​(String token)
      • getContextUUIDFromTokens

        public static SortedSet<UUID> getContextUUIDFromTokens​(Set<String> tokens)
                                                        throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
      • getContextNameFromUUID

        public static String getContextNameFromUUID​(UUID contextUUID)
                                             throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
        Throws:
        org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException