Package com.axelor.meta.service.menu
Class MenuChecker
- java.lang.Object
-
- com.axelor.meta.service.menu.MenuChecker
-
-
Constructor Summary
Constructors Constructor Description MenuChecker(List<MetaMenu> menus, User user)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canShow(MetaMenu item)
Check whether the givenMetaMenu
can be shownboolean
isAllowed(MetaMenu item)
-
-
-
Method Detail
-
isAllowed
public boolean isAllowed(MetaMenu item)
- Parameters:
item
- the meta menu to check- Returns:
- true if the meta menu can be shown, false otherwise
-
-