mondrian.olap
Class DelegatingRole.DelegatingHierarchyAccess

java.lang.Object
  extended by mondrian.olap.DelegatingRole.DelegatingHierarchyAccess
All Implemented Interfaces:
Role.HierarchyAccess
Enclosing class:
DelegatingRole

public static class DelegatingRole.DelegatingHierarchyAccess
extends Object
implements Role.HierarchyAccess

 

Field Summary
protected  Role.HierarchyAccess hierarchyAccess
           
 
Constructor Summary
DelegatingRole.DelegatingHierarchyAccess(Role.HierarchyAccess hierarchyAccess)
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hierarchyAccess

protected final Role.HierarchyAccess hierarchyAccess
Constructor Detail

DelegatingRole.DelegatingHierarchyAccess

public DelegatingRole.DelegatingHierarchyAccess(Role.HierarchyAccess hierarchyAccess)
Method Detail

getAccess

public Access getAccess(Member member)
Description copied from interface: Role.HierarchyAccess
Returns the access the current role has to a given member.

Visibility is:

For these purposes, children which are below the bottom level are regarded as visible.

Specified by:
getAccess in interface Role.HierarchyAccess
Parameters:
member - Member
Returns:
current role's access to member

getTopLevelDepth

public int getTopLevelDepth()
Description copied from interface: Role.HierarchyAccess
Returns the depth of the highest level to which the current Role has access. The 'all' level, if present, has a depth of zero.

Specified by:
getTopLevelDepth in interface Role.HierarchyAccess
Returns:
depth of the highest accessible level

getBottomLevelDepth

public int getBottomLevelDepth()
Description copied from interface: Role.HierarchyAccess
Returns the depth of the lowest level to which the current Role has access. The 'all' level, if present, has a depth of zero.

Specified by:
getBottomLevelDepth in interface Role.HierarchyAccess
Returns:
depth of the lowest accessible level

getRollupPolicy

public Role.RollupPolicy getRollupPolicy()
Description copied from interface: Role.HierarchyAccess
Returns the policy by which cell values are calculated if not all of a member's children are visible.

Specified by:
getRollupPolicy in interface Role.HierarchyAccess
Returns:
rollup policy

hasInaccessibleDescendants

public boolean hasInaccessibleDescendants(Member member)
Description copied from interface: Role.HierarchyAccess
Returns true 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.

Specified by:
hasInaccessibleDescendants in interface Role.HierarchyAccess
Parameters:
member - Member
Returns:
whether a descendant is inaccessible

SourceForge.net_Logo