1 16 package web.security.impl; 17 18 import java.io.Serializable ; 19 20 import web.security.Operation; 21 22 23 27 public class OperationImpl implements Operation, Serializable { 28 29 protected String name; 30 protected String desc; 31 32 public OperationImpl() { 33 } 34 35 public OperationImpl(String name, String desc) { 36 this.name = name; 37 this.desc = desc; 38 } 39 40 public boolean equals(Operation opt) { 41 boolean be = false; 42 if(name!=null && opt!=null) 43 be = name.equals(opt.getName()); 44 return be; 45 } 46 49 public String getName() { 50 return name; 51 } 52 53 56 public String getDesc() { 57 return desc; 58 } 59 60 public void setDesc(String desc) { 61 this.desc = desc; 62 } 63 public void setName(String name) { 64 this.name = name; 65 } 66 public String toString() { 67 return "OPT["+getClass().getName()+"]:("+name+','+desc+')'; 68 } 69 } 70 | Popular Tags |