Class UiEntityContext

java.lang.Object
io.jmix.flowui.accesscontext.UiEntityContext
All Implemented Interfaces:
AccessContext

public class UiEntityContext extends Object implements AccessContext
  • Field Details

    • entityClass

      protected final MetaClass entityClass
    • createPermitted

      protected boolean createPermitted
    • viewPermitted

      protected boolean viewPermitted
    • editPermitted

      protected boolean editPermitted
    • deletePermitted

      protected boolean deletePermitted
  • Constructor Details

    • UiEntityContext

      public UiEntityContext(MetaClass entityClass)
  • Method Details

    • getEntityClass

      public MetaClass getEntityClass()
    • isCreatePermitted

      public boolean isCreatePermitted()
    • setCreateDenied

      public void setCreateDenied()
    • isViewPermitted

      public boolean isViewPermitted()
    • setViewDenied

      public void setViewDenied()
    • isEditPermitted

      public boolean isEditPermitted()
    • setEditDenied

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