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="AssetTagSoap.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.AssetTagServiceSoap}.
34   * </p>
35   *
36   * @author    Brian Wing Shun Chan
37   * @see       com.liferay.portlet.asset.service.http.AssetTagServiceSoap
38   * @generated
39   */
40  public class AssetTagSoap implements Serializable {
41      public static AssetTagSoap toSoapModel(AssetTag model) {
42          AssetTagSoap soapModel = new AssetTagSoap();
43  
44          soapModel.setTagId(model.getTagId());
45          soapModel.setGroupId(model.getGroupId());
46          soapModel.setCompanyId(model.getCompanyId());
47          soapModel.setUserId(model.getUserId());
48          soapModel.setUserName(model.getUserName());
49          soapModel.setCreateDate(model.getCreateDate());
50          soapModel.setModifiedDate(model.getModifiedDate());
51          soapModel.setName(model.getName());
52          soapModel.setAssetCount(model.getAssetCount());
53  
54          return soapModel;
55      }
56  
57      public static AssetTagSoap[] toSoapModels(AssetTag[] models) {
58          AssetTagSoap[] soapModels = new AssetTagSoap[models.length];
59  
60          for (int i = 0; i < models.length; i++) {
61              soapModels[i] = toSoapModel(models[i]);
62          }
63  
64          return soapModels;
65      }
66  
67      public static AssetTagSoap[][] toSoapModels(AssetTag[][] models) {
68          AssetTagSoap[][] soapModels = null;
69  
70          if (models.length > 0) {
71              soapModels = new AssetTagSoap[models.length][models[0].length];
72          }
73          else {
74              soapModels = new AssetTagSoap[0][0];
75          }
76  
77          for (int i = 0; i < models.length; i++) {
78              soapModels[i] = toSoapModels(models[i]);
79          }
80  
81          return soapModels;
82      }
83  
84      public static AssetTagSoap[] toSoapModels(List<AssetTag> models) {
85          List<AssetTagSoap> soapModels = new ArrayList<AssetTagSoap>(models.size());
86  
87          for (AssetTag model : models) {
88              soapModels.add(toSoapModel(model));
89          }
90  
91          return soapModels.toArray(new AssetTagSoap[soapModels.size()]);
92      }
93  
94      public AssetTagSoap() {
95      }
96  
97      public long getPrimaryKey() {
98          return _tagId;
99      }
100 
101     public void setPrimaryKey(long pk) {
102         setTagId(pk);
103     }
104 
105     public long getTagId() {
106         return _tagId;
107     }
108 
109     public void setTagId(long tagId) {
110         _tagId = tagId;
111     }
112 
113     public long getGroupId() {
114         return _groupId;
115     }
116 
117     public void setGroupId(long groupId) {
118         _groupId = groupId;
119     }
120 
121     public long getCompanyId() {
122         return _companyId;
123     }
124 
125     public void setCompanyId(long companyId) {
126         _companyId = companyId;
127     }
128 
129     public long getUserId() {
130         return _userId;
131     }
132 
133     public void setUserId(long userId) {
134         _userId = userId;
135     }
136 
137     public String getUserName() {
138         return _userName;
139     }
140 
141     public void setUserName(String userName) {
142         _userName = userName;
143     }
144 
145     public Date getCreateDate() {
146         return _createDate;
147     }
148 
149     public void setCreateDate(Date createDate) {
150         _createDate = createDate;
151     }
152 
153     public Date getModifiedDate() {
154         return _modifiedDate;
155     }
156 
157     public void setModifiedDate(Date modifiedDate) {
158         _modifiedDate = modifiedDate;
159     }
160 
161     public String getName() {
162         return _name;
163     }
164 
165     public void setName(String name) {
166         _name = name;
167     }
168 
169     public int getAssetCount() {
170         return _assetCount;
171     }
172 
173     public void setAssetCount(int assetCount) {
174         _assetCount = assetCount;
175     }
176 
177     private long _tagId;
178     private long _groupId;
179     private long _companyId;
180     private long _userId;
181     private String _userName;
182     private Date _createDate;
183     private Date _modifiedDate;
184     private String _name;
185     private int _assetCount;
186 }