001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portlet.journal.model;
022:
023: import java.io.Serializable;
024:
025: import java.util.ArrayList;
026: import java.util.Date;
027: import java.util.List;
028:
029: /**
030: * <a href="JournalArticleSoap.java.html"><b><i>View Source</i></b></a>
031: *
032: * <p>
033: * ServiceBuilder generated this class. Modifications in this class will be
034: * overwritten the next time is generated.
035: * </p>
036: *
037: * <p>
038: * This class is used by
039: * <code>com.liferay.portlet.journal.service.http.JournalArticleServiceSoap</code>.
040: * </p>
041: *
042: * @author Brian Wing Shun Chan
043: *
044: * @see com.liferay.portlet.journal.service.http.JournalArticleServiceSoap
045: *
046: */
047: public class JournalArticleSoap implements Serializable {
048: public static JournalArticleSoap toSoapModel(JournalArticle model) {
049: JournalArticleSoap soapModel = new JournalArticleSoap();
050:
051: soapModel.setUuid(model.getUuid());
052: soapModel.setId(model.getId());
053: soapModel.setResourcePrimKey(model.getResourcePrimKey());
054: soapModel.setGroupId(model.getGroupId());
055: soapModel.setCompanyId(model.getCompanyId());
056: soapModel.setUserId(model.getUserId());
057: soapModel.setUserName(model.getUserName());
058: soapModel.setCreateDate(model.getCreateDate());
059: soapModel.setModifiedDate(model.getModifiedDate());
060: soapModel.setArticleId(model.getArticleId());
061: soapModel.setVersion(model.getVersion());
062: soapModel.setTitle(model.getTitle());
063: soapModel.setDescription(model.getDescription());
064: soapModel.setContent(model.getContent());
065: soapModel.setType(model.getType());
066: soapModel.setStructureId(model.getStructureId());
067: soapModel.setTemplateId(model.getTemplateId());
068: soapModel.setDisplayDate(model.getDisplayDate());
069: soapModel.setApproved(model.getApproved());
070: soapModel.setApprovedByUserId(model.getApprovedByUserId());
071: soapModel.setApprovedByUserName(model.getApprovedByUserName());
072: soapModel.setApprovedDate(model.getApprovedDate());
073: soapModel.setExpired(model.getExpired());
074: soapModel.setExpirationDate(model.getExpirationDate());
075: soapModel.setReviewDate(model.getReviewDate());
076: soapModel.setIndexable(model.getIndexable());
077: soapModel.setSmallImage(model.getSmallImage());
078: soapModel.setSmallImageId(model.getSmallImageId());
079: soapModel.setSmallImageURL(model.getSmallImageURL());
080:
081: return soapModel;
082: }
083:
084: public static JournalArticleSoap[] toSoapModels(List models) {
085: List soapModels = new ArrayList(models.size());
086:
087: for (int i = 0; i < models.size(); i++) {
088: JournalArticle model = (JournalArticle) models.get(i);
089:
090: soapModels.add(toSoapModel(model));
091: }
092:
093: return (JournalArticleSoap[]) soapModels
094: .toArray(new JournalArticleSoap[0]);
095: }
096:
097: public JournalArticleSoap() {
098: }
099:
100: public long getPrimaryKey() {
101: return _id;
102: }
103:
104: public void setPrimaryKey(long pk) {
105: setId(pk);
106: }
107:
108: public String getUuid() {
109: return _uuid;
110: }
111:
112: public void setUuid(String uuid) {
113: _uuid = uuid;
114: }
115:
116: public long getId() {
117: return _id;
118: }
119:
120: public void setId(long id) {
121: _id = id;
122: }
123:
124: public long getResourcePrimKey() {
125: return _resourcePrimKey;
126: }
127:
128: public void setResourcePrimKey(long resourcePrimKey) {
129: _resourcePrimKey = resourcePrimKey;
130: }
131:
132: public long getGroupId() {
133: return _groupId;
134: }
135:
136: public void setGroupId(long groupId) {
137: _groupId = groupId;
138: }
139:
140: public long getCompanyId() {
141: return _companyId;
142: }
143:
144: public void setCompanyId(long companyId) {
145: _companyId = companyId;
146: }
147:
148: public long getUserId() {
149: return _userId;
150: }
151:
152: public void setUserId(long userId) {
153: _userId = userId;
154: }
155:
156: public String getUserName() {
157: return _userName;
158: }
159:
160: public void setUserName(String userName) {
161: _userName = userName;
162: }
163:
164: public Date getCreateDate() {
165: return _createDate;
166: }
167:
168: public void setCreateDate(Date createDate) {
169: _createDate = createDate;
170: }
171:
172: public Date getModifiedDate() {
173: return _modifiedDate;
174: }
175:
176: public void setModifiedDate(Date modifiedDate) {
177: _modifiedDate = modifiedDate;
178: }
179:
180: public String getArticleId() {
181: return _articleId;
182: }
183:
184: public void setArticleId(String articleId) {
185: _articleId = articleId;
186: }
187:
188: public double getVersion() {
189: return _version;
190: }
191:
192: public void setVersion(double version) {
193: _version = version;
194: }
195:
196: public String getTitle() {
197: return _title;
198: }
199:
200: public void setTitle(String title) {
201: _title = title;
202: }
203:
204: public String getDescription() {
205: return _description;
206: }
207:
208: public void setDescription(String description) {
209: _description = description;
210: }
211:
212: public String getContent() {
213: return _content;
214: }
215:
216: public void setContent(String content) {
217: _content = content;
218: }
219:
220: public String getType() {
221: return _type;
222: }
223:
224: public void setType(String type) {
225: _type = type;
226: }
227:
228: public String getStructureId() {
229: return _structureId;
230: }
231:
232: public void setStructureId(String structureId) {
233: _structureId = structureId;
234: }
235:
236: public String getTemplateId() {
237: return _templateId;
238: }
239:
240: public void setTemplateId(String templateId) {
241: _templateId = templateId;
242: }
243:
244: public Date getDisplayDate() {
245: return _displayDate;
246: }
247:
248: public void setDisplayDate(Date displayDate) {
249: _displayDate = displayDate;
250: }
251:
252: public boolean getApproved() {
253: return _approved;
254: }
255:
256: public boolean isApproved() {
257: return _approved;
258: }
259:
260: public void setApproved(boolean approved) {
261: _approved = approved;
262: }
263:
264: public long getApprovedByUserId() {
265: return _approvedByUserId;
266: }
267:
268: public void setApprovedByUserId(long approvedByUserId) {
269: _approvedByUserId = approvedByUserId;
270: }
271:
272: public String getApprovedByUserName() {
273: return _approvedByUserName;
274: }
275:
276: public void setApprovedByUserName(String approvedByUserName) {
277: _approvedByUserName = approvedByUserName;
278: }
279:
280: public Date getApprovedDate() {
281: return _approvedDate;
282: }
283:
284: public void setApprovedDate(Date approvedDate) {
285: _approvedDate = approvedDate;
286: }
287:
288: public boolean getExpired() {
289: return _expired;
290: }
291:
292: public boolean isExpired() {
293: return _expired;
294: }
295:
296: public void setExpired(boolean expired) {
297: _expired = expired;
298: }
299:
300: public Date getExpirationDate() {
301: return _expirationDate;
302: }
303:
304: public void setExpirationDate(Date expirationDate) {
305: _expirationDate = expirationDate;
306: }
307:
308: public Date getReviewDate() {
309: return _reviewDate;
310: }
311:
312: public void setReviewDate(Date reviewDate) {
313: _reviewDate = reviewDate;
314: }
315:
316: public boolean getIndexable() {
317: return _indexable;
318: }
319:
320: public boolean isIndexable() {
321: return _indexable;
322: }
323:
324: public void setIndexable(boolean indexable) {
325: _indexable = indexable;
326: }
327:
328: public boolean getSmallImage() {
329: return _smallImage;
330: }
331:
332: public boolean isSmallImage() {
333: return _smallImage;
334: }
335:
336: public void setSmallImage(boolean smallImage) {
337: _smallImage = smallImage;
338: }
339:
340: public long getSmallImageId() {
341: return _smallImageId;
342: }
343:
344: public void setSmallImageId(long smallImageId) {
345: _smallImageId = smallImageId;
346: }
347:
348: public String getSmallImageURL() {
349: return _smallImageURL;
350: }
351:
352: public void setSmallImageURL(String smallImageURL) {
353: _smallImageURL = smallImageURL;
354: }
355:
356: private String _uuid;
357: private long _id;
358: private long _resourcePrimKey;
359: private long _groupId;
360: private long _companyId;
361: private long _userId;
362: private String _userName;
363: private Date _createDate;
364: private Date _modifiedDate;
365: private String _articleId;
366: private double _version;
367: private String _title;
368: private String _description;
369: private String _content;
370: private String _type;
371: private String _structureId;
372: private String _templateId;
373: private Date _displayDate;
374: private boolean _approved;
375: private long _approvedByUserId;
376: private String _approvedByUserName;
377: private Date _approvedDate;
378: private boolean _expired;
379: private Date _expirationDate;
380: private Date _reviewDate;
381: private boolean _indexable;
382: private boolean _smallImage;
383: private long _smallImageId;
384: private String _smallImageURL;
385: }
|