001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.blogs.model;
016    
017    import java.io.Serializable;
018    
019    import java.util.ArrayList;
020    import java.util.Date;
021    import java.util.List;
022    
023    /**
024     * This class is used by SOAP remote services, specifically {@link com.liferay.portlet.blogs.service.http.BlogsEntryServiceSoap}.
025     *
026     * @author    Brian Wing Shun Chan
027     * @see       com.liferay.portlet.blogs.service.http.BlogsEntryServiceSoap
028     * @generated
029     */
030    public class BlogsEntrySoap implements Serializable {
031            public static BlogsEntrySoap toSoapModel(BlogsEntry model) {
032                    BlogsEntrySoap soapModel = new BlogsEntrySoap();
033    
034                    soapModel.setUuid(model.getUuid());
035                    soapModel.setEntryId(model.getEntryId());
036                    soapModel.setGroupId(model.getGroupId());
037                    soapModel.setCompanyId(model.getCompanyId());
038                    soapModel.setUserId(model.getUserId());
039                    soapModel.setUserName(model.getUserName());
040                    soapModel.setCreateDate(model.getCreateDate());
041                    soapModel.setModifiedDate(model.getModifiedDate());
042                    soapModel.setTitle(model.getTitle());
043                    soapModel.setUrlTitle(model.getUrlTitle());
044                    soapModel.setDescription(model.getDescription());
045                    soapModel.setContent(model.getContent());
046                    soapModel.setDisplayDate(model.getDisplayDate());
047                    soapModel.setAllowPingbacks(model.getAllowPingbacks());
048                    soapModel.setAllowTrackbacks(model.getAllowTrackbacks());
049                    soapModel.setTrackbacks(model.getTrackbacks());
050                    soapModel.setSmallImage(model.getSmallImage());
051                    soapModel.setSmallImageId(model.getSmallImageId());
052                    soapModel.setSmallImageURL(model.getSmallImageURL());
053                    soapModel.setStatus(model.getStatus());
054                    soapModel.setStatusByUserId(model.getStatusByUserId());
055                    soapModel.setStatusByUserName(model.getStatusByUserName());
056                    soapModel.setStatusDate(model.getStatusDate());
057    
058                    return soapModel;
059            }
060    
061            public static BlogsEntrySoap[] toSoapModels(BlogsEntry[] models) {
062                    BlogsEntrySoap[] soapModels = new BlogsEntrySoap[models.length];
063    
064                    for (int i = 0; i < models.length; i++) {
065                            soapModels[i] = toSoapModel(models[i]);
066                    }
067    
068                    return soapModels;
069            }
070    
071            public static BlogsEntrySoap[][] toSoapModels(BlogsEntry[][] models) {
072                    BlogsEntrySoap[][] soapModels = null;
073    
074                    if (models.length > 0) {
075                            soapModels = new BlogsEntrySoap[models.length][models[0].length];
076                    }
077                    else {
078                            soapModels = new BlogsEntrySoap[0][0];
079                    }
080    
081                    for (int i = 0; i < models.length; i++) {
082                            soapModels[i] = toSoapModels(models[i]);
083                    }
084    
085                    return soapModels;
086            }
087    
088            public static BlogsEntrySoap[] toSoapModels(List<BlogsEntry> models) {
089                    List<BlogsEntrySoap> soapModels = new ArrayList<BlogsEntrySoap>(models.size());
090    
091                    for (BlogsEntry model : models) {
092                            soapModels.add(toSoapModel(model));
093                    }
094    
095                    return soapModels.toArray(new BlogsEntrySoap[soapModels.size()]);
096            }
097    
098            public BlogsEntrySoap() {
099            }
100    
101            public long getPrimaryKey() {
102                    return _entryId;
103            }
104    
105            public void setPrimaryKey(long pk) {
106                    setEntryId(pk);
107            }
108    
109            public String getUuid() {
110                    return _uuid;
111            }
112    
113            public void setUuid(String uuid) {
114                    _uuid = uuid;
115            }
116    
117            public long getEntryId() {
118                    return _entryId;
119            }
120    
121            public void setEntryId(long entryId) {
122                    _entryId = entryId;
123            }
124    
125            public long getGroupId() {
126                    return _groupId;
127            }
128    
129            public void setGroupId(long groupId) {
130                    _groupId = groupId;
131            }
132    
133            public long getCompanyId() {
134                    return _companyId;
135            }
136    
137            public void setCompanyId(long companyId) {
138                    _companyId = companyId;
139            }
140    
141            public long getUserId() {
142                    return _userId;
143            }
144    
145            public void setUserId(long userId) {
146                    _userId = userId;
147            }
148    
149            public String getUserName() {
150                    return _userName;
151            }
152    
153            public void setUserName(String userName) {
154                    _userName = userName;
155            }
156    
157            public Date getCreateDate() {
158                    return _createDate;
159            }
160    
161            public void setCreateDate(Date createDate) {
162                    _createDate = createDate;
163            }
164    
165            public Date getModifiedDate() {
166                    return _modifiedDate;
167            }
168    
169            public void setModifiedDate(Date modifiedDate) {
170                    _modifiedDate = modifiedDate;
171            }
172    
173            public String getTitle() {
174                    return _title;
175            }
176    
177            public void setTitle(String title) {
178                    _title = title;
179            }
180    
181            public String getUrlTitle() {
182                    return _urlTitle;
183            }
184    
185            public void setUrlTitle(String urlTitle) {
186                    _urlTitle = urlTitle;
187            }
188    
189            public String getDescription() {
190                    return _description;
191            }
192    
193            public void setDescription(String description) {
194                    _description = description;
195            }
196    
197            public String getContent() {
198                    return _content;
199            }
200    
201            public void setContent(String content) {
202                    _content = content;
203            }
204    
205            public Date getDisplayDate() {
206                    return _displayDate;
207            }
208    
209            public void setDisplayDate(Date displayDate) {
210                    _displayDate = displayDate;
211            }
212    
213            public boolean getAllowPingbacks() {
214                    return _allowPingbacks;
215            }
216    
217            public boolean isAllowPingbacks() {
218                    return _allowPingbacks;
219            }
220    
221            public void setAllowPingbacks(boolean allowPingbacks) {
222                    _allowPingbacks = allowPingbacks;
223            }
224    
225            public boolean getAllowTrackbacks() {
226                    return _allowTrackbacks;
227            }
228    
229            public boolean isAllowTrackbacks() {
230                    return _allowTrackbacks;
231            }
232    
233            public void setAllowTrackbacks(boolean allowTrackbacks) {
234                    _allowTrackbacks = allowTrackbacks;
235            }
236    
237            public String getTrackbacks() {
238                    return _trackbacks;
239            }
240    
241            public void setTrackbacks(String trackbacks) {
242                    _trackbacks = trackbacks;
243            }
244    
245            public boolean getSmallImage() {
246                    return _smallImage;
247            }
248    
249            public boolean isSmallImage() {
250                    return _smallImage;
251            }
252    
253            public void setSmallImage(boolean smallImage) {
254                    _smallImage = smallImage;
255            }
256    
257            public long getSmallImageId() {
258                    return _smallImageId;
259            }
260    
261            public void setSmallImageId(long smallImageId) {
262                    _smallImageId = smallImageId;
263            }
264    
265            public String getSmallImageURL() {
266                    return _smallImageURL;
267            }
268    
269            public void setSmallImageURL(String smallImageURL) {
270                    _smallImageURL = smallImageURL;
271            }
272    
273            public int getStatus() {
274                    return _status;
275            }
276    
277            public void setStatus(int status) {
278                    _status = status;
279            }
280    
281            public long getStatusByUserId() {
282                    return _statusByUserId;
283            }
284    
285            public void setStatusByUserId(long statusByUserId) {
286                    _statusByUserId = statusByUserId;
287            }
288    
289            public String getStatusByUserName() {
290                    return _statusByUserName;
291            }
292    
293            public void setStatusByUserName(String statusByUserName) {
294                    _statusByUserName = statusByUserName;
295            }
296    
297            public Date getStatusDate() {
298                    return _statusDate;
299            }
300    
301            public void setStatusDate(Date statusDate) {
302                    _statusDate = statusDate;
303            }
304    
305            private String _uuid;
306            private long _entryId;
307            private long _groupId;
308            private long _companyId;
309            private long _userId;
310            private String _userName;
311            private Date _createDate;
312            private Date _modifiedDate;
313            private String _title;
314            private String _urlTitle;
315            private String _description;
316            private String _content;
317            private Date _displayDate;
318            private boolean _allowPingbacks;
319            private boolean _allowTrackbacks;
320            private String _trackbacks;
321            private boolean _smallImage;
322            private long _smallImageId;
323            private String _smallImageURL;
324            private int _status;
325            private long _statusByUserId;
326            private String _statusByUserName;
327            private Date _statusDate;
328    }