Class Menus


  • public class Menus
    extends java.lang.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 Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static Menus getInstance()
      Method getInstance
      Menu getMenuByIdOrDefault​(java.lang.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
      boolean isEmpty()
      if the Menu map is empty
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getInstance

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

        public Menu getMenuByIdOrDefault​(java.lang.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: