| Modifier and Type | Class and Description |
|---|---|
static class |
RoleImpl.DelegatingHierarchyAccess
Implementation of
Role.HierarchyAccess that
delegates all methods to an underlying hierarchy access. |
Role.AllHierarchyAccess, Role.HierarchyAccess, Role.RollupPolicy| Constructor and Description |
|---|
RoleImpl()
Creates a role with no permissions.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canAccess(OlapElement olapElement)
Returns whether this role is allowed to see a given element.
|
protected RoleImpl |
clone() |
static Role.HierarchyAccess |
createAllAccess(Hierarchy hierarchy)
Creates an element which represents all access to a hierarchy.
|
boolean |
equals(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.
|
void |
grant(Cube cube,
Access access)
Defines access to a cube.
|
void |
grant(Dimension dimension,
Access access)
Defines access to a dimension.
|
void |
grant(Hierarchy hierarchy,
Access access,
Level topLevel,
Level bottomLevel,
Role.RollupPolicy rollupPolicy)
Defines access to a hierarchy.
|
void |
grant(Member member,
Access access)
Defines access to a member in a hierarchy.
|
void |
grant(Schema schema,
Access access)
Defines access to all cubes and dimensions in a schema.
|
int |
hashCode() |
boolean |
isMutable()
Returns whether modifications are possible.
|
void |
makeImmutable()
Prevents any further modifications.
|
RoleImpl |
makeMutableClone()
Returns a copy of this
Role which can be modified. |
static Role |
union(List<Role> roleList)
Returns a role that is the union of the given roles.
|
public RoleImpl makeMutableClone()
Role which can be modified.public void makeImmutable()
public boolean isMutable()
public void grant(Schema schema, Access access)
schema - Schema whose access to grant/deny.access - An access codepublic Access getAccess(Schema schema)
Rolepublic void grant(Cube cube, Access access)
cube - Cube whose access to grant/deny.access - An access codepublic Access getAccess(Cube cube)
Rolepublic void grant(Dimension dimension, Access access)
dimension - Dimension whose access to grant/deny.access - An Access instancepublic Access getAccess(Dimension dimension)
Rolepublic void grant(Hierarchy hierarchy, Access access, Level topLevel, Level bottomLevel, Role.RollupPolicy rollupPolicy)
hierarchy - Hierarchy whose access to grant/deny.access - An access codetopLevel - Top-most level which can be accessed, or null if the
highest level. May only be specified if access is
Access.CUSTOM.bottomLevel - Bottom-most level which can be accessed, or null if
the lowest level. May only be specified if access is
Access.CUSTOM.rollupPolicy - Rollup policypublic Access getAccess(Hierarchy hierarchy)
Rolepublic Role.HierarchyAccess getAccessDetails(Hierarchy hierarchy)
RolegetAccessDetails in interface Rolepublic Access getAccess(Level level)
Rolepublic void grant(Member member, Access access)
Notes:
grant(Hierarchy, Access, Level, Level, mondrian.olap.Role.RollupPolicy).
public Access getAccess(Member member)
Rolepublic Access getAccess(NamedSet set)
Rolepublic boolean canAccess(OlapElement olapElement)
Rolepublic static Role.HierarchyAccess createAllAccess(Hierarchy hierarchy)
hierarchy - HierarchyCopyright © 2021 Hitachi Vantara. All rights reserved.