Package de.businesscode.bcdui.menu
Class Menus
- java.lang.Object
-
- de.businesscode.bcdui.menu.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 getInstanceMenu
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 settingsboolean
isEmpty()
if the Menu map is empty
-
-
-
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:
-
-