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.messageboards.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.messageboards.service.http.MBThreadServiceSoap}.
025     *
026     * @author Brian Wing Shun Chan
027     * @see com.liferay.portlet.messageboards.service.http.MBThreadServiceSoap
028     * @generated
029     */
030    public class MBThreadSoap implements Serializable {
031            public static MBThreadSoap toSoapModel(MBThread model) {
032                    MBThreadSoap soapModel = new MBThreadSoap();
033    
034                    soapModel.setUuid(model.getUuid());
035                    soapModel.setThreadId(model.getThreadId());
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.setCategoryId(model.getCategoryId());
043                    soapModel.setRootMessageId(model.getRootMessageId());
044                    soapModel.setRootMessageUserId(model.getRootMessageUserId());
045                    soapModel.setMessageCount(model.getMessageCount());
046                    soapModel.setViewCount(model.getViewCount());
047                    soapModel.setLastPostByUserId(model.getLastPostByUserId());
048                    soapModel.setLastPostDate(model.getLastPostDate());
049                    soapModel.setPriority(model.getPriority());
050                    soapModel.setQuestion(model.getQuestion());
051                    soapModel.setStatus(model.getStatus());
052                    soapModel.setStatusByUserId(model.getStatusByUserId());
053                    soapModel.setStatusByUserName(model.getStatusByUserName());
054                    soapModel.setStatusDate(model.getStatusDate());
055    
056                    return soapModel;
057            }
058    
059            public static MBThreadSoap[] toSoapModels(MBThread[] models) {
060                    MBThreadSoap[] soapModels = new MBThreadSoap[models.length];
061    
062                    for (int i = 0; i < models.length; i++) {
063                            soapModels[i] = toSoapModel(models[i]);
064                    }
065    
066                    return soapModels;
067            }
068    
069            public static MBThreadSoap[][] toSoapModels(MBThread[][] models) {
070                    MBThreadSoap[][] soapModels = null;
071    
072                    if (models.length > 0) {
073                            soapModels = new MBThreadSoap[models.length][models[0].length];
074                    }
075                    else {
076                            soapModels = new MBThreadSoap[0][0];
077                    }
078    
079                    for (int i = 0; i < models.length; i++) {
080                            soapModels[i] = toSoapModels(models[i]);
081                    }
082    
083                    return soapModels;
084            }
085    
086            public static MBThreadSoap[] toSoapModels(List<MBThread> models) {
087                    List<MBThreadSoap> soapModels = new ArrayList<MBThreadSoap>(models.size());
088    
089                    for (MBThread model : models) {
090                            soapModels.add(toSoapModel(model));
091                    }
092    
093                    return soapModels.toArray(new MBThreadSoap[soapModels.size()]);
094            }
095    
096            public MBThreadSoap() {
097            }
098    
099            public long getPrimaryKey() {
100                    return _threadId;
101            }
102    
103            public void setPrimaryKey(long pk) {
104                    setThreadId(pk);
105            }
106    
107            public String getUuid() {
108                    return _uuid;
109            }
110    
111            public void setUuid(String uuid) {
112                    _uuid = uuid;
113            }
114    
115            public long getThreadId() {
116                    return _threadId;
117            }
118    
119            public void setThreadId(long threadId) {
120                    _threadId = threadId;
121            }
122    
123            public long getGroupId() {
124                    return _groupId;
125            }
126    
127            public void setGroupId(long groupId) {
128                    _groupId = groupId;
129            }
130    
131            public long getCompanyId() {
132                    return _companyId;
133            }
134    
135            public void setCompanyId(long companyId) {
136                    _companyId = companyId;
137            }
138    
139            public long getUserId() {
140                    return _userId;
141            }
142    
143            public void setUserId(long userId) {
144                    _userId = userId;
145            }
146    
147            public String getUserName() {
148                    return _userName;
149            }
150    
151            public void setUserName(String userName) {
152                    _userName = userName;
153            }
154    
155            public Date getCreateDate() {
156                    return _createDate;
157            }
158    
159            public void setCreateDate(Date createDate) {
160                    _createDate = createDate;
161            }
162    
163            public Date getModifiedDate() {
164                    return _modifiedDate;
165            }
166    
167            public void setModifiedDate(Date modifiedDate) {
168                    _modifiedDate = modifiedDate;
169            }
170    
171            public long getCategoryId() {
172                    return _categoryId;
173            }
174    
175            public void setCategoryId(long categoryId) {
176                    _categoryId = categoryId;
177            }
178    
179            public long getRootMessageId() {
180                    return _rootMessageId;
181            }
182    
183            public void setRootMessageId(long rootMessageId) {
184                    _rootMessageId = rootMessageId;
185            }
186    
187            public long getRootMessageUserId() {
188                    return _rootMessageUserId;
189            }
190    
191            public void setRootMessageUserId(long rootMessageUserId) {
192                    _rootMessageUserId = rootMessageUserId;
193            }
194    
195            public int getMessageCount() {
196                    return _messageCount;
197            }
198    
199            public void setMessageCount(int messageCount) {
200                    _messageCount = messageCount;
201            }
202    
203            public int getViewCount() {
204                    return _viewCount;
205            }
206    
207            public void setViewCount(int viewCount) {
208                    _viewCount = viewCount;
209            }
210    
211            public long getLastPostByUserId() {
212                    return _lastPostByUserId;
213            }
214    
215            public void setLastPostByUserId(long lastPostByUserId) {
216                    _lastPostByUserId = lastPostByUserId;
217            }
218    
219            public Date getLastPostDate() {
220                    return _lastPostDate;
221            }
222    
223            public void setLastPostDate(Date lastPostDate) {
224                    _lastPostDate = lastPostDate;
225            }
226    
227            public double getPriority() {
228                    return _priority;
229            }
230    
231            public void setPriority(double priority) {
232                    _priority = priority;
233            }
234    
235            public boolean getQuestion() {
236                    return _question;
237            }
238    
239            public boolean isQuestion() {
240                    return _question;
241            }
242    
243            public void setQuestion(boolean question) {
244                    _question = question;
245            }
246    
247            public int getStatus() {
248                    return _status;
249            }
250    
251            public void setStatus(int status) {
252                    _status = status;
253            }
254    
255            public long getStatusByUserId() {
256                    return _statusByUserId;
257            }
258    
259            public void setStatusByUserId(long statusByUserId) {
260                    _statusByUserId = statusByUserId;
261            }
262    
263            public String getStatusByUserName() {
264                    return _statusByUserName;
265            }
266    
267            public void setStatusByUserName(String statusByUserName) {
268                    _statusByUserName = statusByUserName;
269            }
270    
271            public Date getStatusDate() {
272                    return _statusDate;
273            }
274    
275            public void setStatusDate(Date statusDate) {
276                    _statusDate = statusDate;
277            }
278    
279            private String _uuid;
280            private long _threadId;
281            private long _groupId;
282            private long _companyId;
283            private long _userId;
284            private String _userName;
285            private Date _createDate;
286            private Date _modifiedDate;
287            private long _categoryId;
288            private long _rootMessageId;
289            private long _rootMessageUserId;
290            private int _messageCount;
291            private int _viewCount;
292            private long _lastPostByUserId;
293            private Date _lastPostDate;
294            private double _priority;
295            private boolean _question;
296            private int _status;
297            private long _statusByUserId;
298            private String _statusByUserName;
299            private Date _statusDate;
300    }