Package io.jmix.core.accesscontext
Class EntityAttributeContext
java.lang.Object
io.jmix.core.accesscontext.EntityAttributeContext
- All Implemented Interfaces:
AccessContext
- Direct Known Subclasses:
FlowuiEntityAttributeContext
,UiEntityAttributeContext
An access context to check permissions on entity attributes.
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected final MetaPropertyPath
protected boolean
-
Constructor Summary
ConstructorDescriptionEntityAttributeContext
(MetaClass metaClass, String attribute) EntityAttributeContext
(MetaPropertyPath propertyPath) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
canView()
Returns a human-readable explanation of constraints applied to the current context instance for logging of authorization decisions.void
void
-
Field Details
-
propertyPath
-
viewPermitted
protected boolean viewPermitted -
modifyPermitted
protected boolean modifyPermitted
-
-
Constructor Details
-
EntityAttributeContext
-
EntityAttributeContext
-
-
Method Details
-
getPropertyPath
-
canModify
public boolean canModify() -
setModifyDenied
public void setModifyDenied() -
canView
public boolean canView() -
setViewDenied
public void setViewDenied() -
explainConstraints
Description copied from interface:AccessContext
Returns a human-readable explanation of constraints applied to the current context instance for logging of authorization decisions. Null if the current context does not impose any constraints.- Specified by:
explainConstraints
in interfaceAccessContext
-