public class EntityAttributeContext extends java.lang.Object implements AccessContext
Modifier and Type | Field and Description |
---|---|
protected boolean |
modifyPermitted |
protected MetaPropertyPath |
propertyPath |
protected boolean |
viewPermitted |
Constructor and Description |
---|
EntityAttributeContext(MetaClass metaClass,
java.lang.String attribute) |
EntityAttributeContext(MetaPropertyPath propertyPath) |
Modifier and Type | Method and Description |
---|---|
boolean |
canModify() |
boolean |
canView() |
MetaPropertyPath |
getPropertyPath() |
void |
setModifyDenied() |
void |
setViewDenied() |
protected final MetaPropertyPath propertyPath
protected boolean viewPermitted
protected boolean modifyPermitted
public EntityAttributeContext(MetaPropertyPath propertyPath)
public EntityAttributeContext(MetaClass metaClass, java.lang.String attribute)
public MetaPropertyPath getPropertyPath()
public boolean canModify()
public void setModifyDenied()
public boolean canView()
public void setViewDenied()