1 /*
2 * PermissionsAdapter.java
3 *
4 * Created on April 29, 2002, 10:15 PM
5 */
6
7 package net.sf.navigator.menu;
8
9 /**
10 * Defines a pluggable adapter into the menu framework that is used for
11 * checking permissions on menus.
12 *
13 * @author ssayles
14 */
15 public interface PermissionsAdapter {
16
17 /**
18 * If the menu is allowed, this should return true.
19 *
20 * @return whether or not the menu is allowed.
21 */
22 public boolean isAllowed(MenuComponent menu);
23
24 }