org.teiid.adminapi.impl
Class DataPolicyMetadata.PermissionMetaData

java.lang.Object
  extended by org.teiid.adminapi.impl.DataPolicyMetadata.PermissionMetaData
All Implemented Interfaces:
java.io.Serializable, DataPolicy.DataPermission
Enclosing class:
DataPolicyMetadata

public static class DataPolicyMetadata.PermissionMetaData
extends java.lang.Object
implements DataPolicy.DataPermission, java.io.Serializable

See Also:
Serialized Form

Field Summary
protected  java.lang.Boolean allowCreate
           
protected  java.lang.Boolean allowDelete
           
protected  java.lang.Boolean allowRead
           
protected  java.lang.Boolean allowUpdate
           
static java.lang.String RECURSIVE
           
static java.lang.String SEPARATOR_WITH_RECURSIVE
           
 
Constructor Summary
DataPolicyMetadata.PermissionMetaData()
           
 
Method Summary
 boolean allows(DataPolicy.PermissionType type)
           
 boolean allows(java.lang.String checkResource, DataPolicy.PermissionType type)
           
 java.lang.String getResourceName()
          Get the Resource Name that Data Permission representing
 java.lang.String getType()
           
 boolean isAllowCreate()
          Is "CREATE" allowed?
 boolean isAllowDelete()
          Is "DELETE" allowed?
 boolean isAllowRead()
          Is "SELECT" allowed?
 boolean isAllowUpdate()
          Is "INSERT/UPDATE" allowed?
 void setAllowCreate(java.lang.Boolean value)
           
 void setAllowDelete(java.lang.Boolean value)
           
 void setAllowRead(java.lang.Boolean value)
           
 void setAllowUpdate(java.lang.Boolean value)
           
 void setResourceName(java.lang.String value)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RECURSIVE

public static final java.lang.String RECURSIVE
See Also:
Constant Field Values

SEPARATOR_WITH_RECURSIVE

public static final java.lang.String SEPARATOR_WITH_RECURSIVE
See Also:
Constant Field Values

allowCreate

protected java.lang.Boolean allowCreate

allowRead

protected java.lang.Boolean allowRead

allowUpdate

protected java.lang.Boolean allowUpdate

allowDelete

protected java.lang.Boolean allowDelete
Constructor Detail

DataPolicyMetadata.PermissionMetaData

public DataPolicyMetadata.PermissionMetaData()
Method Detail

getResourceName

public java.lang.String getResourceName()
Description copied from interface: DataPolicy.DataPermission
Get the Resource Name that Data Permission representing

Specified by:
getResourceName in interface DataPolicy.DataPermission
Returns:

setResourceName

public void setResourceName(java.lang.String value)

isAllowCreate

public boolean isAllowCreate()
Description copied from interface: DataPolicy.DataPermission
Is "CREATE" allowed?

Specified by:
isAllowCreate in interface DataPolicy.DataPermission
Returns:

setAllowCreate

public void setAllowCreate(java.lang.Boolean value)

isAllowRead

public boolean isAllowRead()
Description copied from interface: DataPolicy.DataPermission
Is "SELECT" allowed?

Specified by:
isAllowRead in interface DataPolicy.DataPermission
Returns:

setAllowRead

public void setAllowRead(java.lang.Boolean value)

isAllowUpdate

public boolean isAllowUpdate()
Description copied from interface: DataPolicy.DataPermission
Is "INSERT/UPDATE" allowed?

Specified by:
isAllowUpdate in interface DataPolicy.DataPermission
Returns:

setAllowUpdate

public void setAllowUpdate(java.lang.Boolean value)

isAllowDelete

public boolean isAllowDelete()
Description copied from interface: DataPolicy.DataPermission
Is "DELETE" allowed?

Specified by:
isAllowDelete in interface DataPolicy.DataPermission
Returns:

setAllowDelete

public void setAllowDelete(java.lang.Boolean value)

getType

public java.lang.String getType()

allows

public boolean allows(DataPolicy.PermissionType type)

allows

public boolean allows(java.lang.String checkResource,
                      DataPolicy.PermissionType type)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2010. All Rights Reserved.