Class UiMenuContext

java.lang.Object
io.jmix.ui.accesscontext.UiMenuContext
All Implemented Interfaces:
AccessContext

public class UiMenuContext extends Object implements AccessContext
  • Field Details

    • permitted

      protected boolean permitted
  • Constructor Details

    • UiMenuContext

      public UiMenuContext(MenuItem menuItem)
  • Method Details

    • getMenuItemId

      public String getMenuItemId()
    • getMenuItem

      public MenuItem getMenuItem()
    • isPermitted

      public boolean isPermitted()
    • setDenied

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