public class Role extends AbstractMetadataRecord
Modifier and Type | Class and Description |
---|---|
static class |
Role.ResourceKey |
AbstractMetadataRecord.DataModifiable, AbstractMetadataRecord.Modifiable
NAME_DELIM_CHAR, RELATIONAL_PREFIX
Modifier and Type | Method and Description |
---|---|
void |
addGrant(Permission grant) |
void |
addPolicy(Policy policy) |
Map<Role.ResourceKey,Permission> |
getGrants() |
List<String> |
getMappedRoles()
Get a copy of the mapped roles
|
Map<Role.ResourceKey,Map<String,Policy>> |
getPolicies() |
boolean |
isAnyAuthenticated() |
void |
mergeInto(Role existing) |
void |
removeGrant(Permission toRemoveGrant) |
void |
removePolicy(Policy policy) |
void |
setAnyAuthenticated(boolean b) |
void |
setMappedRoles(List<String> mapped) |
equals, getAnnotation, getCanonicalName, getFullName, getIdentifier, getIncomingObjects, getName, getNameInSource, getParent, getProperties, getProperty, getProperty, getSourceName, getSQLString, getSQLString, getUUID, hashCode, isUUIDSet, setAnnotation, setIncomingObjects, setName, setNameInSource, setProperties, setProperty, setUUID, toString
public Role(String name)
public boolean isAnyAuthenticated()
public void setAnyAuthenticated(boolean b)
public Map<Role.ResourceKey,Permission> getGrants()
public Map<Role.ResourceKey,Map<String,Policy>> getPolicies()
public void addGrant(Permission grant)
public void removeGrant(Permission toRemoveGrant)
public void addPolicy(Policy policy)
public void removePolicy(Policy policy)
public void mergeInto(Role existing)
Copyright © 2020. All rights reserved.