KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > myfaces > component > UserRoleAware


1 /*
2  * Copyright 2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.apache.myfaces.component;
17
18 /**
19  * Behavioral interface.
20  * Components that support user role checking should implement this interface
21  * to optimize property access.
22  *
23  * @author Manfred Geiler (latest modification by $Author: matze $)
24  * @version $Revision: 1.4 $ $Date: 2004/10/13 11:50:56 $
25  * $Log: UserRoleAware.java,v $
26  * Revision 1.4 2004/10/13 11:50:56 matze
27  * renamed packages to org.apache
28  *
29  * Revision 1.3 2004/07/01 21:53:10 mwessendorf
30  * ASF switch
31  *
32  * Revision 1.2 2004/05/18 14:31:36 manolito
33  * user role support completely moved to components source tree
34  *
35  * Revision 1.1 2004/03/31 07:19:20 manolito
36  * changed name from UserRoleSupport
37  *
38  */

39 public interface UserRoleAware
40 {
41     public static final String JavaDoc ENABLED_ON_USER_ROLE_ATTR = "enabledOnUserRole";
42     public static final String JavaDoc VISIBLE_ON_USER_ROLE_ATTR = "visibleOnUserRole";
43
44     public String JavaDoc getEnabledOnUserRole();
45     public void setEnabledOnUserRole(String JavaDoc userRole);
46
47     public String JavaDoc getVisibleOnUserRole();
48     public void setVisibleOnUserRole(String JavaDoc userRole);
49 }
50
Popular Tags