mondrian.olap
Class CubeAccess

java.lang.Object
  extended by mondrian.olap.CubeAccess

public class CubeAccess
extends Object

This class implements object of type GrantCube to apply permissions on user's MDX query

 

Constructor Summary
CubeAccess(Cube mdxCube)
          Creates a CubeAccess object.
 
Method Summary
 void addGrantCubeSlicer(String sHierarchy, String sMember, boolean bMember)
          Adds restricted hierarchy or limited member based on bMember
 boolean equals(Object object)
           
 Member getLimitedMemberForHierarchy(Hierarchy mdxHierarchy)
           
 List<Member> getLimitedMemberList()
           
 Member[] getLimitedMembers()
           
 Hierarchy[] getNoAccessHierarchies()
           
 List<Hierarchy> getNoAccessHierarchyList()
           
 int hashCode()
           
 boolean hasRestrictions()
           
 boolean isHierarchyAllowed(Hierarchy mdxHierarchy)
           
 void normalizeCubeAccess()
          Initializes internal arrays of restricted hierarchies and limited members.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CubeAccess

public CubeAccess(Cube mdxCube)
Creates a CubeAccess object.

User's code should be responsible for filling cubeAccess with restricted hierarchies and restricted members by calling addSlicer(). Do NOT forget to call normalizeCubeAccess() after you done filling cubeAccess.

Method Detail

hasRestrictions

public boolean hasRestrictions()

getNoAccessHierarchies

public Hierarchy[] getNoAccessHierarchies()

getLimitedMembers

public Member[] getLimitedMembers()

getNoAccessHierarchyList

public List<Hierarchy> getNoAccessHierarchyList()

getLimitedMemberList

public List<Member> getLimitedMemberList()

isHierarchyAllowed

public boolean isHierarchyAllowed(Hierarchy mdxHierarchy)

getLimitedMemberForHierarchy

public Member getLimitedMemberForHierarchy(Hierarchy mdxHierarchy)

addGrantCubeSlicer

public void addGrantCubeSlicer(String sHierarchy,
                               String sMember,
                               boolean bMember)
Adds restricted hierarchy or limited member based on bMember


normalizeCubeAccess

public void normalizeCubeAccess()
Initializes internal arrays of restricted hierarchies and limited members. It has to be called after all 'addSlicer()' calls.


equals

public boolean equals(Object object)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

SourceForge.net_Logo