Class UiMenuContext

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

public class UiMenuContext extends Object implements AccessContext
Defines authorization point for UI menu items.
  • 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