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
FieldsModifier and TypeFieldDescriptionprotected booleanprotected final MetaPropertyPathprotected boolean -
Constructor Summary
ConstructorsConstructorDescriptionEntityAttributeContext(MetaClass metaClass, String attribute) EntityAttributeContext(MetaPropertyPath propertyPath) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleancanView()Returns a human-readable explanation of constraints applied to the current context instance for logging of authorization decisions.voidvoid
-
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:AccessContextReturns 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:
explainConstraintsin interfaceAccessContext
-