1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
14   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
15   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
17   * SOFTWARE.
18   */
19  
20  package com.liferay.portlet.tags.model;
21  
22  import java.io.Serializable;
23  
24  import java.util.ArrayList;
25  import java.util.Date;
26  import java.util.List;
27  
28  /**
29   * <a href="TagsAssetSoap.java.html"><b><i>View Source</i></b></a>
30   *
31   * <p>
32   * ServiceBuilder generated this class. Modifications in this class will be
33   * overwritten the next time is generated.
34   * </p>
35   *
36   * <p>
37   * This class is used by
38   * <code>com.liferay.portlet.tags.service.http.TagsAssetServiceSoap</code>.
39   * </p>
40   *
41   * @author Brian Wing Shun Chan
42   *
43   * @see com.liferay.portlet.tags.service.http.TagsAssetServiceSoap
44   *
45   */
46  public class TagsAssetSoap implements Serializable {
47      public static TagsAssetSoap toSoapModel(TagsAsset model) {
48          TagsAssetSoap soapModel = new TagsAssetSoap();
49  
50          soapModel.setAssetId(model.getAssetId());
51          soapModel.setGroupId(model.getGroupId());
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          soapModel.setPriority(model.getPriority());
71          soapModel.setViewCount(model.getViewCount());
72  
73          return soapModel;
74      }
75  
76      public static TagsAssetSoap[] toSoapModels(List<TagsAsset> models) {
77          List<TagsAssetSoap> soapModels = new ArrayList<TagsAssetSoap>(models.size());
78  
79          for (TagsAsset model : models) {
80              soapModels.add(toSoapModel(model));
81          }
82  
83          return soapModels.toArray(new TagsAssetSoap[soapModels.size()]);
84      }
85  
86      public TagsAssetSoap() {
87      }
88  
89      public long getPrimaryKey() {
90          return _assetId;
91      }
92  
93      public void setPrimaryKey(long pk) {
94          setAssetId(pk);
95      }
96  
97      public long getAssetId() {
98          return _assetId;
99      }
100 
101     public void setAssetId(long assetId) {
102         _assetId = assetId;
103     }
104 
105     public long getGroupId() {
106         return _groupId;
107     }
108 
109     public void setGroupId(long groupId) {
110         _groupId = groupId;
111     }
112 
113     public long getCompanyId() {
114         return _companyId;
115     }
116 
117     public void setCompanyId(long companyId) {
118         _companyId = companyId;
119     }
120 
121     public long getUserId() {
122         return _userId;
123     }
124 
125     public void setUserId(long userId) {
126         _userId = userId;
127     }
128 
129     public String getUserName() {
130         return _userName;
131     }
132 
133     public void setUserName(String userName) {
134         _userName = userName;
135     }
136 
137     public Date getCreateDate() {
138         return _createDate;
139     }
140 
141     public void setCreateDate(Date createDate) {
142         _createDate = createDate;
143     }
144 
145     public Date getModifiedDate() {
146         return _modifiedDate;
147     }
148 
149     public void setModifiedDate(Date modifiedDate) {
150         _modifiedDate = modifiedDate;
151     }
152 
153     public long getClassNameId() {
154         return _classNameId;
155     }
156 
157     public void setClassNameId(long classNameId) {
158         _classNameId = classNameId;
159     }
160 
161     public long getClassPK() {
162         return _classPK;
163     }
164 
165     public void setClassPK(long classPK) {
166         _classPK = classPK;
167     }
168 
169     public Date getStartDate() {
170         return _startDate;
171     }
172 
173     public void setStartDate(Date startDate) {
174         _startDate = startDate;
175     }
176 
177     public Date getEndDate() {
178         return _endDate;
179     }
180 
181     public void setEndDate(Date endDate) {
182         _endDate = endDate;
183     }
184 
185     public Date getPublishDate() {
186         return _publishDate;
187     }
188 
189     public void setPublishDate(Date publishDate) {
190         _publishDate = publishDate;
191     }
192 
193     public Date getExpirationDate() {
194         return _expirationDate;
195     }
196 
197     public void setExpirationDate(Date expirationDate) {
198         _expirationDate = expirationDate;
199     }
200 
201     public String getMimeType() {
202         return _mimeType;
203     }
204 
205     public void setMimeType(String mimeType) {
206         _mimeType = mimeType;
207     }
208 
209     public String getTitle() {
210         return _title;
211     }
212 
213     public void setTitle(String title) {
214         _title = title;
215     }
216 
217     public String getDescription() {
218         return _description;
219     }
220 
221     public void setDescription(String description) {
222         _description = description;
223     }
224 
225     public String getSummary() {
226         return _summary;
227     }
228 
229     public void setSummary(String summary) {
230         _summary = summary;
231     }
232 
233     public String getUrl() {
234         return _url;
235     }
236 
237     public void setUrl(String url) {
238         _url = url;
239     }
240 
241     public int getHeight() {
242         return _height;
243     }
244 
245     public void setHeight(int height) {
246         _height = height;
247     }
248 
249     public int getWidth() {
250         return _width;
251     }
252 
253     public void setWidth(int width) {
254         _width = width;
255     }
256 
257     public double getPriority() {
258         return _priority;
259     }
260 
261     public void setPriority(double priority) {
262         _priority = priority;
263     }
264 
265     public int getViewCount() {
266         return _viewCount;
267     }
268 
269     public void setViewCount(int viewCount) {
270         _viewCount = viewCount;
271     }
272 
273     private long _assetId;
274     private long _groupId;
275     private long _companyId;
276     private long _userId;
277     private String _userName;
278     private Date _createDate;
279     private Date _modifiedDate;
280     private long _classNameId;
281     private long _classPK;
282     private Date _startDate;
283     private Date _endDate;
284     private Date _publishDate;
285     private Date _expirationDate;
286     private String _mimeType;
287     private String _title;
288     private String _description;
289     private String _summary;
290     private String _url;
291     private int _height;
292     private int _width;
293     private double _priority;
294     private int _viewCount;
295 }