001    /**
002     * Copyright (c) 2000-2010 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     * <p>
025     * This class is used by
026     * {@link com.liferay.portlet.blogs.service.http.BlogsEntryServiceSoap}.
027     * </p>
028     *
029     * @author    Brian Wing Shun Chan
030     * @see       com.liferay.portlet.blogs.service.http.BlogsEntryServiceSoap
031     * @generated
032     */
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.setUrlTitle(model.getUrlTitle());
047                    soapModel.setContent(model.getContent());
048                    soapModel.setDisplayDate(model.getDisplayDate());
049                    soapModel.setAllowPingbacks(model.getAllowPingbacks());
050                    soapModel.setAllowTrackbacks(model.getAllowTrackbacks());
051                    soapModel.setTrackbacks(model.getTrackbacks());
052                    soapModel.setStatus(model.getStatus());
053                    soapModel.setStatusByUserId(model.getStatusByUserId());
054                    soapModel.setStatusByUserName(model.getStatusByUserName());
055                    soapModel.setStatusDate(model.getStatusDate());
056    
057                    return soapModel;
058            }
059    
060            public static BlogsEntrySoap[] toSoapModels(BlogsEntry[] models) {
061                    BlogsEntrySoap[] soapModels = new BlogsEntrySoap[models.length];
062    
063                    for (int i = 0; i < models.length; i++) {
064                            soapModels[i] = toSoapModel(models[i]);
065                    }
066    
067                    return soapModels;
068            }
069    
070            public static BlogsEntrySoap[][] toSoapModels(BlogsEntry[][] models) {
071                    BlogsEntrySoap[][] soapModels = null;
072    
073                    if (models.length > 0) {
074                            soapModels = new BlogsEntrySoap[models.length][models[0].length];
075                    }
076                    else {
077                            soapModels = new BlogsEntrySoap[0][0];
078                    }
079    
080                    for (int i = 0; i < models.length; i++) {
081                            soapModels[i] = toSoapModels(models[i]);
082                    }
083    
084                    return soapModels;
085            }
086    
087            public static BlogsEntrySoap[] toSoapModels(List<BlogsEntry> models) {
088                    List<BlogsEntrySoap> soapModels = new ArrayList<BlogsEntrySoap>(models.size());
089    
090                    for (BlogsEntry model : models) {
091                            soapModels.add(toSoapModel(model));
092                    }
093    
094                    return soapModels.toArray(new BlogsEntrySoap[soapModels.size()]);
095            }
096    
097            public BlogsEntrySoap() {
098            }
099    
100            public long getPrimaryKey() {
101                    return _entryId;
102            }
103    
104            public void setPrimaryKey(long pk) {
105                    setEntryId(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 getEntryId() {
117                    return _entryId;
118            }
119    
120            public void setEntryId(long entryId) {
121                    _entryId = entryId;
122            }
123    
124            public long getGroupId() {
125                    return _groupId;
126            }
127    
128            public void setGroupId(long groupId) {
129                    _groupId = groupId;
130            }
131    
132            public long getCompanyId() {
133                    return _companyId;
134            }
135    
136            public void setCompanyId(long companyId) {
137                    _companyId = companyId;
138            }
139    
140            public long getUserId() {
141                    return _userId;
142            }
143    
144            public void setUserId(long userId) {
145                    _userId = userId;
146            }
147    
148            public String getUserName() {
149                    return _userName;
150            }
151    
152            public void setUserName(String userName) {
153                    _userName = userName;
154            }
155    
156            public Date getCreateDate() {
157                    return _createDate;
158            }
159    
160            public void setCreateDate(Date createDate) {
161                    _createDate = createDate;
162            }
163    
164            public Date getModifiedDate() {
165                    return _modifiedDate;
166            }
167    
168            public void setModifiedDate(Date modifiedDate) {
169                    _modifiedDate = modifiedDate;
170            }
171    
172            public String getTitle() {
173                    return _title;
174            }
175    
176            public void setTitle(String title) {
177                    _title = title;
178            }
179    
180            public String getUrlTitle() {
181                    return _urlTitle;
182            }
183    
184            public void setUrlTitle(String urlTitle) {
185                    _urlTitle = urlTitle;
186            }
187    
188            public String getContent() {
189                    return _content;
190            }
191    
192            public void setContent(String content) {
193                    _content = content;
194            }
195    
196            public Date getDisplayDate() {
197                    return _displayDate;
198            }
199    
200            public void setDisplayDate(Date displayDate) {
201                    _displayDate = displayDate;
202            }
203    
204            public boolean getAllowPingbacks() {
205                    return _allowPingbacks;
206            }
207    
208            public boolean isAllowPingbacks() {
209                    return _allowPingbacks;
210            }
211    
212            public void setAllowPingbacks(boolean allowPingbacks) {
213                    _allowPingbacks = allowPingbacks;
214            }
215    
216            public boolean getAllowTrackbacks() {
217                    return _allowTrackbacks;
218            }
219    
220            public boolean isAllowTrackbacks() {
221                    return _allowTrackbacks;
222            }
223    
224            public void setAllowTrackbacks(boolean allowTrackbacks) {
225                    _allowTrackbacks = allowTrackbacks;
226            }
227    
228            public String getTrackbacks() {
229                    return _trackbacks;
230            }
231    
232            public void setTrackbacks(String trackbacks) {
233                    _trackbacks = trackbacks;
234            }
235    
236            public int getStatus() {
237                    return _status;
238            }
239    
240            public void setStatus(int status) {
241                    _status = status;
242            }
243    
244            public long getStatusByUserId() {
245                    return _statusByUserId;
246            }
247    
248            public void setStatusByUserId(long statusByUserId) {
249                    _statusByUserId = statusByUserId;
250            }
251    
252            public String getStatusByUserName() {
253                    return _statusByUserName;
254            }
255    
256            public void setStatusByUserName(String statusByUserName) {
257                    _statusByUserName = statusByUserName;
258            }
259    
260            public Date getStatusDate() {
261                    return _statusDate;
262            }
263    
264            public void setStatusDate(Date statusDate) {
265                    _statusDate = statusDate;
266            }
267    
268            private String _uuid;
269            private long _entryId;
270            private long _groupId;
271            private long _companyId;
272            private long _userId;
273            private String _userName;
274            private Date _createDate;
275            private Date _modifiedDate;
276            private String _title;
277            private String _urlTitle;
278            private String _content;
279            private Date _displayDate;
280            private boolean _allowPingbacks;
281            private boolean _allowTrackbacks;
282            private String _trackbacks;
283            private int _status;
284            private long _statusByUserId;
285            private String _statusByUserName;
286            private Date _statusDate;
287    }