it.eng.spagobi.wapp.util
Class MenuUtilities
java.lang.Object
it.eng.spagobi.wapp.util.MenuUtilities
public class MenuUtilities
- extends java.lang.Object
Method Summary |
static boolean |
containsMenu(java.util.List lst,
Menu menu)
Check if the menu element in input is already presents into the list |
static boolean |
containsMenuChildren(java.util.List generalChildren,
Menu menuChildren)
Check if the child menu element in input is already presents into the list |
static java.util.List |
filterListForUser(java.util.List menuList,
it.eng.spago.security.IEngUserProfile userProfile)
|
static void |
getMenuItems(it.eng.spago.base.SourceBean request,
it.eng.spago.base.SourceBean response,
it.eng.spago.security.IEngUserProfile profile)
Gets the elements of menu relative by the user logged. |
static java.lang.String |
getMenuPath(Menu menu)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MODULE_PAGE
public static final java.lang.String MODULE_PAGE
- See Also:
- Constant Field Values
DEFAULT_LAYOUT_MODE
public static final java.lang.String DEFAULT_LAYOUT_MODE
- See Also:
- Constant Field Values
LAYOUT_ALL_TOP
public static final java.lang.String LAYOUT_ALL_TOP
- See Also:
- Constant Field Values
LAYOUT_ALL_LEFT
public static final java.lang.String LAYOUT_ALL_LEFT
- See Also:
- Constant Field Values
LAYOUT_TOP_LEFT
public static final java.lang.String LAYOUT_TOP_LEFT
- See Also:
- Constant Field Values
LAYOUT_ADMIN_MENU
public static final java.lang.String LAYOUT_ADMIN_MENU
- See Also:
- Constant Field Values
DEFAULT_EXTRA
public static final java.lang.String DEFAULT_EXTRA
- See Also:
- Constant Field Values
MENU_MODE
public static final java.lang.String MENU_MODE
- See Also:
- Constant Field Values
MENU_EXTRA
public static final java.lang.String MENU_EXTRA
- See Also:
- Constant Field Values
LIST_MENU
public static final java.lang.String LIST_MENU
- See Also:
- Constant Field Values
msgBuilder
protected static IMessageBuilder msgBuilder
locale
protected static java.util.Locale locale
originalChild
protected static Menu originalChild
positionChild
protected static int positionChild
MenuUtilities
public MenuUtilities()
getMenuPath
public static java.lang.String getMenuPath(Menu menu)
filterListForUser
public static java.util.List filterListForUser(java.util.List menuList,
it.eng.spago.security.IEngUserProfile userProfile)
getMenuItems
public static void getMenuItems(it.eng.spago.base.SourceBean request,
it.eng.spago.base.SourceBean response,
it.eng.spago.security.IEngUserProfile profile)
throws it.eng.spago.error.EMFUserError
- Gets the elements of menu relative by the user logged. It reaches the role from the request and
asks to the DB all detail
menu information, by calling the method
loadMenuByRoleId
.
- Parameters:
request
- The request Source Beanresponse
- The response Source Bean
- Throws:
it.eng.spago.error.EMFUserError
- If an exception occurs
containsMenu
public static boolean containsMenu(java.util.List lst,
Menu menu)
- Check if the menu element in input is already presents into the list
- Parameters:
lst
- the list to checkmenu
- the element to check
- Returns:
- true if the element is already presents, false otherwise
containsMenuChildren
public static boolean containsMenuChildren(java.util.List generalChildren,
Menu menuChildren)
- Check if the child menu element in input is already presents into the list
- Parameters:
lst
- the list to checkmenu
- the element to check
- Returns:
- true if the element is already presents, false otherwise