KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > infoglue > cms > entities > content > impl > simple > MediumContentImpl


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.content.impl.simple;
25
26 import org.infoglue.cms.entities.content.ContentVO;
27 import org.infoglue.cms.entities.kernel.BaseEntityVO;
28
29 public class MediumContentImpl extends ContentImpl
30 {
31     private ContentVO valueObject = new ContentVO();
32      
33     /**
34      * @see org.infoglue.cms.entities.kernel.BaseEntity#getVO()
35      */

36     public BaseEntityVO getVO()
37     {
38         return (BaseEntityVO) getValueObject();
39     }
40
41     /**
42      * @see org.infoglue.cms.entities.kernel.BaseEntity#setVO(BaseEntityVO)
43      */

44     public void setVO(BaseEntityVO valueObject)
45     {
46         setValueObject((ContentVO) valueObject);
47     }
48  
49     /**
50      * @see org.infoglue.cms.entities.kernel.BaseEntity#getId()
51      */

52     public Integer JavaDoc getId()
53     {
54         return getContentId();
55     }
56
57     public ContentVO getValueObject()
58     {
59         return this.valueObject;
60     }
61
62         
63     public void setValueObject(ContentVO valueObject)
64     {
65         this.valueObject = valueObject;
66     }
67
68     private java.util.Collection JavaDoc contentVersions = new java.util.ArrayList JavaDoc();
69     private org.infoglue.cms.entities.management.impl.simple.ContentTypeDefinitionImpl contentTypeDefinition;
70     private org.infoglue.cms.entities.management.impl.simple.RepositoryImpl repository;
71     /*
72     private java.util.Collection children = new java.util.ArrayList();
73     private org.infoglue.cms.entities.content.impl.simple.SmallContentImpl parentContent;
74     private java.util.Collection relatedContents = new java.util.ArrayList();
75     private java.util.Collection relatedByContents = new java.util.ArrayList();
76     */

77     
78     // SS - 021007: TODO: Is this ok?
79
private Integer JavaDoc childCount;
80   
81     
82     public java.lang.Integer JavaDoc getContentId()
83     {
84         return this.valueObject.getContentId();
85     }
86             
87     public void setContentId(java.lang.Integer JavaDoc contentId)
88     {
89         this.valueObject.setContentId(contentId);
90     }
91       
92     public java.lang.String JavaDoc getName()
93     {
94         return this.valueObject.getName();
95     }
96             
97     public void setName(java.lang.String JavaDoc name)
98     {
99         this.valueObject.setName(name);
100     }
101       
102     public java.util.Date JavaDoc getPublishDateTime()
103     {
104         return this.valueObject.getPublishDateTime();
105     }
106             
107     public void setPublishDateTime(java.util.Date JavaDoc publishDateTime)
108     {
109         this.valueObject.setPublishDateTime(publishDateTime);
110     }
111       
112     public java.util.Date JavaDoc getExpireDateTime()
113     {
114         return this.valueObject.getExpireDateTime();
115     }
116             
117     public void setExpireDateTime(java.util.Date JavaDoc expireDateTime)
118     {
119         this.valueObject.setExpireDateTime(expireDateTime);
120     }
121       
122     public java.lang.Boolean JavaDoc getIsBranch()
123     {
124         return this.valueObject.getIsBranch();
125     }
126     
127     public void setIsBranch(java.lang.Boolean JavaDoc isBranch)
128     {
129         this.valueObject.setIsBranch(isBranch);
130     }
131   
132     public org.infoglue.cms.entities.management.impl.simple.ContentTypeDefinitionImpl getContentTypeDefinition()
133     {
134         return this.contentTypeDefinition;
135     }
136             
137     public void setContentTypeDefinition (org.infoglue.cms.entities.management.impl.simple.ContentTypeDefinitionImpl contentTypeDefinition)
138     {
139         this.contentTypeDefinition = contentTypeDefinition;
140     }
141       
142     /*
143     public java.util.Collection getChildren()
144     {
145         return this.children;
146     }
147             
148     public void setChildren (java.util.Collection children)
149     {
150         this.children = children;
151         if (this.getChildCount()!= null)
152         {
153             if(this.getChildCount().intValue() == 0)
154                 this.setChildCount(new Integer(children.size()) );
155         }
156         else
157             this.setChildCount(new Integer(children.size()) );
158     }
159       
160     public org.infoglue.cms.entities.content.impl.simple.SmallContentImpl getParentContent()
161     {
162         return this.parentContent;
163     }
164      
165            
166     public void setParentContent (org.infoglue.cms.entities.content.impl.simple.SmallContentImpl parentContent)
167     {
168         this.parentContent = parentContent;
169     }
170     */

171      
172     public java.util.Collection JavaDoc getContentVersions()
173     {
174         return this.contentVersions;
175     }
176             
177     public void setContentVersions (java.util.Collection JavaDoc contentVersions)
178     {
179         this.contentVersions = contentVersions;
180     }
181       
182     public java.lang.String JavaDoc getCreator()
183     {
184         return this.valueObject.getCreatorName();
185     }
186             
187     public void setCreator (java.lang.String JavaDoc creator)
188     {
189         this.valueObject.setCreatorName(creator);
190     }
191       
192     public org.infoglue.cms.entities.management.impl.simple.RepositoryImpl getRepository()
193     {
194         return this.repository;
195     }
196             
197     public void setRepository (org.infoglue.cms.entities.management.impl.simple.RepositoryImpl repository)
198     {
199         this.repository = repository;
200         this.valueObject.setRepositoryId(repository.getRepositoryId());
201     }
202       
203     /*
204     public java.util.Collection getRelatedContents()
205     {
206         return this.relatedContents;
207     }
208             
209     public void setRelatedContents (java.util.Collection relatedContents)
210     {
211         this.relatedContents = relatedContents;
212     }
213       
214     public java.util.Collection getRelatedByContents()
215     {
216         return this.relatedByContents;
217     }
218             
219     public void setRelatedByContents (java.util.Collection relatedByContents)
220     {
221         this.relatedByContents = relatedByContents;
222     }
223     */

224     
225     /**
226      * Returns the childCount.
227      * @return Integer
228      */

229     public Integer JavaDoc getChildCount()
230     {
231         return this.valueObject.getChildCount();
232     }
233
234     /**
235      * Sets the childCount.
236      * @param childCount The childCount to set
237      */

238     public void setChildCount(Integer JavaDoc childCount)
239     {
240         this.valueObject.setChildCount(childCount);
241     }
242
243     public void setIsProtected(Integer JavaDoc isProtected)
244     {
245         this.valueObject.setIsProtected(isProtected);
246     }
247
248     public Integer JavaDoc getIsProtected()
249     {
250         return this.valueObject.getIsProtected();
251     }
252
253     public void setRepositoryId(Integer JavaDoc repositoryId)
254     {
255         this.valueObject.setRepositoryId(repositoryId);
256     }
257
258     public Integer JavaDoc getRepositoryId()
259     {
260         return this.valueObject.getRepositoryId();
261     }
262
263     public void setContentTypeDefinitionId(Integer JavaDoc contentTypeDefinitionId)
264     {
265         this.valueObject.setContentTypeDefinitionId(contentTypeDefinitionId);
266     }
267
268     public Integer JavaDoc getContentTypeDefinitionId()
269     {
270         return this.valueObject.getContentTypeDefinitionId();
271     }
272     
273     public void setParentContentId(Integer JavaDoc parentContentId)
274     {
275         this.valueObject.setParentContentId(parentContentId);
276     }
277
278     public Integer JavaDoc getParentContentId()
279     {
280         return this.valueObject.getParentContentId();
281     }
282 }
283
Popular Tags