1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portlet.asset.model;
16  
17  import java.io.Serializable;
18  
19  import java.util.ArrayList;
20  import java.util.Date;
21  import java.util.List;
22  
23  /**
24   * <a href="AssetEntrySoap.java.html"><b><i>View Source</i></b></a>
25   *
26   * <p>
27   * ServiceBuilder generated this class. Modifications in this class will be
28   * overwritten the next time is generated.
29   * </p>
30   *
31   * <p>
32   * This class is used by
33   * {@link com.liferay.portlet.asset.service.http.AssetEntryServiceSoap}.
34   * </p>
35   *
36   * @author    Brian Wing Shun Chan
37   * @see       com.liferay.portlet.asset.service.http.AssetEntryServiceSoap
38   * @generated
39   */
40  public class AssetEntrySoap implements Serializable {
41      public static AssetEntrySoap toSoapModel(AssetEntry model) {
42          AssetEntrySoap soapModel = new AssetEntrySoap();
43  
44          soapModel.setEntryId(model.getEntryId());
45          soapModel.setGroupId(model.getGroupId());
46          soapModel.setCompanyId(model.getCompanyId());
47          soapModel.setUserId(model.getUserId());
48          soapModel.setUserName(model.getUserName());
49          soapModel.setCreateDate(model.getCreateDate());
50          soapModel.setModifiedDate(model.getModifiedDate());
51          soapModel.setClassNameId(model.getClassNameId());
52          soapModel.setClassPK(model.getClassPK());
53          soapModel.setVisible(model.getVisible());
54          soapModel.setStartDate(model.getStartDate());
55          soapModel.setEndDate(model.getEndDate());
56          soapModel.setPublishDate(model.getPublishDate());
57          soapModel.setExpirationDate(model.getExpirationDate());
58          soapModel.setMimeType(model.getMimeType());
59          soapModel.setTitle(model.getTitle());
60          soapModel.setDescription(model.getDescription());
61          soapModel.setSummary(model.getSummary());
62          soapModel.setUrl(model.getUrl());
63          soapModel.setHeight(model.getHeight());
64          soapModel.setWidth(model.getWidth());
65          soapModel.setPriority(model.getPriority());
66          soapModel.setViewCount(model.getViewCount());
67  
68          return soapModel;
69      }
70  
71      public static AssetEntrySoap[] toSoapModels(AssetEntry[] models) {
72          AssetEntrySoap[] soapModels = new AssetEntrySoap[models.length];
73  
74          for (int i = 0; i < models.length; i++) {
75              soapModels[i] = toSoapModel(models[i]);
76          }
77  
78          return soapModels;
79      }
80  
81      public static AssetEntrySoap[][] toSoapModels(AssetEntry[][] models) {
82          AssetEntrySoap[][] soapModels = null;
83  
84          if (models.length > 0) {
85              soapModels = new AssetEntrySoap[models.length][models[0].length];
86          }
87          else {
88              soapModels = new AssetEntrySoap[0][0];
89          }
90  
91          for (int i = 0; i < models.length; i++) {
92              soapModels[i] = toSoapModels(models[i]);
93          }
94  
95          return soapModels;
96      }
97  
98      public static AssetEntrySoap[] toSoapModels(List<AssetEntry> models) {
99          List<AssetEntrySoap> soapModels = new ArrayList<AssetEntrySoap>(models.size());
100 
101         for (AssetEntry model : models) {
102             soapModels.add(toSoapModel(model));
103         }
104 
105         return soapModels.toArray(new AssetEntrySoap[soapModels.size()]);
106     }
107 
108     public AssetEntrySoap() {
109     }
110 
111     public long getPrimaryKey() {
112         return _entryId;
113     }
114 
115     public void setPrimaryKey(long pk) {
116         setEntryId(pk);
117     }
118 
119     public long getEntryId() {
120         return _entryId;
121     }
122 
123     public void setEntryId(long entryId) {
124         _entryId = entryId;
125     }
126 
127     public long getGroupId() {
128         return _groupId;
129     }
130 
131     public void setGroupId(long groupId) {
132         _groupId = groupId;
133     }
134 
135     public long getCompanyId() {
136         return _companyId;
137     }
138 
139     public void setCompanyId(long companyId) {
140         _companyId = companyId;
141     }
142 
143     public long getUserId() {
144         return _userId;
145     }
146 
147     public void setUserId(long userId) {
148         _userId = userId;
149     }
150 
151     public String getUserName() {
152         return _userName;
153     }
154 
155     public void setUserName(String userName) {
156         _userName = userName;
157     }
158 
159     public Date getCreateDate() {
160         return _createDate;
161     }
162 
163     public void setCreateDate(Date createDate) {
164         _createDate = createDate;
165     }
166 
167     public Date getModifiedDate() {
168         return _modifiedDate;
169     }
170 
171     public void setModifiedDate(Date modifiedDate) {
172         _modifiedDate = modifiedDate;
173     }
174 
175     public long getClassNameId() {
176         return _classNameId;
177     }
178 
179     public void setClassNameId(long classNameId) {
180         _classNameId = classNameId;
181     }
182 
183     public long getClassPK() {
184         return _classPK;
185     }
186 
187     public void setClassPK(long classPK) {
188         _classPK = classPK;
189     }
190 
191     public boolean getVisible() {
192         return _visible;
193     }
194 
195     public boolean isVisible() {
196         return _visible;
197     }
198 
199     public void setVisible(boolean visible) {
200         _visible = visible;
201     }
202 
203     public Date getStartDate() {
204         return _startDate;
205     }
206 
207     public void setStartDate(Date startDate) {
208         _startDate = startDate;
209     }
210 
211     public Date getEndDate() {
212         return _endDate;
213     }
214 
215     public void setEndDate(Date endDate) {
216         _endDate = endDate;
217     }
218 
219     public Date getPublishDate() {
220         return _publishDate;
221     }
222 
223     public void setPublishDate(Date publishDate) {
224         _publishDate = publishDate;
225     }
226 
227     public Date getExpirationDate() {
228         return _expirationDate;
229     }
230 
231     public void setExpirationDate(Date expirationDate) {
232         _expirationDate = expirationDate;
233     }
234 
235     public String getMimeType() {
236         return _mimeType;
237     }
238 
239     public void setMimeType(String mimeType) {
240         _mimeType = mimeType;
241     }
242 
243     public String getTitle() {
244         return _title;
245     }
246 
247     public void setTitle(String title) {
248         _title = title;
249     }
250 
251     public String getDescription() {
252         return _description;
253     }
254 
255     public void setDescription(String description) {
256         _description = description;
257     }
258 
259     public String getSummary() {
260         return _summary;
261     }
262 
263     public void setSummary(String summary) {
264         _summary = summary;
265     }
266 
267     public String getUrl() {
268         return _url;
269     }
270 
271     public void setUrl(String url) {
272         _url = url;
273     }
274 
275     public int getHeight() {
276         return _height;
277     }
278 
279     public void setHeight(int height) {
280         _height = height;
281     }
282 
283     public int getWidth() {
284         return _width;
285     }
286 
287     public void setWidth(int width) {
288         _width = width;
289     }
290 
291     public double getPriority() {
292         return _priority;
293     }
294 
295     public void setPriority(double priority) {
296         _priority = priority;
297     }
298 
299     public int getViewCount() {
300         return _viewCount;
301     }
302 
303     public void setViewCount(int viewCount) {
304         _viewCount = viewCount;
305     }
306 
307     private long _entryId;
308     private long _groupId;
309     private long _companyId;
310     private long _userId;
311     private String _userName;
312     private Date _createDate;
313     private Date _modifiedDate;
314     private long _classNameId;
315     private long _classPK;
316     private boolean _visible;
317     private Date _startDate;
318     private Date _endDate;
319     private Date _publishDate;
320     private Date _expirationDate;
321     private String _mimeType;
322     private String _title;
323     private String _description;
324     private String _summary;
325     private String _url;
326     private int _height;
327     private int _width;
328     private double _priority;
329     private int _viewCount;
330 }