Package mondrian.olap
Class DelegatingRole
- java.lang.Object
-
- mondrian.olap.DelegatingRole
-
- All Implemented Interfaces:
Role
public class DelegatingRole extends Object implements Role
DelegatingRoleimplementsRoleby delegating all methods to an underlyingRole.This is a convenient base class if you want to override just a few of
Role's methods.- Since:
- Mar 29 2007
- Author:
- Richard M. Emberson
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface mondrian.olap.Role
Role.AllHierarchyAccess, Role.HierarchyAccess, Role.RollupPolicy
-
-
Constructor Summary
Constructors Constructor Description DelegatingRole(Role role)Creates a DelegatingRole.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanAccess(OlapElement olapElement)Returns whether this role is allowed to see a given element.AccessgetAccess(Cube cube)Returns the access this role has to a given cube.AccessgetAccess(Dimension dimension)Returns the access this role has to a given dimension.AccessgetAccess(Hierarchy hierarchy)Returns the access this role has to a given hierarchy.AccessgetAccess(Level level)Returns the access this role has to a given level.AccessgetAccess(Member member)Returns the access this role has to a given member.AccessgetAccess(NamedSet set)Returns the access this role has to a given named set.AccessgetAccess(Schema schema)Returns the access this role has to a given schema.Role.HierarchyAccessgetAccessDetails(Hierarchy hierarchy)Returns the details of this hierarchy's access, or null if the hierarchy has not been given explicit access.
-
-
-
Field Detail
-
role
protected final Role role
-
-
Constructor Detail
-
DelegatingRole
public DelegatingRole(Role role)
Creates a DelegatingRole.- Parameters:
role- Underlying role.
-
-
Method Detail
-
getAccess
public Access getAccess(Schema schema)
Description copied from interface:RoleReturns the access this role has to a given schema.
-
getAccess
public Access getAccess(Cube cube)
Description copied from interface:RoleReturns the access this role has to a given cube.
-
getAccess
public Access getAccess(Dimension dimension)
Description copied from interface:RoleReturns the access this role has to a given dimension.
-
getAccess
public Access getAccess(Hierarchy hierarchy)
Description copied from interface:RoleReturns the access this role has to a given hierarchy.
-
getAccessDetails
public Role.HierarchyAccess getAccessDetails(Hierarchy hierarchy)
Returns the details of this hierarchy's access, or null if the hierarchy has not been given explicit access.This implementation returns the same access as the underlying role. Derived class may choose to refine access by creating a subclass of
RoleImpl.DelegatingHierarchyAccess.- Specified by:
getAccessDetailsin interfaceRole
-
getAccess
public Access getAccess(Level level)
Description copied from interface:RoleReturns the access this role has to a given level.
-
getAccess
public Access getAccess(Member member)
Description copied from interface:RoleReturns the access this role has to a given member.
-
getAccess
public Access getAccess(NamedSet set)
Description copied from interface:RoleReturns the access this role has to a given named set.
-
canAccess
public boolean canAccess(OlapElement olapElement)
Description copied from interface:RoleReturns whether this role is allowed to see a given element.
-
-