Class Menus

java.lang.Object
de.businesscode.bcdui.menu.Menus

public class Menus extends Object
A singleton container class for all the menus defined in the application.
These menus are defined in static XML files under "/WEB-INF/bcdui/menu/" and read
  • Method Details

    • getInstance

      public static Menus getInstance() throws jakarta.xml.bind.JAXBException, IOException
      Method getInstance
      Returns:
      Throws:
      jakarta.xml.bind.JAXBException
      IOException
    • getMenuByIdOrDefault

      public Menu getMenuByIdOrDefault(String menuId)
      gets Menu by ID or default menu if parameter menuId is null or empty if the application contains security subject - the menu will be filtered according to subject security settings
      Parameters:
      menuId -
      Returns:
    • isEmpty

      public boolean isEmpty()
      if the Menu map is empty
      Returns: