|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmondrian.olap.DelegatingRole
public class DelegatingRole
DelegatingRole implements Role by
delegating all methods to an underlying Role.
It is a convenient base class if you want to override just a few of
Role's methods.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface mondrian.olap.Role |
|---|
Role.HierarchyAccess, Role.RollupPolicy |
| Field Summary | |
|---|---|
protected Role |
role
|
| Constructor Summary | |
|---|---|
DelegatingRole(Role role)
Creates a DelegatingRole. |
|
| Method Summary | |
|---|---|
boolean |
canAccess(OlapElement olapElement)
Returns whether this role is allowed to see a given element. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final Role role
| Constructor Detail |
|---|
public DelegatingRole(Role role)
role - Underlying role| Method Detail |
|---|
public Access getAccess(Schema schema)
Role
getAccess in interface Rolepublic Access getAccess(Cube cube)
Role
getAccess in interface Rolepublic Access getAccess(Dimension dimension)
Role
getAccess in interface Rolepublic Access getAccess(Hierarchy hierarchy)
Role
getAccess in interface Rolepublic Role.HierarchyAccess getAccessDetails(Hierarchy hierarchy)
This implementation returns the same access as the underlying role.
Derived class may choose to refine access by creating a subclass of
RoleImpl.DelegatingHierarchyAccess.
getAccessDetails in interface Rolepublic Access getAccess(Level level)
Role
getAccess in interface Rolepublic Access getAccess(Member member)
Role
getAccess in interface Rolepublic Access getAccess(NamedSet set)
Role
getAccess in interface Rolepublic boolean canAccess(OlapElement olapElement)
Role
canAccess in interface Role
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||