1   /**
2    * Copyright (c) 2000-2010 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   *
12   * 
13   */
14  
15  package com.liferay.portlet.tags.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="TagsAssetSoap.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.tags.service.http.TagsAssetServiceSoap}.
34   * </p>
35   *
36   * @author    Brian Wing Shun Chan
37   * @see       com.liferay.portlet.tags.service.http.TagsAssetServiceSoap
38   * @generated
39   */
40  public class TagsAssetSoap implements Serializable {
41      public static TagsAssetSoap toSoapModel(TagsAsset model) {
42          TagsAssetSoap soapModel = new TagsAssetSoap();
43  
44          soapModel.setAssetId(model.getAssetId());
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.setClassNameId(model.getClassNameId());
52          soapModel.setClassPK(model.getClassPK());
53          soapModel.setStartDate(model.getStartDate());
54          soapModel.setEndDate(model.getEndDate());
55          soapModel.setPublishDate(model.getPublishDate());
56          soapModel.setExpirationDate(model.getExpirationDate());
57          soapModel.setMimeType(model.getMimeType());
58          soapModel.setTitle(model.getTitle());
59          soapModel.setDescription(model.getDescription());
60          soapModel.setSummary(model.getSummary());
61          soapModel.setUrl(model.getUrl());
62          soapModel.setHeight(model.getHeight());
63          soapModel.setWidth(model.getWidth());
64          soapModel.setPriority(model.getPriority());
65          soapModel.setViewCount(model.getViewCount());
66  
67          return soapModel;
68      }
69  
70      public static TagsAssetSoap[] toSoapModels(TagsAsset[] models) {
71          TagsAssetSoap[] soapModels = new TagsAssetSoap[models.length];
72  
73          for (int i = 0; i < models.length; i++) {
74              soapModels[i] = toSoapModel(models[i]);
75          }
76  
77          return soapModels;
78      }
79  
80      public static TagsAssetSoap[][] toSoapModels(TagsAsset[][] models) {
81          TagsAssetSoap[][] soapModels = null;
82  
83          if (models.length > 0) {
84              soapModels = new TagsAssetSoap[models.length][models[0].length];
85          }
86          else {
87              soapModels = new TagsAssetSoap[0][0];
88          }
89  
90          for (int i = 0; i < models.length; i++) {
91              soapModels[i] = toSoapModels(models[i]);
92          }
93  
94          return soapModels;
95      }
96  
97      public static TagsAssetSoap[] toSoapModels(List<TagsAsset> models) {
98          List<TagsAssetSoap> soapModels = new ArrayList<TagsAssetSoap>(models.size());
99  
100         for (TagsAsset model : models) {
101             soapModels.add(toSoapModel(model));
102         }
103 
104         return soapModels.toArray(new TagsAssetSoap[soapModels.size()]);
105     }
106 
107     public TagsAssetSoap() {
108     }
109 
110     public long getPrimaryKey() {
111         return _assetId;
112     }
113 
114     public void setPrimaryKey(long pk) {
115         setAssetId(pk);
116     }
117 
118     public long getAssetId() {
119         return _assetId;
120     }
121 
122     public void setAssetId(long assetId) {
123         _assetId = assetId;
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 getClassNameId() {
175         return _classNameId;
176     }
177 
178     public void setClassNameId(long classNameId) {
179         _classNameId = classNameId;
180     }
181 
182     public long getClassPK() {
183         return _classPK;
184     }
185 
186     public void setClassPK(long classPK) {
187         _classPK = classPK;
188     }
189 
190     public Date getStartDate() {
191         return _startDate;
192     }
193 
194     public void setStartDate(Date startDate) {
195         _startDate = startDate;
196     }
197 
198     public Date getEndDate() {
199         return _endDate;
200     }
201 
202     public void setEndDate(Date endDate) {
203         _endDate = endDate;
204     }
205 
206     public Date getPublishDate() {
207         return _publishDate;
208     }
209 
210     public void setPublishDate(Date publishDate) {
211         _publishDate = publishDate;
212     }
213 
214     public Date getExpirationDate() {
215         return _expirationDate;
216     }
217 
218     public void setExpirationDate(Date expirationDate) {
219         _expirationDate = expirationDate;
220     }
221 
222     public String getMimeType() {
223         return _mimeType;
224     }
225 
226     public void setMimeType(String mimeType) {
227         _mimeType = mimeType;
228     }
229 
230     public String getTitle() {
231         return _title;
232     }
233 
234     public void setTitle(String title) {
235         _title = title;
236     }
237 
238     public String getDescription() {
239         return _description;
240     }
241 
242     public void setDescription(String description) {
243         _description = description;
244     }
245 
246     public String getSummary() {
247         return _summary;
248     }
249 
250     public void setSummary(String summary) {
251         _summary = summary;
252     }
253 
254     public String getUrl() {
255         return _url;
256     }
257 
258     public void setUrl(String url) {
259         _url = url;
260     }
261 
262     public int getHeight() {
263         return _height;
264     }
265 
266     public void setHeight(int height) {
267         _height = height;
268     }
269 
270     public int getWidth() {
271         return _width;
272     }
273 
274     public void setWidth(int width) {
275         _width = width;
276     }
277 
278     public double getPriority() {
279         return _priority;
280     }
281 
282     public void setPriority(double priority) {
283         _priority = priority;
284     }
285 
286     public int getViewCount() {
287         return _viewCount;
288     }
289 
290     public void setViewCount(int viewCount) {
291         _viewCount = viewCount;
292     }
293 
294     private long _assetId;
295     private long _groupId;
296     private long _companyId;
297     private long _userId;
298     private String _userName;
299     private Date _createDate;
300     private Date _modifiedDate;
301     private long _classNameId;
302     private long _classPK;
303     private Date _startDate;
304     private Date _endDate;
305     private Date _publishDate;
306     private Date _expirationDate;
307     private String _mimeType;
308     private String _title;
309     private String _description;
310     private String _summary;
311     private String _url;
312     private int _height;
313     private int _width;
314     private double _priority;
315     private int _viewCount;
316 }