Package mondrian.olap
Class UnionRoleImpl
- java.lang.Object
-
- mondrian.olap.UnionRoleImpl
-
- All Implemented Interfaces:
Role
class UnionRoleImpl extends java.lang.Object implements Role
Implementation ofRole
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)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface mondrian.olap.Role
Role.HierarchyAccess, Role.RollupPolicy
-
-
Constructor Summary
Constructors Constructor Description UnionRoleImpl(java.util.List<Role> roleList)
Creates a UnionRoleImpl.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canAccess(OlapElement olapElement)
Returns whether this role is allowed to see a given element.boolean
equals(java.lang.Object obj)
Access
getAccess(Cube cube)
Returns the access this role has to a given cube.Access
getAccess(Dimension dimension)
Returns the access this role has to a given dimension.Access
getAccess(Hierarchy hierarchy)
Returns the access this role has to a given hierarchy.Access
getAccess(Level level)
Returns the access this role has to a given level.Access
getAccess(Member member)
Returns the access this role has to a given member.Access
getAccess(NamedSet set)
Returns the access this role has to a given named set.Access
getAccess(Schema schema)
Returns the access this role has to a given schema.Role.HierarchyAccess
getAccessDetails(Hierarchy hierarchy)
Returns the details of this hierarchy's access, or null if the hierarchy has not been given explicit access.int
hashCode()
-
-
-
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 classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
getAccess
public Access getAccess(Schema schema)
Description copied from interface:Role
Returns the access this role has to a given schema.
-
getAccess
public Access getAccess(Cube cube)
Description copied from interface:Role
Returns the access this role has to a given cube.
-
getAccess
public Access getAccess(Dimension dimension)
Description copied from interface:Role
Returns the access this role has to a given dimension.
-
getAccess
public Access getAccess(Hierarchy hierarchy)
Description copied from interface:Role
Returns the access this role has to a given hierarchy.
-
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 interfaceRole
-
getAccess
public Access getAccess(Level level)
Description copied from interface:Role
Returns the access this role has to a given level.
-
getAccess
public Access getAccess(Member member)
Description copied from interface:Role
Returns the access this role has to a given member.
-
getAccess
public Access getAccess(NamedSet set)
Description copied from interface:Role
Returns the access this role has to a given named set.
-
canAccess
public boolean canAccess(OlapElement olapElement)
Description copied from interface:Role
Returns whether this role is allowed to see a given element.
-
-