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 String |
getCurrentContextFullName() |
static com.orientechnologies.orient.core.db.document.ODatabaseDocument |
getCurrentODatabaseDocumentFromThreadLocal() |
static SecurityContext |
getCurrentSecurityContext() |
static InheritableThreadLocal<Boolean> |
getHierarchicalMode() |
static InheritableThreadLocal<Boolean> |
getIncludeInstanceContexts() |
static ContextUtility |
getInstance() |
SecurityContext |
getSecurityContextByFullName(String fullName) |
SecurityContext |
getSecurityContextByUUID(UUID uuid) |
public static ContextUtility getInstance()
public static InheritableThreadLocal<Boolean> getHierarchicalMode()
public static InheritableThreadLocal<Boolean> getIncludeInstanceContexts()
public static String getCurrentContextFullName()
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 addSecurityContext(SecurityContext securityContext)
public void addSecurityContext(String fullname, SecurityContext securityContext)
public SecurityContext getSecurityContextByFullName(String fullName) throws org.gcube.informationsystem.resourceregistry.api.exceptions.contexts.ContextException
org.gcube.informationsystem.resourceregistry.api.exceptions.contexts.ContextExceptionpublic 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 © 2022. All Rights Reserved.