Class ContextUtility
- java.lang.Object
-
- org.gcube.informationsystem.resourceregistry.contexts.ContextUtility
-
public class ContextUtility extends Object
- Author:
- Luca Frosini (ISTI - CNR)
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddSecurityContext(String fullname, SecurityContext securityContext)voidaddSecurityContext(SecurityContext securityContext)static AdminSecurityContextgetAdminSecurityContext()static StringgetCurrentContextFullName()static com.orientechnologies.orient.core.db.document.ODatabaseDocumentgetCurrentODatabaseDocumentFromThreadLocal()static SecurityContextgetCurrentSecurityContext()static ContextUtilitygetInstance()SecurityContextgetSecurityContextByFullName(String fullName)SecurityContextgetSecurityContextByUUID(UUID uuid)
-
-
-
Method Detail
-
getInstance
public static ContextUtility getInstance()
-
getCurrentContextFullName
public static String getCurrentContextFullName()
-
getCurrentSecurityContext
public static SecurityContext getCurrentSecurityContext() throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
- Throws:
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
-
getAdminSecurityContext
public static AdminSecurityContext getAdminSecurityContext() throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
- Throws:
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
-
addSecurityContext
public void addSecurityContext(SecurityContext securityContext)
-
addSecurityContext
public void addSecurityContext(String fullname, SecurityContext securityContext)
-
getSecurityContextByFullName
public SecurityContext getSecurityContextByFullName(String fullName) throws org.gcube.informationsystem.resourceregistry.api.exceptions.contexts.ContextException
- Throws:
org.gcube.informationsystem.resourceregistry.api.exceptions.contexts.ContextException
-
getSecurityContextByUUID
public SecurityContext getSecurityContextByUUID(UUID uuid) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
- Throws:
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
-
getCurrentODatabaseDocumentFromThreadLocal
public static com.orientechnologies.orient.core.db.document.ODatabaseDocument getCurrentODatabaseDocumentFromThreadLocal()
-
-