KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > infoglue > cms > entities > management > InterceptorVO


1 /* ===============================================================================
2  *
3  * Part of the InfoGlue Content Management Platform (www.infoglue.org)
4  *
5  * ===============================================================================
6  *
7  * Copyright (C)
8  *
9  * This program is free software; you can redistribute it and/or modify it under
10  * the terms of the GNU General Public License version 2, as published by the
11  * Free Software Foundation. See the file LICENSE.html for more information.
12  *
13  * This program is distributed in the hope that it will be useful, but WITHOUT
14  * ANY WARRANTY, including the implied warranty of MERCHANTABILITY or FITNESS
15  * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License along with
18  * this program; if not, write to the Free Software Foundation, Inc. / 59 Temple
19  * Place, Suite 330 / Boston, MA 02111-1307 / USA.
20  *
21  * ===============================================================================
22  */

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 JavaDoc interceptorId;
33     private java.lang.String JavaDoc name;
34     private java.lang.String JavaDoc description;
35     private java.lang.String JavaDoc className;
36
37   
38     public java.lang.Integer JavaDoc getInterceptorId()
39     {
40         return this.interceptorId;
41     }
42                 
43     public void setInterceptorId(java.lang.Integer JavaDoc interceptorId)
44     {
45         this.interceptorId = interceptorId;
46     }
47     
48     public java.lang.String JavaDoc getName()
49     {
50         return this.name;
51     }
52                 
53     public void setName(java.lang.String JavaDoc name)
54     {
55         this.name = name;
56     }
57     
58     public java.lang.String JavaDoc getDescription()
59     {
60         return this.description;
61     }
62                 
63     public void setDescription(java.lang.String JavaDoc description)
64     {
65          this.description = description;
66     }
67     
68     public java.lang.String JavaDoc getClassName()
69     {
70         return className;
71     }
72
73     public void setClassName(java.lang.String JavaDoc 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 JavaDoc toString()
90     {
91         return getName();
92     }
93    
94     public Integer JavaDoc getId()
95     {
96         return getInterceptorId();
97     }
98
99 }
100         
101
Popular Tags