001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.asset.model;
016    
017    import java.io.Serializable;
018    
019    import java.util.ArrayList;
020    import java.util.Date;
021    import java.util.List;
022    
023    /**
024     * This class is used by SOAP remote services, specifically {@link com.liferay.portlet.asset.service.http.AssetEntryServiceSoap}.
025     *
026     * @author    Brian Wing Shun Chan
027     * @see       com.liferay.portlet.asset.service.http.AssetEntryServiceSoap
028     * @generated
029     */
030    public class AssetEntrySoap implements Serializable {
031            public static AssetEntrySoap toSoapModel(AssetEntry model) {
032                    AssetEntrySoap soapModel = new AssetEntrySoap();
033    
034                    soapModel.setEntryId(model.getEntryId());
035                    soapModel.setGroupId(model.getGroupId());
036                    soapModel.setCompanyId(model.getCompanyId());
037                    soapModel.setUserId(model.getUserId());
038                    soapModel.setUserName(model.getUserName());
039                    soapModel.setCreateDate(model.getCreateDate());
040                    soapModel.setModifiedDate(model.getModifiedDate());
041                    soapModel.setClassNameId(model.getClassNameId());
042                    soapModel.setClassPK(model.getClassPK());
043                    soapModel.setClassUuid(model.getClassUuid());
044                    soapModel.setClassTypeId(model.getClassTypeId());
045                    soapModel.setVisible(model.getVisible());
046                    soapModel.setStartDate(model.getStartDate());
047                    soapModel.setEndDate(model.getEndDate());
048                    soapModel.setPublishDate(model.getPublishDate());
049                    soapModel.setExpirationDate(model.getExpirationDate());
050                    soapModel.setMimeType(model.getMimeType());
051                    soapModel.setTitle(model.getTitle());
052                    soapModel.setDescription(model.getDescription());
053                    soapModel.setSummary(model.getSummary());
054                    soapModel.setUrl(model.getUrl());
055                    soapModel.setLayoutUuid(model.getLayoutUuid());
056                    soapModel.setHeight(model.getHeight());
057                    soapModel.setWidth(model.getWidth());
058                    soapModel.setPriority(model.getPriority());
059                    soapModel.setViewCount(model.getViewCount());
060    
061                    return soapModel;
062            }
063    
064            public static AssetEntrySoap[] toSoapModels(AssetEntry[] models) {
065                    AssetEntrySoap[] soapModels = new AssetEntrySoap[models.length];
066    
067                    for (int i = 0; i < models.length; i++) {
068                            soapModels[i] = toSoapModel(models[i]);
069                    }
070    
071                    return soapModels;
072            }
073    
074            public static AssetEntrySoap[][] toSoapModels(AssetEntry[][] models) {
075                    AssetEntrySoap[][] soapModels = null;
076    
077                    if (models.length > 0) {
078                            soapModels = new AssetEntrySoap[models.length][models[0].length];
079                    }
080                    else {
081                            soapModels = new AssetEntrySoap[0][0];
082                    }
083    
084                    for (int i = 0; i < models.length; i++) {
085                            soapModels[i] = toSoapModels(models[i]);
086                    }
087    
088                    return soapModels;
089            }
090    
091            public static AssetEntrySoap[] toSoapModels(List<AssetEntry> models) {
092                    List<AssetEntrySoap> soapModels = new ArrayList<AssetEntrySoap>(models.size());
093    
094                    for (AssetEntry model : models) {
095                            soapModels.add(toSoapModel(model));
096                    }
097    
098                    return soapModels.toArray(new AssetEntrySoap[soapModels.size()]);
099            }
100    
101            public AssetEntrySoap() {
102            }
103    
104            public long getPrimaryKey() {
105                    return _entryId;
106            }
107    
108            public void setPrimaryKey(long pk) {
109                    setEntryId(pk);
110            }
111    
112            public long getEntryId() {
113                    return _entryId;
114            }
115    
116            public void setEntryId(long entryId) {
117                    _entryId = entryId;
118            }
119    
120            public long getGroupId() {
121                    return _groupId;
122            }
123    
124            public void setGroupId(long groupId) {
125                    _groupId = groupId;
126            }
127    
128            public long getCompanyId() {
129                    return _companyId;
130            }
131    
132            public void setCompanyId(long companyId) {
133                    _companyId = companyId;
134            }
135    
136            public long getUserId() {
137                    return _userId;
138            }
139    
140            public void setUserId(long userId) {
141                    _userId = userId;
142            }
143    
144            public String getUserName() {
145                    return _userName;
146            }
147    
148            public void setUserName(String userName) {
149                    _userName = userName;
150            }
151    
152            public Date getCreateDate() {
153                    return _createDate;
154            }
155    
156            public void setCreateDate(Date createDate) {
157                    _createDate = createDate;
158            }
159    
160            public Date getModifiedDate() {
161                    return _modifiedDate;
162            }
163    
164            public void setModifiedDate(Date modifiedDate) {
165                    _modifiedDate = modifiedDate;
166            }
167    
168            public long getClassNameId() {
169                    return _classNameId;
170            }
171    
172            public void setClassNameId(long classNameId) {
173                    _classNameId = classNameId;
174            }
175    
176            public long getClassPK() {
177                    return _classPK;
178            }
179    
180            public void setClassPK(long classPK) {
181                    _classPK = classPK;
182            }
183    
184            public String getClassUuid() {
185                    return _classUuid;
186            }
187    
188            public void setClassUuid(String classUuid) {
189                    _classUuid = classUuid;
190            }
191    
192            public long getClassTypeId() {
193                    return _classTypeId;
194            }
195    
196            public void setClassTypeId(long classTypeId) {
197                    _classTypeId = classTypeId;
198            }
199    
200            public boolean getVisible() {
201                    return _visible;
202            }
203    
204            public boolean isVisible() {
205                    return _visible;
206            }
207    
208            public void setVisible(boolean visible) {
209                    _visible = visible;
210            }
211    
212            public Date getStartDate() {
213                    return _startDate;
214            }
215    
216            public void setStartDate(Date startDate) {
217                    _startDate = startDate;
218            }
219    
220            public Date getEndDate() {
221                    return _endDate;
222            }
223    
224            public void setEndDate(Date endDate) {
225                    _endDate = endDate;
226            }
227    
228            public Date getPublishDate() {
229                    return _publishDate;
230            }
231    
232            public void setPublishDate(Date publishDate) {
233                    _publishDate = publishDate;
234            }
235    
236            public Date getExpirationDate() {
237                    return _expirationDate;
238            }
239    
240            public void setExpirationDate(Date expirationDate) {
241                    _expirationDate = expirationDate;
242            }
243    
244            public String getMimeType() {
245                    return _mimeType;
246            }
247    
248            public void setMimeType(String mimeType) {
249                    _mimeType = mimeType;
250            }
251    
252            public String getTitle() {
253                    return _title;
254            }
255    
256            public void setTitle(String title) {
257                    _title = title;
258            }
259    
260            public String getDescription() {
261                    return _description;
262            }
263    
264            public void setDescription(String description) {
265                    _description = description;
266            }
267    
268            public String getSummary() {
269                    return _summary;
270            }
271    
272            public void setSummary(String summary) {
273                    _summary = summary;
274            }
275    
276            public String getUrl() {
277                    return _url;
278            }
279    
280            public void setUrl(String url) {
281                    _url = url;
282            }
283    
284            public String getLayoutUuid() {
285                    return _layoutUuid;
286            }
287    
288            public void setLayoutUuid(String layoutUuid) {
289                    _layoutUuid = layoutUuid;
290            }
291    
292            public int getHeight() {
293                    return _height;
294            }
295    
296            public void setHeight(int height) {
297                    _height = height;
298            }
299    
300            public int getWidth() {
301                    return _width;
302            }
303    
304            public void setWidth(int width) {
305                    _width = width;
306            }
307    
308            public double getPriority() {
309                    return _priority;
310            }
311    
312            public void setPriority(double priority) {
313                    _priority = priority;
314            }
315    
316            public int getViewCount() {
317                    return _viewCount;
318            }
319    
320            public void setViewCount(int viewCount) {
321                    _viewCount = viewCount;
322            }
323    
324            private long _entryId;
325            private long _groupId;
326            private long _companyId;
327            private long _userId;
328            private String _userName;
329            private Date _createDate;
330            private Date _modifiedDate;
331            private long _classNameId;
332            private long _classPK;
333            private String _classUuid;
334            private long _classTypeId;
335            private boolean _visible;
336            private Date _startDate;
337            private Date _endDate;
338            private Date _publishDate;
339            private Date _expirationDate;
340            private String _mimeType;
341            private String _title;
342            private String _description;
343            private String _summary;
344            private String _url;
345            private String _layoutUuid;
346            private int _height;
347            private int _width;
348            private double _priority;
349            private int _viewCount;
350    }