Class EntityAttributeContext

java.lang.Object
io.jmix.core.accesscontext.EntityAttributeContext
All Implemented Interfaces:
AccessContext
Direct Known Subclasses:
FlowuiEntityAttributeContext, UiEntityAttributeContext

public class EntityAttributeContext extends Object implements AccessContext
An access context to check permissions on entity attributes.
  • Field Details

    • propertyPath

      protected final MetaPropertyPath propertyPath
    • viewPermitted

      protected boolean viewPermitted
    • modifyPermitted

      protected boolean modifyPermitted
  • Constructor Details

    • EntityAttributeContext

      public EntityAttributeContext(MetaPropertyPath propertyPath)
    • EntityAttributeContext

      public EntityAttributeContext(MetaClass metaClass, String attribute)
  • Method Details

    • getPropertyPath

      public MetaPropertyPath getPropertyPath()
    • canModify

      public boolean canModify()
    • setModifyDenied

      public void setModifyDenied()
    • canView

      public boolean canView()
    • setViewDenied

      public void setViewDenied()
    • explainConstraints

      @Nullable public String 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 interface AccessContext