Package mondrian.olap

Class UnionRoleImpl

  • All Implemented Interfaces:
    Role

    class UnionRoleImpl
    extends java.lang.Object
    implements Role
    Implementation of Role which combines the privileges of several roles and has the superset of their privileges.
    Since:
    Nov 26, 2007
    Author:
    jhyde
    See Also:
    RoleImpl.union(java.util.List)
    • Constructor Detail

      • UnionRoleImpl

        UnionRoleImpl​(java.util.List<Role> roleList)
        Creates a UnionRoleImpl.
        Parameters:
        roleList - List of constituent roles
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • getAccess

        public Access getAccess​(Schema schema)
        Description copied from interface: Role
        Returns the access this role has to a given schema.
        Specified by:
        getAccess in interface Role
      • getAccess

        public Access getAccess​(Cube cube)
        Description copied from interface: Role
        Returns the access this role has to a given cube.
        Specified by:
        getAccess in interface Role
      • getAccess

        public Access getAccess​(Dimension dimension)
        Description copied from interface: Role
        Returns the access this role has to a given dimension.
        Specified by:
        getAccess in interface Role
      • getAccess

        public Access getAccess​(Hierarchy hierarchy)
        Description copied from interface: Role
        Returns the access this role has to a given hierarchy.
        Specified by:
        getAccess in interface Role
      • getAccessDetails

        public Role.HierarchyAccess getAccessDetails​(Hierarchy hierarchy)
        Description copied from interface: Role
        Returns the details of this hierarchy's access, or null if the hierarchy has not been given explicit access.
        Specified by:
        getAccessDetails in interface Role
      • getAccess

        public Access getAccess​(Level level)
        Description copied from interface: Role
        Returns the access this role has to a given level.
        Specified by:
        getAccess in interface Role
      • getAccess

        public Access getAccess​(Member member)
        Description copied from interface: Role
        Returns the access this role has to a given member.
        Specified by:
        getAccess in interface Role
      • getAccess

        public Access getAccess​(NamedSet set)
        Description copied from interface: Role
        Returns the access this role has to a given named set.
        Specified by:
        getAccess in interface Role
      • canAccess

        public boolean canAccess​(OlapElement olapElement)
        Description copied from interface: Role
        Returns whether this role is allowed to see a given element.
        Specified by:
        canAccess in interface Role