Class ContextEnvironment
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.ContextEnvironment
Parent context-partition environment used only to aggregate hierarchical
context roles. It does not represent live/deleted context data directly.
- 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_ADMIN, IS_INSTANCE_OPERATOR, IS_MANAGER, stateOverrideAllowedRoles -
Method Summary
Modifier and TypeMethodDescriptionstatic ContextEnvironmentReturns the singleton instance ofContextEnvironment.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, getStateOverrideAllowedRoles, getSuperRole, getUUID, isElementInContext, isUserAllowed, removeElement, toString
-
Method Details
-
getInstance
public static ContextEnvironment getInstance() throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryExceptionReturns the singleton instance ofContextEnvironment.- Returns:
- the singleton instance
- Throws:
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException- if the environment cannot be initialized
-