001    /**
002     * Copyright (c) 2000-present 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 aQute.bnd.annotation.ProviderType;
018    
019    import java.io.Serializable;
020    
021    import java.util.ArrayList;
022    import java.util.Date;
023    import java.util.List;
024    
025    /**
026     * This class is used by SOAP remote services, specifically {@link com.liferay.portlet.blogs.service.http.BlogsEntryServiceSoap}.
027     *
028     * @author Brian Wing Shun Chan
029     * @see com.liferay.portlet.blogs.service.http.BlogsEntryServiceSoap
030     * @generated
031     */
032    @ProviderType
033    public class BlogsEntrySoap implements Serializable {
034            public static BlogsEntrySoap toSoapModel(BlogsEntry model) {
035                    BlogsEntrySoap soapModel = new BlogsEntrySoap();
036    
037                    soapModel.setUuid(model.getUuid());
038                    soapModel.setEntryId(model.getEntryId());
039                    soapModel.setGroupId(model.getGroupId());
040                    soapModel.setCompanyId(model.getCompanyId());
041                    soapModel.setUserId(model.getUserId());
042                    soapModel.setUserName(model.getUserName());
043                    soapModel.setCreateDate(model.getCreateDate());
044                    soapModel.setModifiedDate(model.getModifiedDate());
045                    soapModel.setTitle(model.getTitle());
046                    soapModel.setSubtitle(model.getSubtitle());
047                    soapModel.setUrlTitle(model.getUrlTitle());
048                    soapModel.setDescription(model.getDescription());
049                    soapModel.setContent(model.getContent());
050                    soapModel.setDisplayDate(model.getDisplayDate());
051                    soapModel.setAllowPingbacks(model.getAllowPingbacks());
052                    soapModel.setAllowTrackbacks(model.getAllowTrackbacks());
053                    soapModel.setTrackbacks(model.getTrackbacks());
054                    soapModel.setCoverImageCaption(model.getCoverImageCaption());
055                    soapModel.setCoverImageFileEntryId(model.getCoverImageFileEntryId());
056                    soapModel.setCoverImageURL(model.getCoverImageURL());
057                    soapModel.setSmallImage(model.getSmallImage());
058                    soapModel.setSmallImageFileEntryId(model.getSmallImageFileEntryId());
059                    soapModel.setSmallImageId(model.getSmallImageId());
060                    soapModel.setSmallImageURL(model.getSmallImageURL());
061                    soapModel.setStatus(model.getStatus());
062                    soapModel.setStatusByUserId(model.getStatusByUserId());
063                    soapModel.setStatusByUserName(model.getStatusByUserName());
064                    soapModel.setStatusDate(model.getStatusDate());
065    
066                    return soapModel;
067            }
068    
069            public static BlogsEntrySoap[] toSoapModels(BlogsEntry[] models) {
070                    BlogsEntrySoap[] soapModels = new BlogsEntrySoap[models.length];
071    
072                    for (int i = 0; i < models.length; i++) {
073                            soapModels[i] = toSoapModel(models[i]);
074                    }
075    
076                    return soapModels;
077            }
078    
079            public static BlogsEntrySoap[][] toSoapModels(BlogsEntry[][] models) {
080                    BlogsEntrySoap[][] soapModels = null;
081    
082                    if (models.length > 0) {
083                            soapModels = new BlogsEntrySoap[models.length][models[0].length];
084                    }
085                    else {
086                            soapModels = new BlogsEntrySoap[0][0];
087                    }
088    
089                    for (int i = 0; i < models.length; i++) {
090                            soapModels[i] = toSoapModels(models[i]);
091                    }
092    
093                    return soapModels;
094            }
095    
096            public static BlogsEntrySoap[] toSoapModels(List<BlogsEntry> models) {
097                    List<BlogsEntrySoap> soapModels = new ArrayList<BlogsEntrySoap>(models.size());
098    
099                    for (BlogsEntry model : models) {
100                            soapModels.add(toSoapModel(model));
101                    }
102    
103                    return soapModels.toArray(new BlogsEntrySoap[soapModels.size()]);
104            }
105    
106            public BlogsEntrySoap() {
107            }
108    
109            public long getPrimaryKey() {
110                    return _entryId;
111            }
112    
113            public void setPrimaryKey(long pk) {
114                    setEntryId(pk);
115            }
116    
117            public String getUuid() {
118                    return _uuid;
119            }
120    
121            public void setUuid(String uuid) {
122                    _uuid = uuid;
123            }
124    
125            public long getEntryId() {
126                    return _entryId;
127            }
128    
129            public void setEntryId(long entryId) {
130                    _entryId = entryId;
131            }
132    
133            public long getGroupId() {
134                    return _groupId;
135            }
136    
137            public void setGroupId(long groupId) {
138                    _groupId = groupId;
139            }
140    
141            public long getCompanyId() {
142                    return _companyId;
143            }
144    
145            public void setCompanyId(long companyId) {
146                    _companyId = companyId;
147            }
148    
149            public long getUserId() {
150                    return _userId;
151            }
152    
153            public void setUserId(long userId) {
154                    _userId = userId;
155            }
156    
157            public String getUserName() {
158                    return _userName;
159            }
160    
161            public void setUserName(String userName) {
162                    _userName = userName;
163            }
164    
165            public Date getCreateDate() {
166                    return _createDate;
167            }
168    
169            public void setCreateDate(Date createDate) {
170                    _createDate = createDate;
171            }
172    
173            public Date getModifiedDate() {
174                    return _modifiedDate;
175            }
176    
177            public void setModifiedDate(Date modifiedDate) {
178                    _modifiedDate = modifiedDate;
179            }
180    
181            public String getTitle() {
182                    return _title;
183            }
184    
185            public void setTitle(String title) {
186                    _title = title;
187            }
188    
189            public String getSubtitle() {
190                    return _subtitle;
191            }
192    
193            public void setSubtitle(String subtitle) {
194                    _subtitle = subtitle;
195            }
196    
197            public String getUrlTitle() {
198                    return _urlTitle;
199            }
200    
201            public void setUrlTitle(String urlTitle) {
202                    _urlTitle = urlTitle;
203            }
204    
205            public String getDescription() {
206                    return _description;
207            }
208    
209            public void setDescription(String description) {
210                    _description = description;
211            }
212    
213            public String getContent() {
214                    return _content;
215            }
216    
217            public void setContent(String content) {
218                    _content = content;
219            }
220    
221            public Date getDisplayDate() {
222                    return _displayDate;
223            }
224    
225            public void setDisplayDate(Date displayDate) {
226                    _displayDate = displayDate;
227            }
228    
229            public boolean getAllowPingbacks() {
230                    return _allowPingbacks;
231            }
232    
233            public boolean isAllowPingbacks() {
234                    return _allowPingbacks;
235            }
236    
237            public void setAllowPingbacks(boolean allowPingbacks) {
238                    _allowPingbacks = allowPingbacks;
239            }
240    
241            public boolean getAllowTrackbacks() {
242                    return _allowTrackbacks;
243            }
244    
245            public boolean isAllowTrackbacks() {
246                    return _allowTrackbacks;
247            }
248    
249            public void setAllowTrackbacks(boolean allowTrackbacks) {
250                    _allowTrackbacks = allowTrackbacks;
251            }
252    
253            public String getTrackbacks() {
254                    return _trackbacks;
255            }
256    
257            public void setTrackbacks(String trackbacks) {
258                    _trackbacks = trackbacks;
259            }
260    
261            public String getCoverImageCaption() {
262                    return _coverImageCaption;
263            }
264    
265            public void setCoverImageCaption(String coverImageCaption) {
266                    _coverImageCaption = coverImageCaption;
267            }
268    
269            public long getCoverImageFileEntryId() {
270                    return _coverImageFileEntryId;
271            }
272    
273            public void setCoverImageFileEntryId(long coverImageFileEntryId) {
274                    _coverImageFileEntryId = coverImageFileEntryId;
275            }
276    
277            public String getCoverImageURL() {
278                    return _coverImageURL;
279            }
280    
281            public void setCoverImageURL(String coverImageURL) {
282                    _coverImageURL = coverImageURL;
283            }
284    
285            public boolean getSmallImage() {
286                    return _smallImage;
287            }
288    
289            public boolean isSmallImage() {
290                    return _smallImage;
291            }
292    
293            public void setSmallImage(boolean smallImage) {
294                    _smallImage = smallImage;
295            }
296    
297            public long getSmallImageFileEntryId() {
298                    return _smallImageFileEntryId;
299            }
300    
301            public void setSmallImageFileEntryId(long smallImageFileEntryId) {
302                    _smallImageFileEntryId = smallImageFileEntryId;
303            }
304    
305            public long getSmallImageId() {
306                    return _smallImageId;
307            }
308    
309            public void setSmallImageId(long smallImageId) {
310                    _smallImageId = smallImageId;
311            }
312    
313            public String getSmallImageURL() {
314                    return _smallImageURL;
315            }
316    
317            public void setSmallImageURL(String smallImageURL) {
318                    _smallImageURL = smallImageURL;
319            }
320    
321            public int getStatus() {
322                    return _status;
323            }
324    
325            public void setStatus(int status) {
326                    _status = status;
327            }
328    
329            public long getStatusByUserId() {
330                    return _statusByUserId;
331            }
332    
333            public void setStatusByUserId(long statusByUserId) {
334                    _statusByUserId = statusByUserId;
335            }
336    
337            public String getStatusByUserName() {
338                    return _statusByUserName;
339            }
340    
341            public void setStatusByUserName(String statusByUserName) {
342                    _statusByUserName = statusByUserName;
343            }
344    
345            public Date getStatusDate() {
346                    return _statusDate;
347            }
348    
349            public void setStatusDate(Date statusDate) {
350                    _statusDate = statusDate;
351            }
352    
353            private String _uuid;
354            private long _entryId;
355            private long _groupId;
356            private long _companyId;
357            private long _userId;
358            private String _userName;
359            private Date _createDate;
360            private Date _modifiedDate;
361            private String _title;
362            private String _subtitle;
363            private String _urlTitle;
364            private String _description;
365            private String _content;
366            private Date _displayDate;
367            private boolean _allowPingbacks;
368            private boolean _allowTrackbacks;
369            private String _trackbacks;
370            private String _coverImageCaption;
371            private long _coverImageFileEntryId;
372            private String _coverImageURL;
373            private boolean _smallImage;
374            private long _smallImageFileEntryId;
375            private long _smallImageId;
376            private String _smallImageURL;
377            private int _status;
378            private long _statusByUserId;
379            private String _statusByUserName;
380            private Date _statusDate;
381    }