org.zeroexchange.web.navigation.menu
Interface MenuService

All Known Implementing Classes:
DefaultMenuService

public interface MenuService

Author:
black

Method Summary
 List<MenuItem> filterAccordingPermissions(List<MenuItem> items)
          Filters specified list according current user's permissions.
 String getImage(MenuItem menuItem)
          Safely returns the menu image.
 String getKey(MenuItem menuItem)
          Safely returns the menu key.
 List<MenuItem> getSubmenu(String key)
          Returns submenu of the current menu.
 String getTitle(MenuItem menuItem)
          Returns the title of the menu item.
 List<MenuItem> getTopItems()
          Returns top menu items.
 

Method Detail

filterAccordingPermissions

List<MenuItem> filterAccordingPermissions(List<MenuItem> items)
Filters specified list according current user's permissions.


getTopItems

List<MenuItem> getTopItems()
Returns top menu items.


getSubmenu

List<MenuItem> getSubmenu(String key)
Returns submenu of the current menu.


getKey

String getKey(MenuItem menuItem)
Safely returns the menu key.


getImage

String getImage(MenuItem menuItem)
Safely returns the menu image.


getTitle

String getTitle(MenuItem menuItem)
Returns the title of the menu item.



Copyright © 2013. All Rights Reserved.