Package step.plugins.menu
Class MenuManager
- java.lang.Object
-
- step.plugins.menu.MenuManager
-
public class MenuManager extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DEFAULT_ROLE
-
Constructor Summary
Constructors Constructor Description MenuManager(MenuConfigAccessor menuConfigAccessor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<MenuElement>
getMenuElementsForRole(java.lang.String userRole)
-
-
-
Field Detail
-
DEFAULT_ROLE
public static final java.lang.String DEFAULT_ROLE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MenuManager
public MenuManager(MenuConfigAccessor menuConfigAccessor)
-
-
Method Detail
-
getMenuElementsForRole
public java.util.List<MenuElement> getMenuElementsForRole(java.lang.String userRole)
- Returns:
- the menu configuration depending on userRole (or the default configuration if userRole is null or the configuration for the userRole is missing)
-
-