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 java.lang.Object implements MenuContext
-
-
Constructor Summary
Constructors Constructor Description NavBarContext(java.lang.String location, java.util.function.Function<java.lang.String,java.lang.Boolean> userInRoleFunction)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getLocation()
boolean
isUserInRole(java.lang.String role)
-
-
-
Method Detail
-
getLocation
public java.lang.String getLocation()
- Specified by:
getLocation
in interfaceMenuContext
-
isUserInRole
public boolean isUserInRole(java.lang.String role)
- Specified by:
isUserInRole
in interfaceMenuContext
-
-