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() |
java.lang.String |
explainConstraints()
Returns a human-readable explanation of constraints applied to the current context instance for logging of
authorization decisions.
|
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()
@Nullable public java.lang.String explainConstraints()
AccessContext
explainConstraints
in interface AccessContext