KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > infoglue > cms > entities > publishing > impl > simple > PublicationImpl


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.publishing.impl.simple;
25
26 import org.infoglue.cms.entities.kernel.BaseEntityVO;
27 import org.infoglue.cms.entities.publishing.Publication;
28 import org.infoglue.cms.entities.publishing.PublicationVO;
29
30 public class PublicationImpl implements Publication
31 {
32     
33     /**
34      * @see org.infoglue.cms.entities.publishing.Publication#setRepositoryId(Integer)
35      */

36     
37     public void setRepositoryId(Integer JavaDoc repositoryId)
38     {
39         this.valueObject.setRepositoryId(repositoryId);
40     }
41     
42     /**
43      * @see org.infoglue.cms.entities.publishing.Publication#getRepositoryId()
44      */

45     
46     public Integer JavaDoc getRepositoryId()
47     {
48         return this.valueObject.getRepositoryId();
49     }
50
51     public Object JavaDoc getIdAsObject()
52     {
53         return getId();
54     }
55
56     /**
57      * @see org.infoglue.cms.entities.kernel.BaseEntity#getId()
58      */

59     public Integer JavaDoc getId()
60     {
61         return getPublicationId();
62     }
63
64     /**
65      * @see org.infoglue.cms.entities.kernel.BaseEntity#getVO()
66      */

67     public BaseEntityVO getVO()
68     {
69         return (BaseEntityVO) getValueObject();
70     }
71
72     /**
73      * @see org.infoglue.cms.entities.kernel.BaseEntity#setVO(BaseEntityVO)
74      */

75     public void setVO(BaseEntityVO valueObject)
76     {
77         setValueObject((PublicationVO) valueObject);
78     }
79
80     
81     private PublicationVO valueObject = new PublicationVO();
82      
83     public PublicationVO getValueObject()
84     {
85         return this.valueObject;
86     }
87
88         
89     public void setValueObject(PublicationVO valueObject)
90     {
91         this.valueObject = valueObject;
92     }
93     
94     private java.util.Collection JavaDoc publicationDetails;
95     private java.util.Collection JavaDoc contentVersionsToPublish;
96     private java.util.Collection JavaDoc siteNodeVersionsToPublish;
97   
98     
99     public java.lang.Integer JavaDoc getPublicationId()
100     {
101         return this.valueObject.getPublicationId();
102     }
103             
104     public void setPublicationId(java.lang.Integer JavaDoc publicationId)
105     {
106         this.valueObject.setPublicationId(publicationId);
107     }
108       
109     public java.lang.String JavaDoc getName()
110     {
111         return this.valueObject.getName();
112     }
113             
114     public void setName(java.lang.String JavaDoc name)
115     {
116         this.valueObject.setName(name);
117     }
118       
119     public java.lang.String JavaDoc getDescription()
120     {
121         return this.valueObject.getDescription();
122     }
123             
124     public void setDescription(java.lang.String JavaDoc description)
125     {
126         this.valueObject.setDescription(description);
127     }
128       
129     public java.util.Date JavaDoc getPublicationDateTime()
130     {
131         return this.valueObject.getPublicationDateTime();
132     }
133             
134     public void setPublicationDateTime(java.util.Date JavaDoc publicationDateTime)
135     {
136         this.valueObject.setPublicationDateTime(publicationDateTime);
137     }
138       
139     public java.util.Collection JavaDoc getPublicationDetails()
140     {
141         return this.publicationDetails;
142     }
143     
144     public void setPublicationDetails(java.util.Collection JavaDoc publicationDetails)
145     {
146         this.publicationDetails = publicationDetails;
147     }
148     
149     public java.util.Collection JavaDoc getContentVersionsToPublish()
150     {
151         return this.contentVersionsToPublish;
152     }
153             
154     public void setContentVersionsToPublish (java.util.Collection JavaDoc contentVersionsToPublish)
155     {
156         this.contentVersionsToPublish = contentVersionsToPublish;
157     }
158       
159     public java.util.Collection JavaDoc getSiteNodeVersionsToPublish()
160     {
161         return this.siteNodeVersionsToPublish;
162     }
163             
164     public void setSiteNodeVersionsToPublish (java.util.Collection JavaDoc siteNodeVersionsToPublish)
165     {
166         this.siteNodeVersionsToPublish = siteNodeVersionsToPublish;
167     }
168       
169     public String JavaDoc getPublisher()
170     {
171         return this.valueObject.getPublisher();
172     }
173             
174     public void setPublisher (String JavaDoc publisher)
175     {
176         this.valueObject.setPublisher(publisher);
177     }
178   }
179
Popular Tags