KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tonbeller > wcf > component > RoleExprHolder


1 /*
2  * ====================================================================
3  * This software is subject to the terms of the Common Public License
4  * Agreement, available at the following URL:
5  * http://www.opensource.org/licenses/cpl.html .
6  * Copyright (C) 2003-2004 TONBELLER AG.
7  * All Rights Reserved.
8  * You must accept the terms of that agreement to use this software.
9  * ====================================================================
10  *
11  *
12  */

13 package com.tonbeller.wcf.component;
14
15 /**
16  * @author av
17  */

18 public interface RoleExprHolder {
19
20   /**
21    * name of a role, optionally prefixed by "!". If the name of
22    * a role is returned, then members of that role may access
23    * this component. If the role name is prefixed with "!", then
24    * everybody except members of that role may access this component.
25    *
26    * @return "tomcat" to allow members of the role tomcat to access
27    * this component, "!tomcat" to allow everybody except tomcat
28    * members access.
29    */

30   String JavaDoc getRoleExpr();
31   void setRoleExpr(String JavaDoc expr);
32
33 }
34
Popular Tags