1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.tags.model;
24  
25  import java.io.Serializable;
26  
27  import java.util.ArrayList;
28  import java.util.Date;
29  import java.util.List;
30  
31  /**
32   * <a href="TagsAssetSoap.java.html"><b><i>View Source</i></b></a>
33   *
34   * <p>
35   * ServiceBuilder generated this class. Modifications in this class will be
36   * overwritten the next time is generated.
37   * </p>
38   *
39   * <p>
40   * This class is used by
41   * <code>com.liferay.portlet.tags.service.http.TagsAssetServiceSoap</code>.
42   * </p>
43   *
44   * @author Brian Wing Shun Chan
45   *
46   * @see com.liferay.portlet.tags.service.http.TagsAssetServiceSoap
47   *
48   */
49  public class TagsAssetSoap implements Serializable {
50      public static TagsAssetSoap toSoapModel(TagsAsset model) {
51          TagsAssetSoap soapModel = new TagsAssetSoap();
52  
53          soapModel.setAssetId(model.getAssetId());
54          soapModel.setGroupId(model.getGroupId());
55          soapModel.setCompanyId(model.getCompanyId());
56          soapModel.setUserId(model.getUserId());
57          soapModel.setUserName(model.getUserName());
58          soapModel.setCreateDate(model.getCreateDate());
59          soapModel.setModifiedDate(model.getModifiedDate());
60          soapModel.setClassNameId(model.getClassNameId());
61          soapModel.setClassPK(model.getClassPK());
62          soapModel.setStartDate(model.getStartDate());
63          soapModel.setEndDate(model.getEndDate());
64          soapModel.setPublishDate(model.getPublishDate());
65          soapModel.setExpirationDate(model.getExpirationDate());
66          soapModel.setMimeType(model.getMimeType());
67          soapModel.setTitle(model.getTitle());
68          soapModel.setDescription(model.getDescription());
69          soapModel.setSummary(model.getSummary());
70          soapModel.setUrl(model.getUrl());
71          soapModel.setHeight(model.getHeight());
72          soapModel.setWidth(model.getWidth());
73          soapModel.setPriority(model.getPriority());
74          soapModel.setViewCount(model.getViewCount());
75  
76          return soapModel;
77      }
78  
79      public static TagsAssetSoap[] toSoapModels(TagsAsset[] models) {
80          TagsAssetSoap[] soapModels = new TagsAssetSoap[models.length];
81  
82          for (int i = 0; i < models.length; i++) {
83              soapModels[i] = toSoapModel(models[i]);
84          }
85  
86          return soapModels;
87      }
88  
89      public static TagsAssetSoap[][] toSoapModels(TagsAsset[][] models) {
90          TagsAssetSoap[][] soapModels = null;
91  
92          if (models.length > 0) {
93              soapModels = new TagsAssetSoap[models.length][models[0].length];
94          }
95          else {
96              soapModels = new TagsAssetSoap[0][0];
97          }
98  
99          for (int i = 0; i < models.length; i++) {
100             soapModels[i] = toSoapModels(models[i]);
101         }
102 
103         return soapModels;
104     }
105 
106     public static TagsAssetSoap[] toSoapModels(List<TagsAsset> models) {
107         List<TagsAssetSoap> soapModels = new ArrayList<TagsAssetSoap>(models.size());
108 
109         for (TagsAsset model : models) {
110             soapModels.add(toSoapModel(model));
111         }
112 
113         return soapModels.toArray(new TagsAssetSoap[soapModels.size()]);
114     }
115 
116     public TagsAssetSoap() {
117     }
118 
119     public long getPrimaryKey() {
120         return _assetId;
121     }
122 
123     public void setPrimaryKey(long pk) {
124         setAssetId(pk);
125     }
126 
127     public long getAssetId() {
128         return _assetId;
129     }
130 
131     public void setAssetId(long assetId) {
132         _assetId = assetId;
133     }
134 
135     public long getGroupId() {
136         return _groupId;
137     }
138 
139     public void setGroupId(long groupId) {
140         _groupId = groupId;
141     }
142 
143     public long getCompanyId() {
144         return _companyId;
145     }
146 
147     public void setCompanyId(long companyId) {
148         _companyId = companyId;
149     }
150 
151     public long getUserId() {
152         return _userId;
153     }
154 
155     public void setUserId(long userId) {
156         _userId = userId;
157     }
158 
159     public String getUserName() {
160         return _userName;
161     }
162 
163     public void setUserName(String userName) {
164         _userName = userName;
165     }
166 
167     public Date getCreateDate() {
168         return _createDate;
169     }
170 
171     public void setCreateDate(Date createDate) {
172         _createDate = createDate;
173     }
174 
175     public Date getModifiedDate() {
176         return _modifiedDate;
177     }
178 
179     public void setModifiedDate(Date modifiedDate) {
180         _modifiedDate = modifiedDate;
181     }
182 
183     public long getClassNameId() {
184         return _classNameId;
185     }
186 
187     public void setClassNameId(long classNameId) {
188         _classNameId = classNameId;
189     }
190 
191     public long getClassPK() {
192         return _classPK;
193     }
194 
195     public void setClassPK(long classPK) {
196         _classPK = classPK;
197     }
198 
199     public Date getStartDate() {
200         return _startDate;
201     }
202 
203     public void setStartDate(Date startDate) {
204         _startDate = startDate;
205     }
206 
207     public Date getEndDate() {
208         return _endDate;
209     }
210 
211     public void setEndDate(Date endDate) {
212         _endDate = endDate;
213     }
214 
215     public Date getPublishDate() {
216         return _publishDate;
217     }
218 
219     public void setPublishDate(Date publishDate) {
220         _publishDate = publishDate;
221     }
222 
223     public Date getExpirationDate() {
224         return _expirationDate;
225     }
226 
227     public void setExpirationDate(Date expirationDate) {
228         _expirationDate = expirationDate;
229     }
230 
231     public String getMimeType() {
232         return _mimeType;
233     }
234 
235     public void setMimeType(String mimeType) {
236         _mimeType = mimeType;
237     }
238 
239     public String getTitle() {
240         return _title;
241     }
242 
243     public void setTitle(String title) {
244         _title = title;
245     }
246 
247     public String getDescription() {
248         return _description;
249     }
250 
251     public void setDescription(String description) {
252         _description = description;
253     }
254 
255     public String getSummary() {
256         return _summary;
257     }
258 
259     public void setSummary(String summary) {
260         _summary = summary;
261     }
262 
263     public String getUrl() {
264         return _url;
265     }
266 
267     public void setUrl(String url) {
268         _url = url;
269     }
270 
271     public int getHeight() {
272         return _height;
273     }
274 
275     public void setHeight(int height) {
276         _height = height;
277     }
278 
279     public int getWidth() {
280         return _width;
281     }
282 
283     public void setWidth(int width) {
284         _width = width;
285     }
286 
287     public double getPriority() {
288         return _priority;
289     }
290 
291     public void setPriority(double priority) {
292         _priority = priority;
293     }
294 
295     public int getViewCount() {
296         return _viewCount;
297     }
298 
299     public void setViewCount(int viewCount) {
300         _viewCount = viewCount;
301     }
302 
303     private long _assetId;
304     private long _groupId;
305     private long _companyId;
306     private long _userId;
307     private String _userName;
308     private Date _createDate;
309     private Date _modifiedDate;
310     private long _classNameId;
311     private long _classPK;
312     private Date _startDate;
313     private Date _endDate;
314     private Date _publishDate;
315     private Date _expirationDate;
316     private String _mimeType;
317     private String _title;
318     private String _description;
319     private String _summary;
320     private String _url;
321     private int _height;
322     private int _width;
323     private double _priority;
324     private int _viewCount;
325 }