1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
14   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
15   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
17   * SOFTWARE.
18   */
19  
20  package com.liferay.portlet.messageboards.model;
21  
22  import java.io.Serializable;
23  
24  import java.util.ArrayList;
25  import java.util.Date;
26  import java.util.List;
27  
28  /**
29   * <a href="MBCategorySoap.java.html"><b><i>View Source</i></b></a>
30   *
31   * <p>
32   * ServiceBuilder generated this class. Modifications in this class will be
33   * overwritten the next time is generated.
34   * </p>
35   *
36   * <p>
37   * This class is used by
38   * <code>com.liferay.portlet.messageboards.service.http.MBCategoryServiceSoap</code>.
39   * </p>
40   *
41   * @author Brian Wing Shun Chan
42   *
43   * @see com.liferay.portlet.messageboards.service.http.MBCategoryServiceSoap
44   *
45   */
46  public class MBCategorySoap implements Serializable {
47      public static MBCategorySoap toSoapModel(MBCategory model) {
48          MBCategorySoap soapModel = new MBCategorySoap();
49  
50          soapModel.setUuid(model.getUuid());
51          soapModel.setCategoryId(model.getCategoryId());
52          soapModel.setGroupId(model.getGroupId());
53          soapModel.setCompanyId(model.getCompanyId());
54          soapModel.setUserId(model.getUserId());
55          soapModel.setUserName(model.getUserName());
56          soapModel.setCreateDate(model.getCreateDate());
57          soapModel.setModifiedDate(model.getModifiedDate());
58          soapModel.setParentCategoryId(model.getParentCategoryId());
59          soapModel.setName(model.getName());
60          soapModel.setDescription(model.getDescription());
61          soapModel.setThreadCount(model.getThreadCount());
62          soapModel.setMessageCount(model.getMessageCount());
63          soapModel.setLastPostDate(model.getLastPostDate());
64  
65          return soapModel;
66      }
67  
68      public static MBCategorySoap[] toSoapModels(List<MBCategory> models) {
69          List<MBCategorySoap> soapModels = new ArrayList<MBCategorySoap>(models.size());
70  
71          for (MBCategory model : models) {
72              soapModels.add(toSoapModel(model));
73          }
74  
75          return soapModels.toArray(new MBCategorySoap[soapModels.size()]);
76      }
77  
78      public MBCategorySoap() {
79      }
80  
81      public long getPrimaryKey() {
82          return _categoryId;
83      }
84  
85      public void setPrimaryKey(long pk) {
86          setCategoryId(pk);
87      }
88  
89      public String getUuid() {
90          return _uuid;
91      }
92  
93      public void setUuid(String uuid) {
94          _uuid = uuid;
95      }
96  
97      public long getCategoryId() {
98          return _categoryId;
99      }
100 
101     public void setCategoryId(long categoryId) {
102         _categoryId = categoryId;
103     }
104 
105     public long getGroupId() {
106         return _groupId;
107     }
108 
109     public void setGroupId(long groupId) {
110         _groupId = groupId;
111     }
112 
113     public long getCompanyId() {
114         return _companyId;
115     }
116 
117     public void setCompanyId(long companyId) {
118         _companyId = companyId;
119     }
120 
121     public long getUserId() {
122         return _userId;
123     }
124 
125     public void setUserId(long userId) {
126         _userId = userId;
127     }
128 
129     public String getUserName() {
130         return _userName;
131     }
132 
133     public void setUserName(String userName) {
134         _userName = userName;
135     }
136 
137     public Date getCreateDate() {
138         return _createDate;
139     }
140 
141     public void setCreateDate(Date createDate) {
142         _createDate = createDate;
143     }
144 
145     public Date getModifiedDate() {
146         return _modifiedDate;
147     }
148 
149     public void setModifiedDate(Date modifiedDate) {
150         _modifiedDate = modifiedDate;
151     }
152 
153     public long getParentCategoryId() {
154         return _parentCategoryId;
155     }
156 
157     public void setParentCategoryId(long parentCategoryId) {
158         _parentCategoryId = parentCategoryId;
159     }
160 
161     public String getName() {
162         return _name;
163     }
164 
165     public void setName(String name) {
166         _name = name;
167     }
168 
169     public String getDescription() {
170         return _description;
171     }
172 
173     public void setDescription(String description) {
174         _description = description;
175     }
176 
177     public int getThreadCount() {
178         return _threadCount;
179     }
180 
181     public void setThreadCount(int threadCount) {
182         _threadCount = threadCount;
183     }
184 
185     public int getMessageCount() {
186         return _messageCount;
187     }
188 
189     public void setMessageCount(int messageCount) {
190         _messageCount = messageCount;
191     }
192 
193     public Date getLastPostDate() {
194         return _lastPostDate;
195     }
196 
197     public void setLastPostDate(Date lastPostDate) {
198         _lastPostDate = lastPostDate;
199     }
200 
201     private String _uuid;
202     private long _categoryId;
203     private long _groupId;
204     private long _companyId;
205     private long _userId;
206     private String _userName;
207     private Date _createDate;
208     private Date _modifiedDate;
209     private long _parentCategoryId;
210     private String _name;
211     private String _description;
212     private int _threadCount;
213     private int _messageCount;
214     private Date _lastPostDate;
215 }