KickJava   Java API By Example, From Geeks To Geeks.

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


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 org.infoglue.cms.entities.kernel.BaseEntityVO;
27 import org.infoglue.cms.entities.structure.SiteNodeVO;
28
29 public class SmallSiteNodeImpl extends SiteNodeImpl
30 {
31     private SiteNodeVO valueObject = new SiteNodeVO();
32     //private SmallSiteNodeImpl parentSiteNode;
33
//private Collection childSiteNodes = new ArrayList();
34
//private Collection siteNodeVersions = new ArrayList();
35
//private RepositoryImpl repository;
36
//private SiteNodeTypeDefinitionImpl siteNodeTypeDefinition;
37

38     /**
39      * @see org.infoglue.cms.entities.kernel.BaseEntity#getVO()
40      */

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

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

57     public Integer JavaDoc getId()
58     {
59         return getSiteNodeId();
60     }
61     
62     public Object JavaDoc getIdAsObject()
63     {
64         return getId();
65     }
66
67     public SiteNodeVO getValueObject()
68     {
69         return this.valueObject;
70     }
71
72     public void setValueObject(SiteNodeVO valueObject)
73     {
74         this.valueObject = valueObject;
75     }
76     
77     public java.lang.Integer JavaDoc getSiteNodeId()
78     {
79         return this.valueObject.getSiteNodeId();
80     }
81             
82     public void setSiteNodeId(java.lang.Integer JavaDoc siteNodeId)
83     {
84         this.valueObject.setSiteNodeId(siteNodeId);
85     }
86       
87     public java.lang.String JavaDoc getName()
88     {
89         return this.valueObject.getName();
90     }
91             
92     public void setName(java.lang.String JavaDoc name)
93     {
94         this.valueObject.setName(name);
95     }
96     
97     public java.lang.Boolean JavaDoc getIsBranch()
98     {
99         return this.valueObject.getIsBranch();
100     }
101     
102     public void setIsBranch(java.lang.Boolean JavaDoc isBranch)
103     {
104         this.valueObject.setIsBranch(isBranch);
105     }
106       
107     public java.util.Date JavaDoc getPublishDateTime()
108     {
109         return this.valueObject.getPublishDateTime();
110     }
111             
112     public void setPublishDateTime(java.util.Date JavaDoc publishDateTime)
113     {
114         this.valueObject.setPublishDateTime(publishDateTime);
115     }
116       
117     public java.util.Date JavaDoc getExpireDateTime()
118     {
119         return this.valueObject.getExpireDateTime();
120     }
121             
122     public void setExpireDateTime(java.util.Date JavaDoc expireDateTime)
123     {
124         this.valueObject.setExpireDateTime(expireDateTime);
125     }
126      
127     public Integer JavaDoc getMetaInfoContentId()
128     {
129         return this.valueObject.getMetaInfoContentId();
130     }
131     
132     public void setMetaInfoContentId(Integer JavaDoc metaInfoContentId)
133     {
134         this.valueObject.setMetaInfoContentId(metaInfoContentId);
135     }
136
137     /*
138     public org.infoglue.cms.entities.structure.impl.simple.SmallSiteNodeImpl getParentSiteNode()
139     {
140         return this.parentSiteNode;
141     }
142             
143     public void setParentSiteNode (org.infoglue.cms.entities.structure.impl.simple.SmallSiteNodeImpl parentSiteNode)
144     {
145         this.parentSiteNode = parentSiteNode;
146     }
147       
148     public java.util.Collection getChildSiteNodes()
149     {
150         return this.childSiteNodes;
151     }
152             
153     public void setChildSiteNodes (java.util.Collection childSiteNodes)
154     {
155         this.childSiteNodes = childSiteNodes;
156         this.setChildCount(new Integer(childSiteNodes.size()) );
157     }
158       
159     public java.util.Collection getSiteNodeVersions()
160     {
161         return this.siteNodeVersions;
162     }
163             
164     public void setSiteNodeVersions (java.util.Collection siteNodeVersions)
165     {
166         this.siteNodeVersions = siteNodeVersions;
167     }
168     */

169       
170     public String JavaDoc getCreator()
171     {
172         return this.valueObject.getCreatorName();
173     }
174             
175     public void setCreator(String JavaDoc creator)
176     {
177         this.valueObject.setCreatorName(creator);
178     }
179     /*
180     public org.infoglue.cms.entities.management.impl.simple.RepositoryImpl getRepository()
181     {
182         return this.repository;
183     }
184             
185     public void setRepository (org.infoglue.cms.entities.management.impl.simple.RepositoryImpl repository)
186     {
187         this.repository = repository;
188         this.valueObject.setRepositoryId(repository.getRepositoryId());
189     }
190       
191     public org.infoglue.cms.entities.management.impl.simple.SiteNodeTypeDefinitionImpl getSiteNodeTypeDefinition()
192     {
193         return this.siteNodeTypeDefinition;
194     }
195             
196     public void setSiteNodeTypeDefinition (org.infoglue.cms.entities.management.impl.simple.SiteNodeTypeDefinitionImpl siteNodeTypeDefinition)
197     {
198         this.siteNodeTypeDefinition = siteNodeTypeDefinition;
199         if(siteNodeTypeDefinition != null)
200             this.valueObject.setSiteNodeTypeDefinitionId(siteNodeTypeDefinition.getSiteNodeTypeDefinitionId());
201     }
202     */

203     
204     /**
205      * Returns the childCount.
206      * @return Integer
207      */

208     public Integer JavaDoc getChildCount()
209     {
210         return this.valueObject.getChildCount();
211     }
212
213     /**
214      * Sets the childCount.
215      * @param childCount The childCount to set
216      */

217     public void setChildCount(Integer JavaDoc childCount)
218     {
219         this.valueObject.setChildCount(childCount);
220     }
221
222     public void setParentContentId(Integer JavaDoc parentSiteNodeId)
223     {
224         this.valueObject.setParentSiteNodeId(parentSiteNodeId);
225     }
226
227     public Integer JavaDoc getParentSiteNodeId()
228     {
229         return this.valueObject.getParentSiteNodeId();
230     }
231
232 }
233
Popular Tags