001    /**
002     * Copyright (c) 2000-2010 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.asset.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     * <p>
025     * This class is used by
026     * {@link com.liferay.portlet.asset.service.http.AssetCategoryServiceSoap}.
027     * </p>
028     *
029     * @author    Brian Wing Shun Chan
030     * @see       com.liferay.portlet.asset.service.http.AssetCategoryServiceSoap
031     * @generated
032     */
033    public class AssetCategorySoap implements Serializable {
034            public static AssetCategorySoap toSoapModel(AssetCategory model) {
035                    AssetCategorySoap soapModel = new AssetCategorySoap();
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.setLeftCategoryId(model.getLeftCategoryId());
047                    soapModel.setRightCategoryId(model.getRightCategoryId());
048                    soapModel.setName(model.getName());
049                    soapModel.setTitle(model.getTitle());
050                    soapModel.setVocabularyId(model.getVocabularyId());
051    
052                    return soapModel;
053            }
054    
055            public static AssetCategorySoap[] toSoapModels(AssetCategory[] models) {
056                    AssetCategorySoap[] soapModels = new AssetCategorySoap[models.length];
057    
058                    for (int i = 0; i < models.length; i++) {
059                            soapModels[i] = toSoapModel(models[i]);
060                    }
061    
062                    return soapModels;
063            }
064    
065            public static AssetCategorySoap[][] toSoapModels(AssetCategory[][] models) {
066                    AssetCategorySoap[][] soapModels = null;
067    
068                    if (models.length > 0) {
069                            soapModels = new AssetCategorySoap[models.length][models[0].length];
070                    }
071                    else {
072                            soapModels = new AssetCategorySoap[0][0];
073                    }
074    
075                    for (int i = 0; i < models.length; i++) {
076                            soapModels[i] = toSoapModels(models[i]);
077                    }
078    
079                    return soapModels;
080            }
081    
082            public static AssetCategorySoap[] toSoapModels(List<AssetCategory> models) {
083                    List<AssetCategorySoap> soapModels = new ArrayList<AssetCategorySoap>(models.size());
084    
085                    for (AssetCategory model : models) {
086                            soapModels.add(toSoapModel(model));
087                    }
088    
089                    return soapModels.toArray(new AssetCategorySoap[soapModels.size()]);
090            }
091    
092            public AssetCategorySoap() {
093            }
094    
095            public long getPrimaryKey() {
096                    return _categoryId;
097            }
098    
099            public void setPrimaryKey(long pk) {
100                    setCategoryId(pk);
101            }
102    
103            public String getUuid() {
104                    return _uuid;
105            }
106    
107            public void setUuid(String uuid) {
108                    _uuid = uuid;
109            }
110    
111            public long getCategoryId() {
112                    return _categoryId;
113            }
114    
115            public void setCategoryId(long categoryId) {
116                    _categoryId = categoryId;
117            }
118    
119            public long getGroupId() {
120                    return _groupId;
121            }
122    
123            public void setGroupId(long groupId) {
124                    _groupId = groupId;
125            }
126    
127            public long getCompanyId() {
128                    return _companyId;
129            }
130    
131            public void setCompanyId(long companyId) {
132                    _companyId = companyId;
133            }
134    
135            public long getUserId() {
136                    return _userId;
137            }
138    
139            public void setUserId(long userId) {
140                    _userId = userId;
141            }
142    
143            public String getUserName() {
144                    return _userName;
145            }
146    
147            public void setUserName(String userName) {
148                    _userName = userName;
149            }
150    
151            public Date getCreateDate() {
152                    return _createDate;
153            }
154    
155            public void setCreateDate(Date createDate) {
156                    _createDate = createDate;
157            }
158    
159            public Date getModifiedDate() {
160                    return _modifiedDate;
161            }
162    
163            public void setModifiedDate(Date modifiedDate) {
164                    _modifiedDate = modifiedDate;
165            }
166    
167            public long getParentCategoryId() {
168                    return _parentCategoryId;
169            }
170    
171            public void setParentCategoryId(long parentCategoryId) {
172                    _parentCategoryId = parentCategoryId;
173            }
174    
175            public long getLeftCategoryId() {
176                    return _leftCategoryId;
177            }
178    
179            public void setLeftCategoryId(long leftCategoryId) {
180                    _leftCategoryId = leftCategoryId;
181            }
182    
183            public long getRightCategoryId() {
184                    return _rightCategoryId;
185            }
186    
187            public void setRightCategoryId(long rightCategoryId) {
188                    _rightCategoryId = rightCategoryId;
189            }
190    
191            public String getName() {
192                    return _name;
193            }
194    
195            public void setName(String name) {
196                    _name = name;
197            }
198    
199            public String getTitle() {
200                    return _title;
201            }
202    
203            public void setTitle(String title) {
204                    _title = title;
205            }
206    
207            public long getVocabularyId() {
208                    return _vocabularyId;
209            }
210    
211            public void setVocabularyId(long vocabularyId) {
212                    _vocabularyId = vocabularyId;
213            }
214    
215            private String _uuid;
216            private long _categoryId;
217            private long _groupId;
218            private long _companyId;
219            private long _userId;
220            private String _userName;
221            private Date _createDate;
222            private Date _modifiedDate;
223            private long _parentCategoryId;
224            private long _leftCategoryId;
225            private long _rightCategoryId;
226            private String _name;
227            private String _title;
228            private long _vocabularyId;
229    }