Package mondrian.olap
Class DelegatingRole
java.lang.Object
mondrian.olap.DelegatingRole
- All Implemented Interfaces:
Role
DelegatingRole
implements Role
by
delegating all methods to an underlying Role
.
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
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canAccess
(OlapElement olapElement) Returns whether this role is allowed to see a given element.Returns the access this role has to a given cube.Returns the access this role has to a given dimension.Returns the access this role has to a given hierarchy.Returns the access this role has to a given level.Returns the access this role has to a given member.Returns the access this role has to a given named set.Returns the access this role has to a given schema.getAccessDetails
(Hierarchy hierarchy) Returns the details of this hierarchy's access, or null if the hierarchy has not been given explicit access.
-
Field Details
-
role
-
-
Constructor Details
-
DelegatingRole
Creates a DelegatingRole.- Parameters:
role
- Underlying role.
-
-
Method Details
-
getAccess
Description copied from interface:Role
Returns the access this role has to a given schema. -
getAccess
Description copied from interface:Role
Returns the access this role has to a given cube. -
getAccess
Description copied from interface:Role
Returns the access this role has to a given dimension. -
getAccess
Description copied from interface:Role
Returns the access this role has to a given hierarchy. -
getAccessDetails
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:
getAccessDetails
in interfaceRole
-
getAccess
Description copied from interface:Role
Returns the access this role has to a given level. -
getAccess
Description copied from interface:Role
Returns the access this role has to a given member. -
getAccess
Description copied from interface:Role
Returns the access this role has to a given named set. -
canAccess
Description copied from interface:Role
Returns whether this role is allowed to see a given element.
-