Package org.teiid.metadata
Class Grant
- java.lang.Object
-
- org.teiid.metadata.AbstractMetadataRecord
-
- org.teiid.metadata.Grant
-
- All Implemented Interfaces:
Serializable
public class Grant extends AbstractMetadataRecord
Represents a grant / revoke. We do not yet store grants, just permissions, as there is no identity to the grantor.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
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
-
-
Constructor Summary
Constructors Constructor Description Grant()
Grant(String role, Permission permission)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Permission
getPermission()
String
getRole()
void
setPermission(Permission permission)
void
setRole(String role)
-
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
-
Grant
public Grant()
-
Grant
public Grant(String role, Permission permission)
-
-
Method Detail
-
getPermission
public Permission getPermission()
-
setPermission
public void setPermission(Permission permission)
-
getRole
public String getRole()
-
setRole
public void setRole(String role)
-
-