public class ContextUtility extends Object
| Constructor and Description |
|---|
ContextUtility() |
| Modifier and Type | Method and Description |
|---|---|
static SortedSet<String> |
getContextFullNamesFromTokens(Set<String> tokens) |
static String |
getContextName(String token) |
static String |
getContextNameFromUUID(UUID contextUUID) |
static UUID |
getContextUUID(String token) |
static SortedSet<UUID> |
getContextUUIDFromTokens(Set<String> tokens) |
static String |
getCurrentContextName() |
static void |
resetContex() |
static void |
setContextFromToken(String token) |
public static void resetContex()
public static void setContextFromToken(String token)
public static String getCurrentContextName()
public static UUID getContextUUID(String token) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic static SortedSet<String> getContextFullNamesFromTokens(Set<String> tokens)
public static SortedSet<UUID> getContextUUIDFromTokens(Set<String> tokens) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionCopyright © 2022. All Rights Reserved.