public class ContextUtility extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
addSecurityContext(SecurityContext securityContext) |
void |
addSecurityContext(String fullname,
SecurityContext securityContext) |
static AdminSecurityContext |
getAdminSecurityContext() |
protected UUID |
getContextUUIDFromFullName(String fullName) |
static com.orientechnologies.orient.core.db.document.ODatabaseDocument |
getCurrentODatabaseDocumentFromThreadLocal() |
static SecurityContext |
getCurrentSecurityContext() |
static InheritableThreadLocal<Boolean> |
getHierarchicMode() |
static ContextUtility |
getInstance() |
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)
public SecurityContext getSecurityContextByUUID(UUID uuid) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionpublic static com.orientechnologies.orient.core.db.document.ODatabaseDocument getCurrentODatabaseDocumentFromThreadLocal()
Copyright © 2020. All Rights Reserved.