Package org.molgenis.web.menu
Class MenuReaderServiceImpl
- java.lang.Object
-
- org.molgenis.web.menu.MenuReaderServiceImpl
-
- All Implemented Interfaces:
MenuReaderService
public class MenuReaderServiceImpl extends Object implements MenuReaderService
-
-
Constructor Summary
Constructors Constructor Description MenuReaderServiceImpl(org.molgenis.settings.AppSettings appSettings, com.google.gson.Gson gson, org.molgenis.security.core.UserPermissionEvaluator userPermissionEvaluator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringfindMenuItemPath(String menuItemId)Find path leading up to a MenuItem.Optional<Menu>getMenu()Retrieves the menu, filtered to show only the part you're permitted to view.
-
-
-
Method Detail
-
getMenu
public Optional<Menu> getMenu()
Description copied from interface:MenuReaderServiceRetrieves the menu, filtered to show only the part you're permitted to view.- Specified by:
getMenuin interfaceMenuReaderService
-
findMenuItemPath
@Nullable public String findMenuItemPath(String menuItemId)
Description copied from interface:MenuReaderServiceFind path leading up to a MenuItem.- Specified by:
findMenuItemPathin interfaceMenuReaderService- Parameters:
menuItemId- ID of the MenuItem- Returns:
- path of the menu item, starting with menu/ or null if the menu item was not found
-
-