01: /*
02: * This program is free software; you can redistribute it and/or modify
03: * it under the terms of the GNU General Public License as published by
04: * the Free Software Foundation; either version 2 of the License, or
05: * (at your option) any later version.
06: *
07: * This program is distributed in the hope that it will be useful,
08: * but WITHOUT ANY WARRANTY; without even the implied warranty of
09: * 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 EDIT = "Edit";
28: public final static String DELETE = "Delete";
29: public final static String CREATE = "Create";
30: public final static String LIST = "List";
31: public final static String VIEW = "View";
32:
33: /**
34: * 得到操作的名称
35: * @return
36: */
37: public String getName();
38:
39: /**
40: * 操作的详细描述信息
41: * @return
42: */
43: public String getDesc();
44:
45: /**
46: * 判断两个操作是否想容纳
47: * @param opt
48: * @return
49: */
50: public boolean equals(Operation opt);
51: }
|