Class CrudEntityContext

java.lang.Object
io.jmix.core.accesscontext.CrudEntityContext
All Implemented Interfaces:
AccessContext

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

    • entityClass

      protected final MetaClass entityClass
    • createPermitted

      protected boolean createPermitted
    • readPermitted

      protected boolean readPermitted
    • updatePermitted

      protected boolean updatePermitted
    • deletePermitted

      protected boolean deletePermitted
  • Constructor Details

    • CrudEntityContext

      public CrudEntityContext(MetaClass entityClass)
  • Method Details

    • getEntityClass

      public MetaClass getEntityClass()
    • isCreatePermitted

      public boolean isCreatePermitted()
    • setCreateDenied

      public void setCreateDenied()
    • isReadPermitted

      public boolean isReadPermitted()
    • setReadDenied

      public void setReadDenied()
    • isUpdatePermitted

      public boolean isUpdatePermitted()
    • setUpdateDenied

      public void setUpdateDenied()
    • isDeletePermitted

      public boolean isDeletePermitted()
    • setDeleteDenied

      public void setDeleteDenied()
    • 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