Package mondrian.olap
Class CubeAccess
- java.lang.Object
-
- mondrian.olap.CubeAccess
-
public class CubeAccess extends Object
This class implements object of type GrantCube to apply permissions on user's MDX query- Author:
- lkrivopaltsev, 01 November, 1999
-
-
Constructor Summary
Constructors Constructor Description CubeAccess(Cube mdxCube)
Creates a CubeAccess object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addGrantCubeSlicer(String sHierarchy, String sMember, boolean bMember)
Adds restricted hierarchy or limited member based on bMemberboolean
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.
-
-
-
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()
-
isHierarchyAllowed
public boolean isHierarchyAllowed(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.
-
-