KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > infoglue > cms > entities > management > impl > simple > InterceptorImpl


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.impl.simple;
25
26 import java.util.ArrayList JavaDoc;
27 import java.util.Collection JavaDoc;
28
29 import org.infoglue.cms.entities.kernel.BaseEntityVO;
30 import org.infoglue.cms.entities.management.Interceptor;
31 import org.infoglue.cms.entities.management.InterceptorVO;
32
33
34 public class InterceptorImpl implements Interceptor
35 {
36     private InterceptorVO valueObject = new InterceptorVO();
37     private java.util.Collection JavaDoc interceptionPoints = new ArrayList JavaDoc();
38   
39     public java.lang.Integer JavaDoc getInterceptorId()
40     {
41         return this.valueObject.getInterceptorId();
42     }
43       
44     public Object JavaDoc getIdAsObject()
45     {
46         return getId();
47     }
48       
49     public void setInterceptorId(java.lang.Integer JavaDoc interceptorId)
50     {
51         this.valueObject.setInterceptorId(interceptorId);
52     }
53       
54     public java.lang.String JavaDoc getName()
55     {
56         return this.valueObject.getName();
57     }
58             
59     public void setName(java.lang.String JavaDoc name)
60     {
61         this.valueObject.setName(name);
62     }
63       
64     public java.lang.String JavaDoc getDescription()
65     {
66         return this.valueObject.getDescription();
67     }
68             
69     public void setDescription(java.lang.String JavaDoc description)
70     {
71         this.valueObject.setDescription(description);
72     }
73       
74     public java.lang.String JavaDoc getClassName()
75     {
76         return this.valueObject.getClassName();
77     }
78             
79     public void setClassName(java.lang.String JavaDoc className)
80     {
81         this.valueObject.setClassName(className);
82     }
83       
84     public Collection JavaDoc getInterceptionPoints()
85     {
86         return this.interceptionPoints;
87     }
88
89     public void setInterceptionPoints(Collection JavaDoc interceptionPoints)
90     {
91         this.interceptionPoints = interceptionPoints;
92     }
93     
94     public Integer JavaDoc getId()
95     {
96         return this.getInterceptorId();
97     }
98
99     public String JavaDoc toString()
100     {
101         return this.valueObject.toString();
102     }
103
104     public InterceptorVO getValueObject()
105     {
106         return this.valueObject;
107     }
108
109     public void setValueObject(InterceptorVO valueObject)
110     {
111         this.valueObject = valueObject;
112     }
113
114     public BaseEntityVO getVO()
115     {
116         return (BaseEntityVO) getValueObject();
117     }
118     
119     public void setVO(BaseEntityVO valueObject)
120     {
121         setValueObject((InterceptorVO) valueObject);
122     }
123 }
124
Popular Tags