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