Package org.teiid.metadata
Class Role
- java.lang.Object
-
- org.teiid.metadata.AbstractMetadataRecord
-
- org.teiid.metadata.Role
-
- All Implemented Interfaces:
Serializable
public class Role extends AbstractMetadataRecord
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Role.ResourceKey
-
Nested classes/interfaces inherited from class org.teiid.metadata.AbstractMetadataRecord
AbstractMetadataRecord.DataModifiable, AbstractMetadataRecord.Modifiable
-
-
Field Summary
-
Fields inherited from class org.teiid.metadata.AbstractMetadataRecord
NAME_DELIM_CHAR, RELATIONAL_PREFIX
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addGrant(Permission grant)
void
addPolicy(Policy policy)
Map<Role.ResourceKey,Permission>
getGrants()
List<String>
getMappedRoles()
Get a copy of the mapped rolesMap<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)
-
Methods inherited from class org.teiid.metadata.AbstractMetadataRecord
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
-
-
-
-
Constructor Detail
-
Role
public Role(String name)
-
-
Method Detail
-
isAnyAuthenticated
public boolean isAnyAuthenticated()
-
setAnyAuthenticated
public void setAnyAuthenticated(boolean b)
-
getGrants
public Map<Role.ResourceKey,Permission> getGrants()
-
getPolicies
public Map<Role.ResourceKey,Map<String,Policy>> getPolicies()
-
addGrant
public void addGrant(Permission grant)
-
removeGrant
public void removeGrant(Permission toRemoveGrant)
-
addPolicy
public void addPolicy(Policy policy)
-
removePolicy
public void removePolicy(Policy policy)
-
mergeInto
public void mergeInto(Role existing)
-
-