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.MBCategoryServiceSoap}.
027     *
028     * @author Brian Wing Shun Chan
029     * @see com.liferay.portlet.messageboards.service.http.MBCategoryServiceSoap
030     * @generated
031     */
032    @ProviderType
033    public class MBCategorySoap implements Serializable {
034            public static MBCategorySoap toSoapModel(MBCategory model) {
035                    MBCategorySoap soapModel = new MBCategorySoap();
036    
037                    soapModel.setUuid(model.getUuid());
038                    soapModel.setCategoryId(model.getCategoryId());
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.setParentCategoryId(model.getParentCategoryId());
046                    soapModel.setName(model.getName());
047                    soapModel.setDescription(model.getDescription());
048                    soapModel.setDisplayStyle(model.getDisplayStyle());
049                    soapModel.setThreadCount(model.getThreadCount());
050                    soapModel.setMessageCount(model.getMessageCount());
051                    soapModel.setLastPostDate(model.getLastPostDate());
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 MBCategorySoap[] toSoapModels(MBCategory[] models) {
061                    MBCategorySoap[] soapModels = new MBCategorySoap[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 MBCategorySoap[][] toSoapModels(MBCategory[][] models) {
071                    MBCategorySoap[][] soapModels = null;
072    
073                    if (models.length > 0) {
074                            soapModels = new MBCategorySoap[models.length][models[0].length];
075                    }
076                    else {
077                            soapModels = new MBCategorySoap[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 MBCategorySoap[] toSoapModels(List<MBCategory> models) {
088                    List<MBCategorySoap> soapModels = new ArrayList<MBCategorySoap>(models.size());
089    
090                    for (MBCategory model : models) {
091                            soapModels.add(toSoapModel(model));
092                    }
093    
094                    return soapModels.toArray(new MBCategorySoap[soapModels.size()]);
095            }
096    
097            public MBCategorySoap() {
098            }
099    
100            public long getPrimaryKey() {
101                    return _categoryId;
102            }
103    
104            public void setPrimaryKey(long pk) {
105                    setCategoryId(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 getCategoryId() {
117                    return _categoryId;
118            }
119    
120            public void setCategoryId(long categoryId) {
121                    _categoryId = categoryId;
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 long getParentCategoryId() {
173                    return _parentCategoryId;
174            }
175    
176            public void setParentCategoryId(long parentCategoryId) {
177                    _parentCategoryId = parentCategoryId;
178            }
179    
180            public String getName() {
181                    return _name;
182            }
183    
184            public void setName(String name) {
185                    _name = name;
186            }
187    
188            public String getDescription() {
189                    return _description;
190            }
191    
192            public void setDescription(String description) {
193                    _description = description;
194            }
195    
196            public String getDisplayStyle() {
197                    return _displayStyle;
198            }
199    
200            public void setDisplayStyle(String displayStyle) {
201                    _displayStyle = displayStyle;
202            }
203    
204            public int getThreadCount() {
205                    return _threadCount;
206            }
207    
208            public void setThreadCount(int threadCount) {
209                    _threadCount = threadCount;
210            }
211    
212            public int getMessageCount() {
213                    return _messageCount;
214            }
215    
216            public void setMessageCount(int messageCount) {
217                    _messageCount = messageCount;
218            }
219    
220            public Date getLastPostDate() {
221                    return _lastPostDate;
222            }
223    
224            public void setLastPostDate(Date lastPostDate) {
225                    _lastPostDate = lastPostDate;
226            }
227    
228            public int getStatus() {
229                    return _status;
230            }
231    
232            public void setStatus(int status) {
233                    _status = status;
234            }
235    
236            public long getStatusByUserId() {
237                    return _statusByUserId;
238            }
239    
240            public void setStatusByUserId(long statusByUserId) {
241                    _statusByUserId = statusByUserId;
242            }
243    
244            public String getStatusByUserName() {
245                    return _statusByUserName;
246            }
247    
248            public void setStatusByUserName(String statusByUserName) {
249                    _statusByUserName = statusByUserName;
250            }
251    
252            public Date getStatusDate() {
253                    return _statusDate;
254            }
255    
256            public void setStatusDate(Date statusDate) {
257                    _statusDate = statusDate;
258            }
259    
260            private String _uuid;
261            private long _categoryId;
262            private long _groupId;
263            private long _companyId;
264            private long _userId;
265            private String _userName;
266            private Date _createDate;
267            private Date _modifiedDate;
268            private long _parentCategoryId;
269            private String _name;
270            private String _description;
271            private String _displayStyle;
272            private int _threadCount;
273            private int _messageCount;
274            private Date _lastPostDate;
275            private int _status;
276            private long _statusByUserId;
277            private String _statusByUserName;
278            private Date _statusDate;
279    }