Package mondrian.olap
Class CubeAccess
java.lang.Object
mondrian.olap.CubeAccess
This class implements object of type GrantCube to apply permissions
on user's MDX query
- Author:
- lkrivopaltsev, 01 November, 1999
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addGrantCubeSlicer
(String sHierarchy, String sMember, boolean bMember) Adds restricted hierarchy or limited member based on bMemberboolean
getLimitedMemberForHierarchy
(Hierarchy mdxHierarchy) Member[]
int
hashCode()
boolean
boolean
isHierarchyAllowed
(Hierarchy mdxHierarchy) void
Initializes internal arrays of restricted hierarchies and limited members.
-
Constructor Details
-
CubeAccess
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 Details
-
hasRestrictions
public boolean hasRestrictions() -
getNoAccessHierarchies
-
getLimitedMembers
-
getNoAccessHierarchyList
-
getLimitedMemberList
-
isHierarchyAllowed
-
getLimitedMemberForHierarchy
-
addGrantCubeSlicer
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
-
hashCode
public int hashCode()
-