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