net.sf.navigator.menu
Class RolesPermissionsAdapter
java.lang.Object
net.sf.navigator.menu.RolesPermissionsAdapter
- All Implemented Interfaces:
- PermissionsAdapter
public class RolesPermissionsAdapter
- extends Object
- implements PermissionsAdapter
This class used container-managed security to check access
to menus. The roles are set in menu-config.xml.
- Author:
- Matt Raible
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RolesPermissionsAdapter
public RolesPermissionsAdapter(javax.servlet.http.HttpServletRequest request)
isAllowed
public boolean isAllowed(MenuComponent menu)
- If the menu is allowed, this should return true.
- Specified by:
isAllowed
in interface PermissionsAdapter
- Returns:
- whether or not the menu is allowed.
Copyright © 2003-2007 SourceForge. All Rights Reserved.