1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.asset.model;
16  
17  import java.io.Serializable;
18  
19  import java.util.ArrayList;
20  import java.util.Date;
21  import java.util.List;
22  
23  /**
24   * <a href="AssetCategorySoap.java.html"><b><i>View Source</i></b></a>
25   *
26   * <p>
27   * ServiceBuilder generated this class. Modifications in this class will be
28   * overwritten the next time is generated.
29   * </p>
30   *
31   * <p>
32   * This class is used by
33   * {@link com.liferay.portlet.asset.service.http.AssetCategoryServiceSoap}.
34   * </p>
35   *
36   * @author    Brian Wing Shun Chan
37   * @see       com.liferay.portlet.asset.service.http.AssetCategoryServiceSoap
38   * @generated
39   */
40  public class AssetCategorySoap implements Serializable {
41      public static AssetCategorySoap toSoapModel(AssetCategory model) {
42          AssetCategorySoap soapModel = new AssetCategorySoap();
43  
44          soapModel.setUuid(model.getUuid());
45          soapModel.setCategoryId(model.getCategoryId());
46          soapModel.setGroupId(model.getGroupId());
47          soapModel.setCompanyId(model.getCompanyId());
48          soapModel.setUserId(model.getUserId());
49          soapModel.setUserName(model.getUserName());
50          soapModel.setCreateDate(model.getCreateDate());
51          soapModel.setModifiedDate(model.getModifiedDate());
52          soapModel.setParentCategoryId(model.getParentCategoryId());
53          soapModel.setLeftCategoryId(model.getLeftCategoryId());
54          soapModel.setRightCategoryId(model.getRightCategoryId());
55          soapModel.setName(model.getName());
56          soapModel.setTitle(model.getTitle());
57          soapModel.setVocabularyId(model.getVocabularyId());
58  
59          return soapModel;
60      }
61  
62      public static AssetCategorySoap[] toSoapModels(AssetCategory[] models) {
63          AssetCategorySoap[] soapModels = new AssetCategorySoap[models.length];
64  
65          for (int i = 0; i < models.length; i++) {
66              soapModels[i] = toSoapModel(models[i]);
67          }
68  
69          return soapModels;
70      }
71  
72      public static AssetCategorySoap[][] toSoapModels(AssetCategory[][] models) {
73          AssetCategorySoap[][] soapModels = null;
74  
75          if (models.length > 0) {
76              soapModels = new AssetCategorySoap[models.length][models[0].length];
77          }
78          else {
79              soapModels = new AssetCategorySoap[0][0];
80          }
81  
82          for (int i = 0; i < models.length; i++) {
83              soapModels[i] = toSoapModels(models[i]);
84          }
85  
86          return soapModels;
87      }
88  
89      public static AssetCategorySoap[] toSoapModels(List<AssetCategory> models) {
90          List<AssetCategorySoap> soapModels = new ArrayList<AssetCategorySoap>(models.size());
91  
92          for (AssetCategory model : models) {
93              soapModels.add(toSoapModel(model));
94          }
95  
96          return soapModels.toArray(new AssetCategorySoap[soapModels.size()]);
97      }
98  
99      public AssetCategorySoap() {
100     }
101 
102     public long getPrimaryKey() {
103         return _categoryId;
104     }
105 
106     public void setPrimaryKey(long pk) {
107         setCategoryId(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 getCategoryId() {
119         return _categoryId;
120     }
121 
122     public void setCategoryId(long categoryId) {
123         _categoryId = categoryId;
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 getParentCategoryId() {
175         return _parentCategoryId;
176     }
177 
178     public void setParentCategoryId(long parentCategoryId) {
179         _parentCategoryId = parentCategoryId;
180     }
181 
182     public long getLeftCategoryId() {
183         return _leftCategoryId;
184     }
185 
186     public void setLeftCategoryId(long leftCategoryId) {
187         _leftCategoryId = leftCategoryId;
188     }
189 
190     public long getRightCategoryId() {
191         return _rightCategoryId;
192     }
193 
194     public void setRightCategoryId(long rightCategoryId) {
195         _rightCategoryId = rightCategoryId;
196     }
197 
198     public String getName() {
199         return _name;
200     }
201 
202     public void setName(String name) {
203         _name = name;
204     }
205 
206     public String getTitle() {
207         return _title;
208     }
209 
210     public void setTitle(String title) {
211         _title = title;
212     }
213 
214     public long getVocabularyId() {
215         return _vocabularyId;
216     }
217 
218     public void setVocabularyId(long vocabularyId) {
219         _vocabularyId = vocabularyId;
220     }
221 
222     private String _uuid;
223     private long _categoryId;
224     private long _groupId;
225     private long _companyId;
226     private long _userId;
227     private String _userName;
228     private Date _createDate;
229     private Date _modifiedDate;
230     private long _parentCategoryId;
231     private long _leftCategoryId;
232     private long _rightCategoryId;
233     private String _name;
234     private String _title;
235     private long _vocabularyId;
236 }