001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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.setVisible(model.getVisible());
045                    soapModel.setStartDate(model.getStartDate());
046                    soapModel.setEndDate(model.getEndDate());
047                    soapModel.setPublishDate(model.getPublishDate());
048                    soapModel.setExpirationDate(model.getExpirationDate());
049                    soapModel.setMimeType(model.getMimeType());
050                    soapModel.setTitle(model.getTitle());
051                    soapModel.setDescription(model.getDescription());
052                    soapModel.setSummary(model.getSummary());
053                    soapModel.setUrl(model.getUrl());
054                    soapModel.setHeight(model.getHeight());
055                    soapModel.setWidth(model.getWidth());
056                    soapModel.setPriority(model.getPriority());
057                    soapModel.setViewCount(model.getViewCount());
058    
059                    return soapModel;
060            }
061    
062            public static AssetEntrySoap[] toSoapModels(AssetEntry[] models) {
063                    AssetEntrySoap[] soapModels = new AssetEntrySoap[models.length];
064    
065                    for (int i = 0; i < models.length; i++) {
066                            soapModels[i] = toSoapModel(models[i]);
067                    }
068    
069                    return soapModels;
070            }
071    
072            public static AssetEntrySoap[][] toSoapModels(AssetEntry[][] models) {
073                    AssetEntrySoap[][] soapModels = null;
074    
075                    if (models.length > 0) {
076                            soapModels = new AssetEntrySoap[models.length][models[0].length];
077                    }
078                    else {
079                            soapModels = new AssetEntrySoap[0][0];
080                    }
081    
082                    for (int i = 0; i < models.length; i++) {
083                            soapModels[i] = toSoapModels(models[i]);
084                    }
085    
086                    return soapModels;
087            }
088    
089            public static AssetEntrySoap[] toSoapModels(List<AssetEntry> models) {
090                    List<AssetEntrySoap> soapModels = new ArrayList<AssetEntrySoap>(models.size());
091    
092                    for (AssetEntry model : models) {
093                            soapModels.add(toSoapModel(model));
094                    }
095    
096                    return soapModels.toArray(new AssetEntrySoap[soapModels.size()]);
097            }
098    
099            public AssetEntrySoap() {
100            }
101    
102            public long getPrimaryKey() {
103                    return _entryId;
104            }
105    
106            public void setPrimaryKey(long pk) {
107                    setEntryId(pk);
108            }
109    
110            public long getEntryId() {
111                    return _entryId;
112            }
113    
114            public void setEntryId(long entryId) {
115                    _entryId = entryId;
116            }
117    
118            public long getGroupId() {
119                    return _groupId;
120            }
121    
122            public void setGroupId(long groupId) {
123                    _groupId = groupId;
124            }
125    
126            public long getCompanyId() {
127                    return _companyId;
128            }
129    
130            public void setCompanyId(long companyId) {
131                    _companyId = companyId;
132            }
133    
134            public long getUserId() {
135                    return _userId;
136            }
137    
138            public void setUserId(long userId) {
139                    _userId = userId;
140            }
141    
142            public String getUserName() {
143                    return _userName;
144            }
145    
146            public void setUserName(String userName) {
147                    _userName = userName;
148            }
149    
150            public Date getCreateDate() {
151                    return _createDate;
152            }
153    
154            public void setCreateDate(Date createDate) {
155                    _createDate = createDate;
156            }
157    
158            public Date getModifiedDate() {
159                    return _modifiedDate;
160            }
161    
162            public void setModifiedDate(Date modifiedDate) {
163                    _modifiedDate = modifiedDate;
164            }
165    
166            public long getClassNameId() {
167                    return _classNameId;
168            }
169    
170            public void setClassNameId(long classNameId) {
171                    _classNameId = classNameId;
172            }
173    
174            public long getClassPK() {
175                    return _classPK;
176            }
177    
178            public void setClassPK(long classPK) {
179                    _classPK = classPK;
180            }
181    
182            public String getClassUuid() {
183                    return _classUuid;
184            }
185    
186            public void setClassUuid(String classUuid) {
187                    _classUuid = classUuid;
188            }
189    
190            public boolean getVisible() {
191                    return _visible;
192            }
193    
194            public boolean isVisible() {
195                    return _visible;
196            }
197    
198            public void setVisible(boolean visible) {
199                    _visible = visible;
200            }
201    
202            public Date getStartDate() {
203                    return _startDate;
204            }
205    
206            public void setStartDate(Date startDate) {
207                    _startDate = startDate;
208            }
209    
210            public Date getEndDate() {
211                    return _endDate;
212            }
213    
214            public void setEndDate(Date endDate) {
215                    _endDate = endDate;
216            }
217    
218            public Date getPublishDate() {
219                    return _publishDate;
220            }
221    
222            public void setPublishDate(Date publishDate) {
223                    _publishDate = publishDate;
224            }
225    
226            public Date getExpirationDate() {
227                    return _expirationDate;
228            }
229    
230            public void setExpirationDate(Date expirationDate) {
231                    _expirationDate = expirationDate;
232            }
233    
234            public String getMimeType() {
235                    return _mimeType;
236            }
237    
238            public void setMimeType(String mimeType) {
239                    _mimeType = mimeType;
240            }
241    
242            public String getTitle() {
243                    return _title;
244            }
245    
246            public void setTitle(String title) {
247                    _title = title;
248            }
249    
250            public String getDescription() {
251                    return _description;
252            }
253    
254            public void setDescription(String description) {
255                    _description = description;
256            }
257    
258            public String getSummary() {
259                    return _summary;
260            }
261    
262            public void setSummary(String summary) {
263                    _summary = summary;
264            }
265    
266            public String getUrl() {
267                    return _url;
268            }
269    
270            public void setUrl(String url) {
271                    _url = url;
272            }
273    
274            public int getHeight() {
275                    return _height;
276            }
277    
278            public void setHeight(int height) {
279                    _height = height;
280            }
281    
282            public int getWidth() {
283                    return _width;
284            }
285    
286            public void setWidth(int width) {
287                    _width = width;
288            }
289    
290            public double getPriority() {
291                    return _priority;
292            }
293    
294            public void setPriority(double priority) {
295                    _priority = priority;
296            }
297    
298            public int getViewCount() {
299                    return _viewCount;
300            }
301    
302            public void setViewCount(int viewCount) {
303                    _viewCount = viewCount;
304            }
305    
306            private long _entryId;
307            private long _groupId;
308            private long _companyId;
309            private long _userId;
310            private String _userName;
311            private Date _createDate;
312            private Date _modifiedDate;
313            private long _classNameId;
314            private long _classPK;
315            private String _classUuid;
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    }