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.AssetTagServiceSoap}.
027     * </p>
028     *
029     * @author    Brian Wing Shun Chan
030     * @see       com.liferay.portlet.asset.service.http.AssetTagServiceSoap
031     * @generated
032     */
033    public class AssetTagSoap implements Serializable {
034            public static AssetTagSoap toSoapModel(AssetTag model) {
035                    AssetTagSoap soapModel = new AssetTagSoap();
036    
037                    soapModel.setTagId(model.getTagId());
038                    soapModel.setGroupId(model.getGroupId());
039                    soapModel.setCompanyId(model.getCompanyId());
040                    soapModel.setUserId(model.getUserId());
041                    soapModel.setUserName(model.getUserName());
042                    soapModel.setCreateDate(model.getCreateDate());
043                    soapModel.setModifiedDate(model.getModifiedDate());
044                    soapModel.setName(model.getName());
045                    soapModel.setAssetCount(model.getAssetCount());
046    
047                    return soapModel;
048            }
049    
050            public static AssetTagSoap[] toSoapModels(AssetTag[] models) {
051                    AssetTagSoap[] soapModels = new AssetTagSoap[models.length];
052    
053                    for (int i = 0; i < models.length; i++) {
054                            soapModels[i] = toSoapModel(models[i]);
055                    }
056    
057                    return soapModels;
058            }
059    
060            public static AssetTagSoap[][] toSoapModels(AssetTag[][] models) {
061                    AssetTagSoap[][] soapModels = null;
062    
063                    if (models.length > 0) {
064                            soapModels = new AssetTagSoap[models.length][models[0].length];
065                    }
066                    else {
067                            soapModels = new AssetTagSoap[0][0];
068                    }
069    
070                    for (int i = 0; i < models.length; i++) {
071                            soapModels[i] = toSoapModels(models[i]);
072                    }
073    
074                    return soapModels;
075            }
076    
077            public static AssetTagSoap[] toSoapModels(List<AssetTag> models) {
078                    List<AssetTagSoap> soapModels = new ArrayList<AssetTagSoap>(models.size());
079    
080                    for (AssetTag model : models) {
081                            soapModels.add(toSoapModel(model));
082                    }
083    
084                    return soapModels.toArray(new AssetTagSoap[soapModels.size()]);
085            }
086    
087            public AssetTagSoap() {
088            }
089    
090            public long getPrimaryKey() {
091                    return _tagId;
092            }
093    
094            public void setPrimaryKey(long pk) {
095                    setTagId(pk);
096            }
097    
098            public long getTagId() {
099                    return _tagId;
100            }
101    
102            public void setTagId(long tagId) {
103                    _tagId = tagId;
104            }
105    
106            public long getGroupId() {
107                    return _groupId;
108            }
109    
110            public void setGroupId(long groupId) {
111                    _groupId = groupId;
112            }
113    
114            public long getCompanyId() {
115                    return _companyId;
116            }
117    
118            public void setCompanyId(long companyId) {
119                    _companyId = companyId;
120            }
121    
122            public long getUserId() {
123                    return _userId;
124            }
125    
126            public void setUserId(long userId) {
127                    _userId = userId;
128            }
129    
130            public String getUserName() {
131                    return _userName;
132            }
133    
134            public void setUserName(String userName) {
135                    _userName = userName;
136            }
137    
138            public Date getCreateDate() {
139                    return _createDate;
140            }
141    
142            public void setCreateDate(Date createDate) {
143                    _createDate = createDate;
144            }
145    
146            public Date getModifiedDate() {
147                    return _modifiedDate;
148            }
149    
150            public void setModifiedDate(Date modifiedDate) {
151                    _modifiedDate = modifiedDate;
152            }
153    
154            public String getName() {
155                    return _name;
156            }
157    
158            public void setName(String name) {
159                    _name = name;
160            }
161    
162            public int getAssetCount() {
163                    return _assetCount;
164            }
165    
166            public void setAssetCount(int assetCount) {
167                    _assetCount = assetCount;
168            }
169    
170            private long _tagId;
171            private long _groupId;
172            private long _companyId;
173            private long _userId;
174            private String _userName;
175            private Date _createDate;
176            private Date _modifiedDate;
177            private String _name;
178            private int _assetCount;
179    }