Package io.jmix.core.accesscontext
Class EntityAttributeContext
java.lang.Object
io.jmix.core.accesscontext.EntityAttributeContext
- All Implemented Interfaces:
- AccessContext
- Direct Known Subclasses:
- UiEntityAttributeContext
Defines an authorization point for entity attributes.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected booleanprotected final MetaPropertyPathprotected boolean
- 
Constructor SummaryConstructorsConstructorDescriptionEntityAttributeContext(MetaClass metaClass, String attribute) EntityAttributeContext(MetaPropertyPath propertyPath) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleanbooleancanView()Returns a human-readable explanation of constraints applied to the current context instance for logging of authorization decisions.voidvoid
- 
Field Details- 
propertyPath
- 
viewPermittedprotected boolean viewPermitted
- 
modifyPermittedprotected boolean modifyPermitted
 
- 
- 
Constructor Details- 
EntityAttributeContext
- 
EntityAttributeContext
 
- 
- 
Method Details- 
getPropertyPath
- 
canModifypublic boolean canModify()
- 
setModifyDeniedpublic void setModifyDenied()
- 
canViewpublic boolean canView()
- 
setViewDeniedpublic void setViewDenied()
- 
explainConstraintsDescription 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 interface- AccessContext
 
 
-