1   /**
2    * Copyright (c) 2000-2007 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 overwritten
36   * the next time is generated.
37   * </p>
38   *
39   * <p>
40   * This class is used by <code>com.liferay.portlet.tags.service.http.TagsAssetServiceSoap</code>.
41   * </p>
42   *
43   * @author Brian Wing Shun Chan
44   *
45   * @see com.liferay.portlet.tags.service.http.TagsAssetServiceSoap
46   *
47   */
48  public class TagsAssetSoap implements Serializable {
49      public static TagsAssetSoap toSoapModel(TagsAsset model) {
50          TagsAssetSoap soapModel = new TagsAssetSoap();
51          soapModel.setAssetId(model.getAssetId());
52          soapModel.setCompanyId(model.getCompanyId());
53          soapModel.setUserId(model.getUserId());
54          soapModel.setUserName(model.getUserName());
55          soapModel.setCreateDate(model.getCreateDate());
56          soapModel.setModifiedDate(model.getModifiedDate());
57          soapModel.setClassNameId(model.getClassNameId());
58          soapModel.setClassPK(model.getClassPK());
59          soapModel.setStartDate(model.getStartDate());
60          soapModel.setEndDate(model.getEndDate());
61          soapModel.setPublishDate(model.getPublishDate());
62          soapModel.setExpirationDate(model.getExpirationDate());
63          soapModel.setMimeType(model.getMimeType());
64          soapModel.setTitle(model.getTitle());
65          soapModel.setDescription(model.getDescription());
66          soapModel.setSummary(model.getSummary());
67          soapModel.setUrl(model.getUrl());
68          soapModel.setHeight(model.getHeight());
69          soapModel.setWidth(model.getWidth());
70  
71          return soapModel;
72      }
73  
74      public static TagsAssetSoap[] toSoapModels(List models) {
75          List soapModels = new ArrayList(models.size());
76  
77          for (int i = 0; i < models.size(); i++) {
78              TagsAsset model = (TagsAsset)models.get(i);
79              soapModels.add(toSoapModel(model));
80          }
81  
82          return (TagsAssetSoap[])soapModels.toArray(new TagsAssetSoap[0]);
83      }
84  
85      public TagsAssetSoap() {
86      }
87  
88      public long getPrimaryKey() {
89          return _assetId;
90      }
91  
92      public void setPrimaryKey(long pk) {
93          setAssetId(pk);
94      }
95  
96      public long getAssetId() {
97          return _assetId;
98      }
99  
100     public void setAssetId(long assetId) {
101         _assetId = assetId;
102     }
103 
104     public long getCompanyId() {
105         return _companyId;
106     }
107 
108     public void setCompanyId(long companyId) {
109         _companyId = companyId;
110     }
111 
112     public long getUserId() {
113         return _userId;
114     }
115 
116     public void setUserId(long userId) {
117         _userId = userId;
118     }
119 
120     public String getUserName() {
121         return _userName;
122     }
123 
124     public void setUserName(String userName) {
125         _userName = userName;
126     }
127 
128     public Date getCreateDate() {
129         return _createDate;
130     }
131 
132     public void setCreateDate(Date createDate) {
133         _createDate = createDate;
134     }
135 
136     public Date getModifiedDate() {
137         return _modifiedDate;
138     }
139 
140     public void setModifiedDate(Date modifiedDate) {
141         _modifiedDate = modifiedDate;
142     }
143 
144     public long getClassNameId() {
145         return _classNameId;
146     }
147 
148     public void setClassNameId(long classNameId) {
149         _classNameId = classNameId;
150     }
151 
152     public long getClassPK() {
153         return _classPK;
154     }
155 
156     public void setClassPK(long classPK) {
157         _classPK = classPK;
158     }
159 
160     public Date getStartDate() {
161         return _startDate;
162     }
163 
164     public void setStartDate(Date startDate) {
165         _startDate = startDate;
166     }
167 
168     public Date getEndDate() {
169         return _endDate;
170     }
171 
172     public void setEndDate(Date endDate) {
173         _endDate = endDate;
174     }
175 
176     public Date getPublishDate() {
177         return _publishDate;
178     }
179 
180     public void setPublishDate(Date publishDate) {
181         _publishDate = publishDate;
182     }
183 
184     public Date getExpirationDate() {
185         return _expirationDate;
186     }
187 
188     public void setExpirationDate(Date expirationDate) {
189         _expirationDate = expirationDate;
190     }
191 
192     public String getMimeType() {
193         return _mimeType;
194     }
195 
196     public void setMimeType(String mimeType) {
197         _mimeType = mimeType;
198     }
199 
200     public String getTitle() {
201         return _title;
202     }
203 
204     public void setTitle(String title) {
205         _title = title;
206     }
207 
208     public String getDescription() {
209         return _description;
210     }
211 
212     public void setDescription(String description) {
213         _description = description;
214     }
215 
216     public String getSummary() {
217         return _summary;
218     }
219 
220     public void setSummary(String summary) {
221         _summary = summary;
222     }
223 
224     public String getUrl() {
225         return _url;
226     }
227 
228     public void setUrl(String url) {
229         _url = url;
230     }
231 
232     public int getHeight() {
233         return _height;
234     }
235 
236     public void setHeight(int height) {
237         _height = height;
238     }
239 
240     public int getWidth() {
241         return _width;
242     }
243 
244     public void setWidth(int width) {
245         _width = width;
246     }
247 
248     private long _assetId;
249     private long _companyId;
250     private long _userId;
251     private String _userName;
252     private Date _createDate;
253     private Date _modifiedDate;
254     private long _classNameId;
255     private long _classPK;
256     private Date _startDate;
257     private Date _endDate;
258     private Date _publishDate;
259     private Date _expirationDate;
260     private String _mimeType;
261     private String _title;
262     private String _description;
263     private String _summary;
264     private String _url;
265     private int _height;
266     private int _width;
267 }