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