net.sf.navigator.menu
Class RolesPermissionsAdapter

java.lang.Object
  extended by 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

Constructor Summary
RolesPermissionsAdapter(javax.servlet.http.HttpServletRequest request)
           
 
Method Summary
 boolean isAllowed(MenuComponent menu)
          If the menu is allowed, this should return true.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RolesPermissionsAdapter

public RolesPermissionsAdapter(javax.servlet.http.HttpServletRequest request)
Method Detail

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.