Package org.teiid.adminapi.impl
Class DataPolicyMetadata.PermissionMetaData
- java.lang.Object
-
- org.teiid.adminapi.impl.DataPolicyMetadata.PermissionMetaData
-
- All Implemented Interfaces:
Serializable
,DataPolicy.DataPermission
- Enclosing class:
- DataPolicyMetadata
public static class DataPolicyMetadata.PermissionMetaData extends Object implements DataPolicy.DataPermission, Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PermissionMetaData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Boolean
allows(DataPolicy.PermissionType type)
DataPolicyMetadata.PermissionMetaData
clone()
Boolean
getAllowAlter()
Is "ALTER" allowed?Boolean
getAllowCreate()
Is "CREATE" allowed?Boolean
getAllowDelete()
Is "DELETE" allowed?Boolean
getAllowExecute()
Is "EXECUTE" allowed?Boolean
getAllowLanguage()
Is "LANGUAGE" allowed?Boolean
getAllowRead()
Is "SELECT" allowed?Boolean
getAllowUpdate()
Is "INSERT/UPDATE" allowed?String
getCondition()
The condition stringBoolean
getConstraint()
If the condition acts as a constraint.String
getMask()
The column mask stringInteger
getOrder()
The column mask orderObject
getResolvedCondition()
Object
getResolvedMask()
String
getResourceName()
Get the Resource Name that the Data Permission representsDataPolicy.ResourceType
getResourceType()
Get the type of resource the Data Permission is representsString
getType()
void
setAllowAlter(Boolean allowAlter)
void
setAllowCreate(Boolean value)
void
setAllowDelete(Boolean value)
void
setAllowExecute(Boolean allowExecute)
void
setAllowLanguage(Boolean value)
void
setAllowRead(Boolean value)
void
setAllowUpdate(Boolean value)
void
setCondition(String filter)
void
setConstraint(Boolean constraint)
void
setMask(String mask)
void
setOrder(Integer order)
void
setResolvedCondition(Object resolvedCondition)
void
setResolvedMask(Object resolvedMask)
void
setResourceName(String value)
void
setResourceType(DataPolicy.ResourceType resourceType)
String
toString()
-
-
-
Method Detail
-
getResourceName
public String getResourceName()
Description copied from interface:DataPolicy.DataPermission
Get the Resource Name that the Data Permission represents- Specified by:
getResourceName
in interfaceDataPolicy.DataPermission
- Returns:
-
setResourceName
public void setResourceName(String value)
-
setResourceType
public void setResourceType(DataPolicy.ResourceType resourceType)
-
getResourceType
public DataPolicy.ResourceType getResourceType()
Description copied from interface:DataPolicy.DataPermission
Get the type of resource the Data Permission is represents- Specified by:
getResourceType
in interfaceDataPolicy.DataPermission
- Returns:
-
getAllowCreate
public Boolean getAllowCreate()
Description copied from interface:DataPolicy.DataPermission
Is "CREATE" allowed?- Specified by:
getAllowCreate
in interfaceDataPolicy.DataPermission
- Returns:
-
setAllowCreate
public void setAllowCreate(Boolean value)
-
getAllowRead
public Boolean getAllowRead()
Description copied from interface:DataPolicy.DataPermission
Is "SELECT" allowed?- Specified by:
getAllowRead
in interfaceDataPolicy.DataPermission
- Returns:
-
setAllowRead
public void setAllowRead(Boolean value)
-
getAllowUpdate
public Boolean getAllowUpdate()
Description copied from interface:DataPolicy.DataPermission
Is "INSERT/UPDATE" allowed?- Specified by:
getAllowUpdate
in interfaceDataPolicy.DataPermission
- Returns:
-
setAllowUpdate
public void setAllowUpdate(Boolean value)
-
getAllowDelete
public Boolean getAllowDelete()
Description copied from interface:DataPolicy.DataPermission
Is "DELETE" allowed?- Specified by:
getAllowDelete
in interfaceDataPolicy.DataPermission
- Returns:
-
setAllowDelete
public void setAllowDelete(Boolean value)
-
getType
public String getType()
-
clone
public DataPolicyMetadata.PermissionMetaData clone()
-
allows
public Boolean allows(DataPolicy.PermissionType type)
-
getAllowAlter
public Boolean getAllowAlter()
Description copied from interface:DataPolicy.DataPermission
Is "ALTER" allowed?- Specified by:
getAllowAlter
in interfaceDataPolicy.DataPermission
- Returns:
-
getAllowExecute
public Boolean getAllowExecute()
Description copied from interface:DataPolicy.DataPermission
Is "EXECUTE" allowed?- Specified by:
getAllowExecute
in interfaceDataPolicy.DataPermission
- Returns:
-
setAllowAlter
public void setAllowAlter(Boolean allowAlter)
-
setAllowExecute
public void setAllowExecute(Boolean allowExecute)
-
getAllowLanguage
public Boolean getAllowLanguage()
Description copied from interface:DataPolicy.DataPermission
Is "LANGUAGE" allowed?- Specified by:
getAllowLanguage
in interfaceDataPolicy.DataPermission
- Returns:
-
setAllowLanguage
public void setAllowLanguage(Boolean value)
-
getCondition
public String getCondition()
Description copied from interface:DataPolicy.DataPermission
The condition string- Specified by:
getCondition
in interfaceDataPolicy.DataPermission
-
setCondition
public void setCondition(String filter)
-
getMask
public String getMask()
Description copied from interface:DataPolicy.DataPermission
The column mask string- Specified by:
getMask
in interfaceDataPolicy.DataPermission
-
setMask
public void setMask(String mask)
-
getOrder
public Integer getOrder()
Description copied from interface:DataPolicy.DataPermission
The column mask order- Specified by:
getOrder
in interfaceDataPolicy.DataPermission
-
setOrder
public void setOrder(Integer order)
-
getResolvedCondition
public Object getResolvedCondition()
-
setResolvedCondition
public void setResolvedCondition(Object resolvedCondition)
-
getResolvedMask
public Object getResolvedMask()
-
setResolvedMask
public void setResolvedMask(Object resolvedMask)
-
getConstraint
public Boolean getConstraint()
Description copied from interface:DataPolicy.DataPermission
If the condition acts as a constraint.- Specified by:
getConstraint
in interfaceDataPolicy.DataPermission
-
setConstraint
public void setConstraint(Boolean constraint)
-
-