Package org.teiid.metadata
Class Permission
- java.lang.Object
-
- org.teiid.metadata.AbstractMetadataRecord
-
- org.teiid.metadata.Permission
-
- All Implemented Interfaces:
Serializable
public class Permission extends AbstractMetadataRecord
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Permission.Privilege
-
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 Permission()
-
Method Summary
-
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
-
-
-
-
Method Detail
-
getResourceType
public Database.ResourceType getResourceType()
TheDataPolicy.ResourceType
, never null. Will default to DATABASE- Returns:
-
setResourceType
public void setResourceType(Database.ResourceType on)
-
getResourceName
public String getResourceName()
-
setResourceName
public void setResourceName(String resource)
-
getMask
public String getMask()
-
setMask
public void setMask(String mask)
-
getMaskOrder
public Integer getMaskOrder()
-
setMaskOrder
public void setMaskOrder(Integer maskOrder)
-
getCondition
public String getCondition()
-
isConditionAConstraint
public Boolean isConditionAConstraint()
-
getPrivileges
public EnumSet<Permission.Privilege> getPrivileges()
-
getRevokePrivileges
public EnumSet<Permission.Privilege> getRevokePrivileges()
-
hasPrivilege
public Boolean hasPrivilege(Permission.Privilege allow)
-
setPrivileges
public void setPrivileges(List<Permission.Privilege> types)
-
setRevokePrivileges
public void setRevokePrivileges(List<Permission.Privilege> types)
-
appendPrivileges
public void appendPrivileges(EnumSet<Permission.Privilege> types)
-
removePrivileges
public void removePrivileges(EnumSet<Permission.Privilege> types)
-
setAllowSelect
public void setAllowSelect(Boolean allow)
-
setAllowAlter
public void setAllowAlter(Boolean allow)
-
setAllowInsert
public void setAllowInsert(Boolean allow)
-
setAllowDelete
public void setAllowDelete(Boolean allow)
-
setAllowExecute
public void setAllowExecute(Boolean allow)
-
setAllowUpdate
public void setAllowUpdate(Boolean allow)
-
setAllowDrop
public void setAllowDrop(Boolean allow)
-
setAllowUsage
public void setAllowUsage(Boolean allow)
-
setAllowAllPrivileges
public void setAllowAllPrivileges(Boolean allow)
-
setAllowTemporyTables
public void setAllowTemporyTables(Boolean allow)
-
-