1 23 24 package org.infoglue.cms.entities.management; 25 26 import org.infoglue.cms.entities.kernel.BaseEntityVO; 27 import org.infoglue.cms.util.ConstraintExceptionBuffer; 28 import org.infoglue.cms.util.validators.ValidatorFactory; 29 30 public class InterceptorVO implements BaseEntityVO 31 { 32 private java.lang.Integer interceptorId; 33 private java.lang.String name; 34 private java.lang.String description; 35 private java.lang.String className; 36 37 38 public java.lang.Integer getInterceptorId() 39 { 40 return this.interceptorId; 41 } 42 43 public void setInterceptorId(java.lang.Integer interceptorId) 44 { 45 this.interceptorId = interceptorId; 46 } 47 48 public java.lang.String getName() 49 { 50 return this.name; 51 } 52 53 public void setName(java.lang.String name) 54 { 55 this.name = name; 56 } 57 58 public java.lang.String getDescription() 59 { 60 return this.description; 61 } 62 63 public void setDescription(java.lang.String description) 64 { 65 this.description = description; 66 } 67 68 public java.lang.String getClassName() 69 { 70 return className; 71 } 72 73 public void setClassName(java.lang.String className) 74 { 75 this.className = className; 76 } 77 78 public ConstraintExceptionBuffer validate() 79 { 80 ConstraintExceptionBuffer ceb = new ConstraintExceptionBuffer(); 81 82 ValidatorFactory.createStringValidator("Interceptor.name", true, 2, 100).validate(name, ceb); 83 ValidatorFactory.createStringValidator("Interceptor.description", true, 2, 100).validate(description, ceb); 84 ValidatorFactory.createStringValidator("Interceptor.className", true, 2, 100).validate(className, ceb); 85 86 return ceb; 87 } 88 89 public String toString() 90 { 91 return getName(); 92 } 93 94 public Integer getId() 95 { 96 return getInterceptorId(); 97 } 98 99 } 100 101 | Popular Tags |