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.setVisible(model.getVisible());
63          soapModel.setStartDate(model.getStartDate());
64          soapModel.setEndDate(model.getEndDate());
65          soapModel.setPublishDate(model.getPublishDate());
66          soapModel.setExpirationDate(model.getExpirationDate());
67          soapModel.setMimeType(model.getMimeType());
68          soapModel.setTitle(model.getTitle());
69          soapModel.setDescription(model.getDescription());
70          soapModel.setSummary(model.getSummary());
71          soapModel.setUrl(model.getUrl());
72          soapModel.setHeight(model.getHeight());
73          soapModel.setWidth(model.getWidth());
74          soapModel.setPriority(model.getPriority());
75          soapModel.setViewCount(model.getViewCount());
76  
77          return soapModel;
78      }
79  
80      public static TagsAssetSoap[] toSoapModels(TagsAsset[] models) {
81          TagsAssetSoap[] soapModels = new TagsAssetSoap[models.length];
82  
83          for (int i = 0; i < models.length; i++) {
84              soapModels[i] = toSoapModel(models[i]);
85          }
86  
87          return soapModels;
88      }
89  
90      public static TagsAssetSoap[][] toSoapModels(TagsAsset[][] models) {
91          TagsAssetSoap[][] soapModels = null;
92  
93          if (models.length > 0) {
94              soapModels = new TagsAssetSoap[models.length][models[0].length];
95          }
96          else {
97              soapModels = new TagsAssetSoap[0][0];
98          }
99  
100         for (int i = 0; i < models.length; i++) {
101             soapModels[i] = toSoapModels(models[i]);
102         }
103 
104         return soapModels;
105     }
106 
107     public static TagsAssetSoap[] toSoapModels(List<TagsAsset> models) {
108         List<TagsAssetSoap> soapModels = new ArrayList<TagsAssetSoap>(models.size());
109 
110         for (TagsAsset model : models) {
111             soapModels.add(toSoapModel(model));
112         }
113 
114         return soapModels.toArray(new TagsAssetSoap[soapModels.size()]);
115     }
116 
117     public TagsAssetSoap() {
118     }
119 
120     public long getPrimaryKey() {
121         return _assetId;
122     }
123 
124     public void setPrimaryKey(long pk) {
125         setAssetId(pk);
126     }
127 
128     public long getAssetId() {
129         return _assetId;
130     }
131 
132     public void setAssetId(long assetId) {
133         _assetId = assetId;
134     }
135 
136     public long getGroupId() {
137         return _groupId;
138     }
139 
140     public void setGroupId(long groupId) {
141         _groupId = groupId;
142     }
143 
144     public long getCompanyId() {
145         return _companyId;
146     }
147 
148     public void setCompanyId(long companyId) {
149         _companyId = companyId;
150     }
151 
152     public long getUserId() {
153         return _userId;
154     }
155 
156     public void setUserId(long userId) {
157         _userId = userId;
158     }
159 
160     public String getUserName() {
161         return _userName;
162     }
163 
164     public void setUserName(String userName) {
165         _userName = userName;
166     }
167 
168     public Date getCreateDate() {
169         return _createDate;
170     }
171 
172     public void setCreateDate(Date createDate) {
173         _createDate = createDate;
174     }
175 
176     public Date getModifiedDate() {
177         return _modifiedDate;
178     }
179 
180     public void setModifiedDate(Date modifiedDate) {
181         _modifiedDate = modifiedDate;
182     }
183 
184     public long getClassNameId() {
185         return _classNameId;
186     }
187 
188     public void setClassNameId(long classNameId) {
189         _classNameId = classNameId;
190     }
191 
192     public long getClassPK() {
193         return _classPK;
194     }
195 
196     public void setClassPK(long classPK) {
197         _classPK = classPK;
198     }
199 
200     public boolean getVisible() {
201         return _visible;
202     }
203 
204     public boolean isVisible() {
205         return _visible;
206     }
207 
208     public void setVisible(boolean visible) {
209         _visible = visible;
210     }
211 
212     public Date getStartDate() {
213         return _startDate;
214     }
215 
216     public void setStartDate(Date startDate) {
217         _startDate = startDate;
218     }
219 
220     public Date getEndDate() {
221         return _endDate;
222     }
223 
224     public void setEndDate(Date endDate) {
225         _endDate = endDate;
226     }
227 
228     public Date getPublishDate() {
229         return _publishDate;
230     }
231 
232     public void setPublishDate(Date publishDate) {
233         _publishDate = publishDate;
234     }
235 
236     public Date getExpirationDate() {
237         return _expirationDate;
238     }
239 
240     public void setExpirationDate(Date expirationDate) {
241         _expirationDate = expirationDate;
242     }
243 
244     public String getMimeType() {
245         return _mimeType;
246     }
247 
248     public void setMimeType(String mimeType) {
249         _mimeType = mimeType;
250     }
251 
252     public String getTitle() {
253         return _title;
254     }
255 
256     public void setTitle(String title) {
257         _title = title;
258     }
259 
260     public String getDescription() {
261         return _description;
262     }
263 
264     public void setDescription(String description) {
265         _description = description;
266     }
267 
268     public String getSummary() {
269         return _summary;
270     }
271 
272     public void setSummary(String summary) {
273         _summary = summary;
274     }
275 
276     public String getUrl() {
277         return _url;
278     }
279 
280     public void setUrl(String url) {
281         _url = url;
282     }
283 
284     public int getHeight() {
285         return _height;
286     }
287 
288     public void setHeight(int height) {
289         _height = height;
290     }
291 
292     public int getWidth() {
293         return _width;
294     }
295 
296     public void setWidth(int width) {
297         _width = width;
298     }
299 
300     public double getPriority() {
301         return _priority;
302     }
303 
304     public void setPriority(double priority) {
305         _priority = priority;
306     }
307 
308     public int getViewCount() {
309         return _viewCount;
310     }
311 
312     public void setViewCount(int viewCount) {
313         _viewCount = viewCount;
314     }
315 
316     private long _assetId;
317     private long _groupId;
318     private long _companyId;
319     private long _userId;
320     private String _userName;
321     private Date _createDate;
322     private Date _modifiedDate;
323     private long _classNameId;
324     private long _classPK;
325     private boolean _visible;
326     private Date _startDate;
327     private Date _endDate;
328     private Date _publishDate;
329     private Date _expirationDate;
330     private String _mimeType;
331     private String _title;
332     private String _description;
333     private String _summary;
334     private String _url;
335     private int _height;
336     private int _width;
337     private double _priority;
338     private int _viewCount;
339 }