KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > web > security > Operation


1 /*
2  * This program is free software; you can redistribute it and/or modify
3  * it under the terms of the GNU General Public License as published by
4  * the Free Software Foundation; either version 2 of the License, or
5  * (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU Library General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software
14  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
15  */

16 package web.security;
17
18 /**
19  * 操作
20  * <p>
21  * 操作就是对一项具体的功能的作用,例如添加、修改、删除等操作
22  * </p>
23  * @author liudong
24  */

25 public interface Operation {
26     
27     public final static String JavaDoc EDIT = "Edit";
28     public final static String JavaDoc DELETE = "Delete";
29     public final static String JavaDoc CREATE = "Create";
30     public final static String JavaDoc LIST = "List";
31     public final static String JavaDoc VIEW = "View";
32     
33     /**
34      * 得到操作的名称
35      * @return
36      */

37     public String JavaDoc getName();
38     
39     /**
40      * 操作的详细描述信息
41      * @return
42      */

43     public String JavaDoc getDesc();
44
45     /**
46      * 判断两个操作是否想容纳
47      * @param opt
48      * @return
49      */

50     public boolean equals(Operation opt);
51 }
52
Popular Tags