1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.journal.model;
24  
25  import java.io.Serializable;
26  
27  import java.util.ArrayList;
28  import java.util.Date;
29  import java.util.List;
30  
31  /**
32   * <a href="JournalArticleSoap.java.html"><b><i>View Source</i></b></a>
33   *
34   * <p>
35   * ServiceBuilder generated this class. Modifications in this class will be
36   * overwritten the next time is generated.
37   * </p>
38   *
39   * <p>
40   * This class is used by
41   * {@link com.liferay.portlet.journal.service.http.JournalArticleServiceSoap}.
42   * </p>
43   *
44   * @author    Brian Wing Shun Chan
45   * @see       com.liferay.portlet.journal.service.http.JournalArticleServiceSoap
46   * @generated
47   */
48  public class JournalArticleSoap implements Serializable {
49      public static JournalArticleSoap toSoapModel(JournalArticle model) {
50          JournalArticleSoap soapModel = new JournalArticleSoap();
51  
52          soapModel.setUuid(model.getUuid());
53          soapModel.setId(model.getId());
54          soapModel.setResourcePrimKey(model.getResourcePrimKey());
55          soapModel.setGroupId(model.getGroupId());
56          soapModel.setCompanyId(model.getCompanyId());
57          soapModel.setUserId(model.getUserId());
58          soapModel.setUserName(model.getUserName());
59          soapModel.setCreateDate(model.getCreateDate());
60          soapModel.setModifiedDate(model.getModifiedDate());
61          soapModel.setArticleId(model.getArticleId());
62          soapModel.setVersion(model.getVersion());
63          soapModel.setTitle(model.getTitle());
64          soapModel.setUrlTitle(model.getUrlTitle());
65          soapModel.setDescription(model.getDescription());
66          soapModel.setContent(model.getContent());
67          soapModel.setType(model.getType());
68          soapModel.setStructureId(model.getStructureId());
69          soapModel.setTemplateId(model.getTemplateId());
70          soapModel.setDisplayDate(model.getDisplayDate());
71          soapModel.setApproved(model.getApproved());
72          soapModel.setApprovedByUserId(model.getApprovedByUserId());
73          soapModel.setApprovedByUserName(model.getApprovedByUserName());
74          soapModel.setApprovedDate(model.getApprovedDate());
75          soapModel.setExpired(model.getExpired());
76          soapModel.setExpirationDate(model.getExpirationDate());
77          soapModel.setReviewDate(model.getReviewDate());
78          soapModel.setIndexable(model.getIndexable());
79          soapModel.setSmallImage(model.getSmallImage());
80          soapModel.setSmallImageId(model.getSmallImageId());
81          soapModel.setSmallImageURL(model.getSmallImageURL());
82  
83          return soapModel;
84      }
85  
86      public static JournalArticleSoap[] toSoapModels(JournalArticle[] models) {
87          JournalArticleSoap[] soapModels = new JournalArticleSoap[models.length];
88  
89          for (int i = 0; i < models.length; i++) {
90              soapModels[i] = toSoapModel(models[i]);
91          }
92  
93          return soapModels;
94      }
95  
96      public static JournalArticleSoap[][] toSoapModels(JournalArticle[][] models) {
97          JournalArticleSoap[][] soapModels = null;
98  
99          if (models.length > 0) {
100             soapModels = new JournalArticleSoap[models.length][models[0].length];
101         }
102         else {
103             soapModels = new JournalArticleSoap[0][0];
104         }
105 
106         for (int i = 0; i < models.length; i++) {
107             soapModels[i] = toSoapModels(models[i]);
108         }
109 
110         return soapModels;
111     }
112 
113     public static JournalArticleSoap[] toSoapModels(List<JournalArticle> models) {
114         List<JournalArticleSoap> soapModels = new ArrayList<JournalArticleSoap>(models.size());
115 
116         for (JournalArticle model : models) {
117             soapModels.add(toSoapModel(model));
118         }
119 
120         return soapModels.toArray(new JournalArticleSoap[soapModels.size()]);
121     }
122 
123     public JournalArticleSoap() {
124     }
125 
126     public long getPrimaryKey() {
127         return _id;
128     }
129 
130     public void setPrimaryKey(long pk) {
131         setId(pk);
132     }
133 
134     public String getUuid() {
135         return _uuid;
136     }
137 
138     public void setUuid(String uuid) {
139         _uuid = uuid;
140     }
141 
142     public long getId() {
143         return _id;
144     }
145 
146     public void setId(long id) {
147         _id = id;
148     }
149 
150     public long getResourcePrimKey() {
151         return _resourcePrimKey;
152     }
153 
154     public void setResourcePrimKey(long resourcePrimKey) {
155         _resourcePrimKey = resourcePrimKey;
156     }
157 
158     public long getGroupId() {
159         return _groupId;
160     }
161 
162     public void setGroupId(long groupId) {
163         _groupId = groupId;
164     }
165 
166     public long getCompanyId() {
167         return _companyId;
168     }
169 
170     public void setCompanyId(long companyId) {
171         _companyId = companyId;
172     }
173 
174     public long getUserId() {
175         return _userId;
176     }
177 
178     public void setUserId(long userId) {
179         _userId = userId;
180     }
181 
182     public String getUserName() {
183         return _userName;
184     }
185 
186     public void setUserName(String userName) {
187         _userName = userName;
188     }
189 
190     public Date getCreateDate() {
191         return _createDate;
192     }
193 
194     public void setCreateDate(Date createDate) {
195         _createDate = createDate;
196     }
197 
198     public Date getModifiedDate() {
199         return _modifiedDate;
200     }
201 
202     public void setModifiedDate(Date modifiedDate) {
203         _modifiedDate = modifiedDate;
204     }
205 
206     public String getArticleId() {
207         return _articleId;
208     }
209 
210     public void setArticleId(String articleId) {
211         _articleId = articleId;
212     }
213 
214     public double getVersion() {
215         return _version;
216     }
217 
218     public void setVersion(double version) {
219         _version = version;
220     }
221 
222     public String getTitle() {
223         return _title;
224     }
225 
226     public void setTitle(String title) {
227         _title = title;
228     }
229 
230     public String getUrlTitle() {
231         return _urlTitle;
232     }
233 
234     public void setUrlTitle(String urlTitle) {
235         _urlTitle = urlTitle;
236     }
237 
238     public String getDescription() {
239         return _description;
240     }
241 
242     public void setDescription(String description) {
243         _description = description;
244     }
245 
246     public String getContent() {
247         return _content;
248     }
249 
250     public void setContent(String content) {
251         _content = content;
252     }
253 
254     public String getType() {
255         return _type;
256     }
257 
258     public void setType(String type) {
259         _type = type;
260     }
261 
262     public String getStructureId() {
263         return _structureId;
264     }
265 
266     public void setStructureId(String structureId) {
267         _structureId = structureId;
268     }
269 
270     public String getTemplateId() {
271         return _templateId;
272     }
273 
274     public void setTemplateId(String templateId) {
275         _templateId = templateId;
276     }
277 
278     public Date getDisplayDate() {
279         return _displayDate;
280     }
281 
282     public void setDisplayDate(Date displayDate) {
283         _displayDate = displayDate;
284     }
285 
286     public boolean getApproved() {
287         return _approved;
288     }
289 
290     public boolean isApproved() {
291         return _approved;
292     }
293 
294     public void setApproved(boolean approved) {
295         _approved = approved;
296     }
297 
298     public long getApprovedByUserId() {
299         return _approvedByUserId;
300     }
301 
302     public void setApprovedByUserId(long approvedByUserId) {
303         _approvedByUserId = approvedByUserId;
304     }
305 
306     public String getApprovedByUserName() {
307         return _approvedByUserName;
308     }
309 
310     public void setApprovedByUserName(String approvedByUserName) {
311         _approvedByUserName = approvedByUserName;
312     }
313 
314     public Date getApprovedDate() {
315         return _approvedDate;
316     }
317 
318     public void setApprovedDate(Date approvedDate) {
319         _approvedDate = approvedDate;
320     }
321 
322     public boolean getExpired() {
323         return _expired;
324     }
325 
326     public boolean isExpired() {
327         return _expired;
328     }
329 
330     public void setExpired(boolean expired) {
331         _expired = expired;
332     }
333 
334     public Date getExpirationDate() {
335         return _expirationDate;
336     }
337 
338     public void setExpirationDate(Date expirationDate) {
339         _expirationDate = expirationDate;
340     }
341 
342     public Date getReviewDate() {
343         return _reviewDate;
344     }
345 
346     public void setReviewDate(Date reviewDate) {
347         _reviewDate = reviewDate;
348     }
349 
350     public boolean getIndexable() {
351         return _indexable;
352     }
353 
354     public boolean isIndexable() {
355         return _indexable;
356     }
357 
358     public void setIndexable(boolean indexable) {
359         _indexable = indexable;
360     }
361 
362     public boolean getSmallImage() {
363         return _smallImage;
364     }
365 
366     public boolean isSmallImage() {
367         return _smallImage;
368     }
369 
370     public void setSmallImage(boolean smallImage) {
371         _smallImage = smallImage;
372     }
373 
374     public long getSmallImageId() {
375         return _smallImageId;
376     }
377 
378     public void setSmallImageId(long smallImageId) {
379         _smallImageId = smallImageId;
380     }
381 
382     public String getSmallImageURL() {
383         return _smallImageURL;
384     }
385 
386     public void setSmallImageURL(String smallImageURL) {
387         _smallImageURL = smallImageURL;
388     }
389 
390     private String _uuid;
391     private long _id;
392     private long _resourcePrimKey;
393     private long _groupId;
394     private long _companyId;
395     private long _userId;
396     private String _userName;
397     private Date _createDate;
398     private Date _modifiedDate;
399     private String _articleId;
400     private double _version;
401     private String _title;
402     private String _urlTitle;
403     private String _description;
404     private String _content;
405     private String _type;
406     private String _structureId;
407     private String _templateId;
408     private Date _displayDate;
409     private boolean _approved;
410     private long _approvedByUserId;
411     private String _approvedByUserName;
412     private Date _approvedDate;
413     private boolean _expired;
414     private Date _expirationDate;
415     private Date _reviewDate;
416     private boolean _indexable;
417     private boolean _smallImage;
418     private long _smallImageId;
419     private String _smallImageURL;
420 }