net.sf.navigator.example
Class SimplePermissionsAdapter

java.lang.Object
  extended by net.sf.navigator.example.SimplePermissionsAdapter
All Implemented Interfaces:
PermissionsAdapter

public class SimplePermissionsAdapter
extends Object
implements PermissionsAdapter

Author:
ssayles

Constructor Summary
SimplePermissionsAdapter(String[] theMenuNames)
          Creates a new instance of SimplePermissionAdapter
 
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

SimplePermissionsAdapter

public SimplePermissionsAdapter(String[] theMenuNames)
Creates a new instance of SimplePermissionAdapter

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.