KickJava   Java API By Example, From Geeks To Geeks.

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


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.InterceptionPoint;
31 import org.infoglue.cms.entities.management.InterceptionPointVO;
32 import org.infoglue.cms.exception.ConstraintException;
33
34 public class InterceptionPointImpl implements InterceptionPoint
35 {
36     private InterceptionPointVO valueObject = new InterceptionPointVO();
37     private java.util.Collection JavaDoc interceptors = new ArrayList JavaDoc();
38
39     public Integer JavaDoc getInterceptionPointId()
40     {
41         return this.valueObject.getInterceptionPointId();
42     }
43
44     public Object JavaDoc getIdAsObject()
45     {
46         return getId();
47     }
48
49     public void setInterceptionPointId(Integer JavaDoc interceptionPointId)
50     {
51         this.valueObject.setInterceptionPointId(interceptionPointId);
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) throws ConstraintException
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) throws ConstraintException
70     {
71         this.valueObject.setDescription(description);
72     }
73       
74     public String JavaDoc getCategory()
75     {
76         return this.valueObject.getCategory();
77     }
78     
79     public void setCategory(String JavaDoc category) throws ConstraintException
80     {
81         this.valueObject.setCategory(category);
82     }
83     
84     public Boolean JavaDoc getUsesExtraDataForAccessControl()
85     {
86         return this.valueObject.getUsesExtraDataForAccessControl();
87     }
88     
89     public void setUsesExtraDataForAccessControl(Boolean JavaDoc usesExtraDataForAccessControl) throws ConstraintException
90     {
91         this.valueObject.setUsesExtraDataForAccessControl(usesExtraDataForAccessControl);
92     }
93       
94     public Collection JavaDoc getInterceptors()
95     {
96         return this.interceptors;
97     }
98
99     public void setInterceptors(Collection JavaDoc interceptors)
100     {
101         this.interceptors = interceptors;
102     }
103
104     public Integer JavaDoc getId()
105     {
106         return this.getInterceptionPointId();
107     }
108
109     public String JavaDoc toString()
110     {
111         return this.valueObject.toString();
112     }
113
114     public InterceptionPointVO getValueObject()
115     {
116         return this.valueObject;
117     }
118
119     public void setValueObject(InterceptionPointVO valueObject)
120     {
121         this.valueObject = valueObject;
122     }
123
124     public BaseEntityVO getVO()
125     {
126         return (BaseEntityVO) getValueObject();
127     }
128
129     public void setVO(BaseEntityVO valueObject)
130     {
131         setValueObject((InterceptionPointVO) valueObject);
132     }
133
134 }
135
Popular Tags