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="JournalFeedSoap.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.JournalFeedServiceSoap</code>.
040: * </p>
041: *
042: * @author Brian Wing Shun Chan
043: *
044: * @see com.liferay.portlet.journal.service.http.JournalFeedServiceSoap
045: *
046: */
047: public class JournalFeedSoap implements Serializable {
048: public static JournalFeedSoap toSoapModel(JournalFeed model) {
049: JournalFeedSoap soapModel = new JournalFeedSoap();
050:
051: soapModel.setUuid(model.getUuid());
052: soapModel.setId(model.getId());
053: soapModel.setGroupId(model.getGroupId());
054: soapModel.setCompanyId(model.getCompanyId());
055: soapModel.setUserId(model.getUserId());
056: soapModel.setUserName(model.getUserName());
057: soapModel.setCreateDate(model.getCreateDate());
058: soapModel.setModifiedDate(model.getModifiedDate());
059: soapModel.setFeedId(model.getFeedId());
060: soapModel.setName(model.getName());
061: soapModel.setDescription(model.getDescription());
062: soapModel.setType(model.getType());
063: soapModel.setStructureId(model.getStructureId());
064: soapModel.setTemplateId(model.getTemplateId());
065: soapModel.setRendererTemplateId(model.getRendererTemplateId());
066: soapModel.setDelta(model.getDelta());
067: soapModel.setOrderByCol(model.getOrderByCol());
068: soapModel.setOrderByType(model.getOrderByType());
069: soapModel.setTargetLayoutFriendlyUrl(model
070: .getTargetLayoutFriendlyUrl());
071: soapModel.setTargetPortletId(model.getTargetPortletId());
072: soapModel.setContentField(model.getContentField());
073: soapModel.setFeedType(model.getFeedType());
074: soapModel.setFeedVersion(model.getFeedVersion());
075:
076: return soapModel;
077: }
078:
079: public static JournalFeedSoap[] toSoapModels(List models) {
080: List soapModels = new ArrayList(models.size());
081:
082: for (int i = 0; i < models.size(); i++) {
083: JournalFeed model = (JournalFeed) models.get(i);
084:
085: soapModels.add(toSoapModel(model));
086: }
087:
088: return (JournalFeedSoap[]) soapModels
089: .toArray(new JournalFeedSoap[0]);
090: }
091:
092: public JournalFeedSoap() {
093: }
094:
095: public long getPrimaryKey() {
096: return _id;
097: }
098:
099: public void setPrimaryKey(long pk) {
100: setId(pk);
101: }
102:
103: public String getUuid() {
104: return _uuid;
105: }
106:
107: public void setUuid(String uuid) {
108: _uuid = uuid;
109: }
110:
111: public long getId() {
112: return _id;
113: }
114:
115: public void setId(long id) {
116: _id = id;
117: }
118:
119: public long getGroupId() {
120: return _groupId;
121: }
122:
123: public void setGroupId(long groupId) {
124: _groupId = groupId;
125: }
126:
127: public long getCompanyId() {
128: return _companyId;
129: }
130:
131: public void setCompanyId(long companyId) {
132: _companyId = companyId;
133: }
134:
135: public long getUserId() {
136: return _userId;
137: }
138:
139: public void setUserId(long userId) {
140: _userId = userId;
141: }
142:
143: public String getUserName() {
144: return _userName;
145: }
146:
147: public void setUserName(String userName) {
148: _userName = userName;
149: }
150:
151: public Date getCreateDate() {
152: return _createDate;
153: }
154:
155: public void setCreateDate(Date createDate) {
156: _createDate = createDate;
157: }
158:
159: public Date getModifiedDate() {
160: return _modifiedDate;
161: }
162:
163: public void setModifiedDate(Date modifiedDate) {
164: _modifiedDate = modifiedDate;
165: }
166:
167: public String getFeedId() {
168: return _feedId;
169: }
170:
171: public void setFeedId(String feedId) {
172: _feedId = feedId;
173: }
174:
175: public String getName() {
176: return _name;
177: }
178:
179: public void setName(String name) {
180: _name = name;
181: }
182:
183: public String getDescription() {
184: return _description;
185: }
186:
187: public void setDescription(String description) {
188: _description = description;
189: }
190:
191: public String getType() {
192: return _type;
193: }
194:
195: public void setType(String type) {
196: _type = type;
197: }
198:
199: public String getStructureId() {
200: return _structureId;
201: }
202:
203: public void setStructureId(String structureId) {
204: _structureId = structureId;
205: }
206:
207: public String getTemplateId() {
208: return _templateId;
209: }
210:
211: public void setTemplateId(String templateId) {
212: _templateId = templateId;
213: }
214:
215: public String getRendererTemplateId() {
216: return _rendererTemplateId;
217: }
218:
219: public void setRendererTemplateId(String rendererTemplateId) {
220: _rendererTemplateId = rendererTemplateId;
221: }
222:
223: public int getDelta() {
224: return _delta;
225: }
226:
227: public void setDelta(int delta) {
228: _delta = delta;
229: }
230:
231: public String getOrderByCol() {
232: return _orderByCol;
233: }
234:
235: public void setOrderByCol(String orderByCol) {
236: _orderByCol = orderByCol;
237: }
238:
239: public String getOrderByType() {
240: return _orderByType;
241: }
242:
243: public void setOrderByType(String orderByType) {
244: _orderByType = orderByType;
245: }
246:
247: public String getTargetLayoutFriendlyUrl() {
248: return _targetLayoutFriendlyUrl;
249: }
250:
251: public void setTargetLayoutFriendlyUrl(
252: String targetLayoutFriendlyUrl) {
253: _targetLayoutFriendlyUrl = targetLayoutFriendlyUrl;
254: }
255:
256: public String getTargetPortletId() {
257: return _targetPortletId;
258: }
259:
260: public void setTargetPortletId(String targetPortletId) {
261: _targetPortletId = targetPortletId;
262: }
263:
264: public String getContentField() {
265: return _contentField;
266: }
267:
268: public void setContentField(String contentField) {
269: _contentField = contentField;
270: }
271:
272: public String getFeedType() {
273: return _feedType;
274: }
275:
276: public void setFeedType(String feedType) {
277: _feedType = feedType;
278: }
279:
280: public double getFeedVersion() {
281: return _feedVersion;
282: }
283:
284: public void setFeedVersion(double feedVersion) {
285: _feedVersion = feedVersion;
286: }
287:
288: private String _uuid;
289: private long _id;
290: private long _groupId;
291: private long _companyId;
292: private long _userId;
293: private String _userName;
294: private Date _createDate;
295: private Date _modifiedDate;
296: private String _feedId;
297: private String _name;
298: private String _description;
299: private String _type;
300: private String _structureId;
301: private String _templateId;
302: private String _rendererTemplateId;
303: private int _delta;
304: private String _orderByCol;
305: private String _orderByType;
306: private String _targetLayoutFriendlyUrl;
307: private String _targetPortletId;
308: private String _contentField;
309: private String _feedType;
310: private double _feedVersion;
311: }
|