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