Package org.opennms.web.navigate
Class NavBarEntry.NavBarContext
- java.lang.Object
-
- org.opennms.web.navigate.NavBarEntry.NavBarContext
-
- All Implemented Interfaces:
MenuContext
- Enclosing interface:
- NavBarEntry
public static class NavBarEntry.NavBarContext extends Object implements MenuContext
-
-
Constructor Summary
Constructors Constructor Description NavBarContext(String location, java.util.function.Function<String,Boolean> userInRoleFunction)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getLocation()
boolean
isUserInRole(String role)
-
-
-
Method Detail
-
getLocation
public String getLocation()
- Specified by:
getLocation
in interfaceMenuContext
-
isUserInRole
public boolean isUserInRole(String role)
- Specified by:
isUserInRole
in interfaceMenuContext
-
-