Package mondrian.olap
Interface Role.HierarchyAccess
-
- All Known Subinterfaces:
Role.AllHierarchyAccess
- All Known Implementing Classes:
RoleImpl.DelegatingHierarchyAccess
- Enclosing interface:
- Role
public static interface Role.HierarchyAccessRepresents the access that a role has to a particular hierarchy.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AccessgetAccess(Member member)Returns the access the current role has to a given member.intgetBottomLevelDepth()Returns the depth of the lowest level to which the current Role has access.Role.RollupPolicygetRollupPolicy()Returns the policy by which cell values are calculated if not all of a member's children are visible.intgetTopLevelDepth()Returns the depth of the highest level to which the current Role has access.booleanhasInaccessibleDescendants(Member member)Returnstrueif at least one of the descendants of the given Member is inaccessible to this Role.
-
-
-
Method Detail
-
getAccess
Access getAccess(Member member)
Returns the access the current role has to a given member.Visibility is:
Access.NONEif member is not visible,Access.ALLif member and all children are visible,Access.CUSTOMif some of the children are not visible.
For these purposes, children which are below the bottom level are regarded as visible.
- Parameters:
member- Member.- Returns:
- Return current role's access to member.
-
getTopLevelDepth
int getTopLevelDepth()
Returns the depth of the highest level to which the current Role has access. The 'all' level, if present, has a depth of zero.- Returns:
- Returns depth of the highest accessible level.
-
getBottomLevelDepth
int getBottomLevelDepth()
Returns the depth of the lowest level to which the current Role has access. The 'all' level, if present, has a depth of zero.- Returns:
- Returns depth of the lowest accessible level.
-
getRollupPolicy
Role.RollupPolicy getRollupPolicy()
Returns the policy by which cell values are calculated if not all of a member's children are visible.- Returns:
- Returns rollup policy.
-
hasInaccessibleDescendants
boolean hasInaccessibleDescendants(Member member)
Returnstrueif 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.
- Parameters:
member- Member- Returns:
- Returns whether a descendant is inaccessible.
-
-