Package mondrian.olap

Class 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 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.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object