Class LiveContextEnvironment
java.lang.Object
org.gcube.informationsystem.resourceregistry.environments.Environment
org.gcube.informationsystem.resourceregistry.environments.HierarchicalEnvironment
org.gcube.informationsystem.resourceregistry.environments.contexts.HierarchicalContextEnvironment
org.gcube.informationsystem.resourceregistry.environments.contexts.LiveContextEnvironment
Security partition for live Context vertices, i.e. Contexts whose state is
CREATED, ACTIVE, or SUSPENDED (as opposed to DELETED Contexts,
archived in CemeteryContextEnvironment). It is the sibling child branch of
CemeteryContextEnvironment under the common ContextEnvironment H-parent, which
is how a single HReaderUser_<ContextEnvironment-UUID> session can see both live and
cemetery Context vertices in one query.- Author:
- Luca Frosini (ISTI - CNR)
-
Nested Class Summary
Nested classes/interfaces inherited from class org.gcube.informationsystem.resourceregistry.environments.Environment
Environment.PermissionMode, Environment.SecurityType -
Field Summary
Fields inherited from class org.gcube.informationsystem.resourceregistry.environments.HierarchicalEnvironment
activeOnlyHierarchicalMode, children, H, HA, hierarchicalMode, parentEnvironmentFields inherited from class org.gcube.informationsystem.resourceregistry.environments.Environment
allOperationAllowedRoles, CONTEXT_MANAGER, contextSubtreeOperationAllowedRoles, DEFAULT_READER_ROLE, DEFAULT_WRITER_ROLE, environmentUUID, INFRASTRUCTURE_MANAGER, instanceOperationAllowedRoles, IS_INSTANCE_OPERATOR, IS_MANAGER -
Method Summary
Modifier and TypeMethodDescriptionstatic LiveContextEnvironmentReturns the singleton instance ofLiveContextEnvironment.Methods inherited from class org.gcube.informationsystem.resourceregistry.environments.contexts.HierarchicalContextEnvironment
addExtraRulesMethods inherited from class org.gcube.informationsystem.resourceregistry.environments.HierarchicalEnvironment
addActiveReaderRoleToParent, addElement, addHierarchicalRoleToParent, allow, allowActiveReader, allowed, changeParentEnvironment, createActiveReaderRoleAndUser, createRolesAndUsers, createRolesAndUsers, deleteRolesAndUsers, deny, denyActiveReader, getChildren, getContexts, getOSecurity, getParentEnvironment, getPool, getRoleOrUserName, getRoleOrUserName, getRoleOrUserName, getSecurityRoleOrUserName, getSecurityRoleOrUserName, grantActiveReaderRoleToAncestors, grantActiveReaderRoleToAncestors, isActiveOnlyHierarchicalMode, isHierarchicalMode, removeActiveReaderRoleFromMyHAUser, removeChildrenHRolesFromMyHUsers, removeChildrenHRolesFromParents, removeChildrenHRolesFromParents, removeElement, removeHierarchicRoleFromMyHUser, revokeActiveReaderRoleFromAncestors, revokeActiveReaderRoleFromAncestors, setActiveOnlyHierarchicalMode, setHierarchicalMode, setParentEnvironmentMethods inherited from class org.gcube.informationsystem.resourceregistry.environments.Environment
addElement, allow, create, create, delete, delete, deny, drop, getAllOperationsAllowedRoles, getAllowedRoles, getDatabaseDocument, getInstanceOperationAllowedRoles, getOrCreateRole, getOrCreateUser, getSecurityRoleOrUserName, getSuperRole, getUUID, isElementInContext, isUserAllowed, removeElement, toString
-
Method Details
-
getInstance
public static LiveContextEnvironment getInstance() throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionReturns the singleton instance ofLiveContextEnvironment.- Returns:
- the singleton instance
- Throws:
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException- if the environment cannot be initialized
-