Package de.businesscode.bcdui.menu
Class Menus
java.lang.Object
de.businesscode.bcdui.menu.Menus
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
These menus are defined in static XML files under "/WEB-INF/bcdui/menu/" and read
-
Method Summary
Modifier and TypeMethodDescriptionstatic Menus
Method getInstancegetMenuByIdOrDefault
(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 Details
-
getInstance
Method getInstance- Returns:
- Throws:
jakarta.xml.bind.JAXBException
IOException
-
getMenuByIdOrDefault
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:
-