public abstract static class RoleImpl.DelegatingHierarchyAccess extends Object implements Role.AllHierarchyAccess
Role.HierarchyAccess that
delegates all methods to an underlying hierarchy access.| Modifier and Type | Field and Description |
|---|---|
protected Role.HierarchyAccess |
hierarchyAccess |
| Constructor and Description |
|---|
DelegatingHierarchyAccess(Role.HierarchyAccess hierarchyAccess)
Creates a DelegatingHierarchyAccess.
|
| Modifier and Type | Method and Description |
|---|---|
Access |
getAccess()
Returns the access to whole hierarchy.
|
Access |
getAccess(Member member)
Returns the access the current role has to a given member.
|
int |
getBottomLevelDepth()
Returns the depth of the lowest level to which the current Role has
access.
|
Role.RollupPolicy |
getRollupPolicy()
Returns the policy by which cell values are calculated if not all
of a member's children are visible.
|
int |
getTopLevelDepth()
Returns the depth of the highest level to which the current Role has
access.
|
boolean |
hasInaccessibleDescendants(Member member)
Returns
true if at least one of the descendants of the
given Member is inaccessible to this Role. |
protected final Role.HierarchyAccess hierarchyAccess
public DelegatingHierarchyAccess(Role.HierarchyAccess hierarchyAccess)
hierarchyAccess - Underlying hierarchy accesspublic Access getAccess(Member member)
Role.HierarchyAccessVisibility is:
Access.NONE if member is not visible,
Access.ALL if member and all children are visible,
Access.CUSTOM if some of the children are not visible.
For these purposes, children which are below the bottom level are regarded as visible.
getAccess in interface Role.HierarchyAccessmember - Member.public int getTopLevelDepth()
Role.HierarchyAccessgetTopLevelDepth in interface Role.HierarchyAccesspublic int getBottomLevelDepth()
Role.HierarchyAccessgetBottomLevelDepth in interface Role.HierarchyAccesspublic Role.RollupPolicy getRollupPolicy()
Role.HierarchyAccessgetRollupPolicy in interface Role.HierarchyAccesspublic boolean hasInaccessibleDescendants(Member member)
Role.HierarchyAccesstrue if at least one of the descendants of the
given Member is inaccessible to this Role.
Descendants which are inaccessible because they are below the bottom level are ignored.
hasInaccessibleDescendants in interface Role.HierarchyAccessmember - Memberpublic Access getAccess()
Role.AllHierarchyAccessgetAccess in interface Role.AllHierarchyAccessCopyright © 2021 Hitachi Vantara. All rights reserved.