public class ContextUtility extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
addSecurityContext(SecurityContext securityContext) |
void |
addSecurityContext(String fullname,
SecurityContext securityContext) |
static AdminSecurityContext |
getAdminSecurityContext() |
static SecurityContext |
getCurrentSecurityContext() |
static InheritableThreadLocal<Boolean> |
getHierarchicMode() |
static ContextUtility |
getInstance() |
protected SecurityContext |
getSecurityContextByUUID(UUID uuid) |
void |
removeFromCache(UUID uuid,
boolean fullNameOnly) |
public static ContextUtility getInstance()
public static InheritableThreadLocal<Boolean> getHierarchicMode()
public static SecurityContext getCurrentSecurityContext() throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic static AdminSecurityContext getAdminSecurityContext() throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic void removeFromCache(UUID uuid, boolean fullNameOnly) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic void addSecurityContext(SecurityContext securityContext)
public void addSecurityContext(String fullname, SecurityContext securityContext)
protected SecurityContext getSecurityContextByUUID(UUID uuid) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionCopyright © 2017. All Rights Reserved.