Class MenuChecker

java.lang.Object
com.axelor.meta.service.menu.MenuChecker

public class MenuChecker extends Object
Defined the MetaMenu policies
  • Constructor Details

  • Method Details

    • isAllowed

      public boolean isAllowed(MetaMenu item)
      Check whether the given MetaMenu is allowed for the User
      Parameters:
      item - the meta menu to check
      Returns:
      true if the meta menu can be shown, false otherwise
    • canShow

      public boolean canShow(MetaMenu item)
      Check whether the given MetaMenu can be shown
      Parameters:
      item - the meta menu to check
      Returns:
      true if the meta menu can be shown, false otherwise