001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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.setThreadId(model.getThreadId());
035                    soapModel.setGroupId(model.getGroupId());
036                    soapModel.setCompanyId(model.getCompanyId());
037                    soapModel.setCategoryId(model.getCategoryId());
038                    soapModel.setRootMessageId(model.getRootMessageId());
039                    soapModel.setRootMessageUserId(model.getRootMessageUserId());
040                    soapModel.setMessageCount(model.getMessageCount());
041                    soapModel.setViewCount(model.getViewCount());
042                    soapModel.setLastPostByUserId(model.getLastPostByUserId());
043                    soapModel.setLastPostDate(model.getLastPostDate());
044                    soapModel.setPriority(model.getPriority());
045                    soapModel.setStatus(model.getStatus());
046                    soapModel.setStatusByUserId(model.getStatusByUserId());
047                    soapModel.setStatusByUserName(model.getStatusByUserName());
048                    soapModel.setStatusDate(model.getStatusDate());
049    
050                    return soapModel;
051            }
052    
053            public static MBThreadSoap[] toSoapModels(MBThread[] models) {
054                    MBThreadSoap[] soapModels = new MBThreadSoap[models.length];
055    
056                    for (int i = 0; i < models.length; i++) {
057                            soapModels[i] = toSoapModel(models[i]);
058                    }
059    
060                    return soapModels;
061            }
062    
063            public static MBThreadSoap[][] toSoapModels(MBThread[][] models) {
064                    MBThreadSoap[][] soapModels = null;
065    
066                    if (models.length > 0) {
067                            soapModels = new MBThreadSoap[models.length][models[0].length];
068                    }
069                    else {
070                            soapModels = new MBThreadSoap[0][0];
071                    }
072    
073                    for (int i = 0; i < models.length; i++) {
074                            soapModels[i] = toSoapModels(models[i]);
075                    }
076    
077                    return soapModels;
078            }
079    
080            public static MBThreadSoap[] toSoapModels(List<MBThread> models) {
081                    List<MBThreadSoap> soapModels = new ArrayList<MBThreadSoap>(models.size());
082    
083                    for (MBThread model : models) {
084                            soapModels.add(toSoapModel(model));
085                    }
086    
087                    return soapModels.toArray(new MBThreadSoap[soapModels.size()]);
088            }
089    
090            public MBThreadSoap() {
091            }
092    
093            public long getPrimaryKey() {
094                    return _threadId;
095            }
096    
097            public void setPrimaryKey(long pk) {
098                    setThreadId(pk);
099            }
100    
101            public long getThreadId() {
102                    return _threadId;
103            }
104    
105            public void setThreadId(long threadId) {
106                    _threadId = threadId;
107            }
108    
109            public long getGroupId() {
110                    return _groupId;
111            }
112    
113            public void setGroupId(long groupId) {
114                    _groupId = groupId;
115            }
116    
117            public long getCompanyId() {
118                    return _companyId;
119            }
120    
121            public void setCompanyId(long companyId) {
122                    _companyId = companyId;
123            }
124    
125            public long getCategoryId() {
126                    return _categoryId;
127            }
128    
129            public void setCategoryId(long categoryId) {
130                    _categoryId = categoryId;
131            }
132    
133            public long getRootMessageId() {
134                    return _rootMessageId;
135            }
136    
137            public void setRootMessageId(long rootMessageId) {
138                    _rootMessageId = rootMessageId;
139            }
140    
141            public long getRootMessageUserId() {
142                    return _rootMessageUserId;
143            }
144    
145            public void setRootMessageUserId(long rootMessageUserId) {
146                    _rootMessageUserId = rootMessageUserId;
147            }
148    
149            public int getMessageCount() {
150                    return _messageCount;
151            }
152    
153            public void setMessageCount(int messageCount) {
154                    _messageCount = messageCount;
155            }
156    
157            public int getViewCount() {
158                    return _viewCount;
159            }
160    
161            public void setViewCount(int viewCount) {
162                    _viewCount = viewCount;
163            }
164    
165            public long getLastPostByUserId() {
166                    return _lastPostByUserId;
167            }
168    
169            public void setLastPostByUserId(long lastPostByUserId) {
170                    _lastPostByUserId = lastPostByUserId;
171            }
172    
173            public Date getLastPostDate() {
174                    return _lastPostDate;
175            }
176    
177            public void setLastPostDate(Date lastPostDate) {
178                    _lastPostDate = lastPostDate;
179            }
180    
181            public double getPriority() {
182                    return _priority;
183            }
184    
185            public void setPriority(double priority) {
186                    _priority = priority;
187            }
188    
189            public int getStatus() {
190                    return _status;
191            }
192    
193            public void setStatus(int status) {
194                    _status = status;
195            }
196    
197            public long getStatusByUserId() {
198                    return _statusByUserId;
199            }
200    
201            public void setStatusByUserId(long statusByUserId) {
202                    _statusByUserId = statusByUserId;
203            }
204    
205            public String getStatusByUserName() {
206                    return _statusByUserName;
207            }
208    
209            public void setStatusByUserName(String statusByUserName) {
210                    _statusByUserName = statusByUserName;
211            }
212    
213            public Date getStatusDate() {
214                    return _statusDate;
215            }
216    
217            public void setStatusDate(Date statusDate) {
218                    _statusDate = statusDate;
219            }
220    
221            private long _threadId;
222            private long _groupId;
223            private long _companyId;
224            private long _categoryId;
225            private long _rootMessageId;
226            private long _rootMessageUserId;
227            private int _messageCount;
228            private int _viewCount;
229            private long _lastPostByUserId;
230            private Date _lastPostDate;
231            private double _priority;
232            private int _status;
233            private long _statusByUserId;
234            private String _statusByUserName;
235            private Date _statusDate;
236    }