public class DelegatingRole extends Object implements 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.
Role.AllHierarchyAccess, Role.HierarchyAccess, Role.RollupPolicy
Constructor and Description |
---|
DelegatingRole(Role role)
Creates a DelegatingRole.
|
Modifier and Type | Method and Description |
---|---|
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.
|
protected final Role role
public DelegatingRole(Role role)
role
- Underlying role.public Access getAccess(Schema schema)
Role
public Access getAccess(Cube cube)
Role
public Access getAccess(Dimension dimension)
Role
public Access getAccess(Hierarchy hierarchy)
Role
public 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 Role
public Access getAccess(Level level)
Role
public Access getAccess(Member member)
Role
public Access getAccess(NamedSet set)
Role
public boolean canAccess(OlapElement olapElement)
Role
Copyright © 2018 Hitachi Vantara. All rights reserved.