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