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 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,
java.util.Locale locale)
|
static int |
indexOf(java.util.List lst,
Menu menu)
Check if the menu element in input is already presents into the list |
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
MenuUtilities
public MenuUtilities()
getMenuPath
public static java.lang.String getMenuPath(Menu menu,
java.util.Locale locale)
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
indexOf
public static int indexOf(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:
- the index of the input menu item or -1 if it is not found in the list