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