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