KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > infoglue > cms > entities > structure > impl > simple > SiteNodeVersionImpl


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.structure.impl.simple;
25
26 import java.util.ArrayList JavaDoc;
27
28 import org.infoglue.cms.entities.kernel.BaseEntityVO;
29 import org.infoglue.cms.entities.structure.SiteNodeVersion;
30 import org.infoglue.cms.entities.structure.SiteNodeVersionVO;
31
32 public class SiteNodeVersionImpl implements SiteNodeVersion
33 {
34     private SiteNodeVersionVO valueObject = new SiteNodeVersionVO();
35
36     private org.infoglue.cms.entities.structure.impl.simple.SiteNodeImpl owningSiteNode;
37     private java.util.Collection JavaDoc serviceBindings = new ArrayList JavaDoc();
38
39      
40     /**
41      * @see org.infoglue.cms.entities.kernel.BaseEntity#getVO()
42      */

43     public BaseEntityVO getVO()
44     {
45         return (BaseEntityVO) getValueObject();
46     }
47
48     /**
49      * @see org.infoglue.cms.entities.kernel.BaseEntity#setVO(BaseEntityVO)
50      */

51     public void setVO(BaseEntityVO valueObject)
52     {
53         setValueObject((SiteNodeVersionVO) valueObject);
54     }
55  
56     /**
57      * @see org.infoglue.cms.entities.kernel.BaseEntity#getId()
58      */

59     public Integer JavaDoc getId()
60     {
61         return getSiteNodeVersionId();
62     }
63      
64     public Object JavaDoc getIdAsObject()
65     {
66         return getId();
67     }
68
69     public SiteNodeVersionVO getValueObject()
70     {
71         return this.valueObject;
72     }
73         
74     public void setValueObject(SiteNodeVersionVO valueObject)
75     {
76         this.valueObject = valueObject;
77     }
78     
79     public java.lang.Integer JavaDoc getSiteNodeVersionId()
80     {
81         return this.valueObject.getSiteNodeVersionId();
82     }
83             
84     public void setSiteNodeVersionId(java.lang.Integer JavaDoc siteNodeVersionId)
85     {
86         this.valueObject.setSiteNodeVersionId(siteNodeVersionId);
87     }
88       
89     public java.lang.Integer JavaDoc getStateId()
90     {
91         return this.valueObject.getStateId();
92     }
93             
94     public void setStateId(java.lang.Integer JavaDoc stateId)
95     {
96         this.valueObject.setStateId(stateId);
97     }
98       
99     public java.lang.Integer JavaDoc getVersionNumber()
100     {
101         return this.valueObject.getVersionNumber();
102     }
103             
104     public void setVersionNumber(java.lang.Integer JavaDoc versionNumber)
105     {
106         this.valueObject.setVersionNumber(versionNumber);
107     }
108       
109     public java.util.Date JavaDoc getModifiedDateTime()
110     {
111         return this.valueObject.getModifiedDateTime();
112     }
113             
114     public void setModifiedDateTime(java.util.Date JavaDoc modifiedDateTime)
115     {
116         this.valueObject.setModifiedDateTime(modifiedDateTime);
117     }
118       
119     public java.lang.String JavaDoc getVersionComment()
120     {
121         return this.valueObject.getVersionComment();
122     }
123             
124     public void setVersionComment(java.lang.String JavaDoc versionComment)
125     {
126         this.valueObject.setVersionComment(versionComment);
127     }
128       
129     public java.lang.Boolean JavaDoc getIsCheckedOut()
130     {
131         return this.valueObject.getIsCheckedOut();
132     }
133             
134     public void setIsCheckedOut(java.lang.Boolean JavaDoc isCheckedOut)
135     {
136         this.valueObject.setIsCheckedOut(isCheckedOut);
137     }
138       
139     public java.lang.Boolean JavaDoc getIsActive()
140     {
141         return this.valueObject.getIsActive();
142     }
143     
144     public void setIsActive(java.lang.Boolean JavaDoc isActive)
145     {
146         this.valueObject.setIsActive(isActive);
147     }
148     
149     public org.infoglue.cms.entities.structure.impl.simple.SiteNodeImpl getOwningSiteNode()
150     {
151         return this.owningSiteNode;
152     }
153             
154     public void setOwningSiteNode (org.infoglue.cms.entities.structure.impl.simple.SiteNodeImpl owningSiteNode)
155     {
156         this.owningSiteNode = owningSiteNode;
157         if(owningSiteNode != null)
158         {
159             this.valueObject.setSiteNodeId(owningSiteNode.getSiteNodeId());
160             this.valueObject.setSiteNodeName(owningSiteNode.getName());
161         }
162     }
163     
164     public String JavaDoc getVersionModifier()
165     {
166         return this.valueObject.getVersionModifier();
167     }
168             
169     public void setVersionModifier (String JavaDoc versionModifier)
170     {
171         this.valueObject.setVersionModifier(versionModifier);
172     }
173     
174     public java.util.Collection JavaDoc getServiceBindings()
175     {
176         return this.serviceBindings;
177     }
178     
179     public void setServiceBindings(java.util.Collection JavaDoc serviceBindings)
180     {
181         this.serviceBindings = serviceBindings;
182     }
183
184     public String JavaDoc getContentType()
185     {
186         return this.valueObject.getContentType();
187     }
188
189     public void setContentType(String JavaDoc contentType)
190     {
191         this.valueObject.setContentType(contentType);
192     }
193
194     public String JavaDoc getPageCacheKey()
195     {
196         return this.valueObject.getPageCacheKey();
197     }
198
199     public void setPageCacheKey(String JavaDoc pageCacheKey)
200     {
201         this.valueObject.setPageCacheKey(pageCacheKey);
202     }
203
204     public Integer JavaDoc getDisableEditOnSight()
205     {
206         return this.valueObject.getDisableEditOnSight();
207     }
208
209     public void setDisableEditOnSight(Integer JavaDoc disableEditOnSight)
210     {
211         this.valueObject.setDisableEditOnSight(disableEditOnSight);
212     }
213
214     public Integer JavaDoc getDisablePageCache()
215     {
216         return this.valueObject.getDisablePageCache();
217     }
218
219     public void setDisablePageCache(Integer JavaDoc disablePageCache)
220     {
221         this.valueObject.setDisablePageCache(disablePageCache);
222     }
223
224     public Integer JavaDoc getIsProtected()
225     {
226         return this.valueObject.getIsProtected();
227     }
228
229     public void setIsProtected(Integer JavaDoc isProtected)
230     {
231         this.valueObject.setIsProtected(isProtected);
232     }
233
234     public Integer JavaDoc getDisableLanguages()
235     {
236         return this.valueObject.getDisableLanguages();
237     }
238
239     public void setDisableLanguages(Integer JavaDoc disableLanguages)
240     {
241         this.valueObject.setDisableLanguages(disableLanguages);
242     }
243
244 }
245
Popular Tags