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