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.documentlibrary.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.documentlibrary.service.http.DLFileVersionServiceSoap}.
025     *
026     * @author Brian Wing Shun Chan
027     * @see com.liferay.portlet.documentlibrary.service.http.DLFileVersionServiceSoap
028     * @generated
029     */
030    public class DLFileVersionSoap implements Serializable {
031            public static DLFileVersionSoap toSoapModel(DLFileVersion model) {
032                    DLFileVersionSoap soapModel = new DLFileVersionSoap();
033    
034                    soapModel.setUuid(model.getUuid());
035                    soapModel.setFileVersionId(model.getFileVersionId());
036                    soapModel.setGroupId(model.getGroupId());
037                    soapModel.setCompanyId(model.getCompanyId());
038                    soapModel.setUserId(model.getUserId());
039                    soapModel.setUserName(model.getUserName());
040                    soapModel.setCreateDate(model.getCreateDate());
041                    soapModel.setModifiedDate(model.getModifiedDate());
042                    soapModel.setRepositoryId(model.getRepositoryId());
043                    soapModel.setFolderId(model.getFolderId());
044                    soapModel.setFileEntryId(model.getFileEntryId());
045                    soapModel.setTreePath(model.getTreePath());
046                    soapModel.setExtension(model.getExtension());
047                    soapModel.setMimeType(model.getMimeType());
048                    soapModel.setTitle(model.getTitle());
049                    soapModel.setDescription(model.getDescription());
050                    soapModel.setChangeLog(model.getChangeLog());
051                    soapModel.setExtraSettings(model.getExtraSettings());
052                    soapModel.setFileEntryTypeId(model.getFileEntryTypeId());
053                    soapModel.setVersion(model.getVersion());
054                    soapModel.setSize(model.getSize());
055                    soapModel.setChecksum(model.getChecksum());
056                    soapModel.setStatus(model.getStatus());
057                    soapModel.setStatusByUserId(model.getStatusByUserId());
058                    soapModel.setStatusByUserName(model.getStatusByUserName());
059                    soapModel.setStatusDate(model.getStatusDate());
060    
061                    return soapModel;
062            }
063    
064            public static DLFileVersionSoap[] toSoapModels(DLFileVersion[] models) {
065                    DLFileVersionSoap[] soapModels = new DLFileVersionSoap[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 DLFileVersionSoap[][] toSoapModels(DLFileVersion[][] models) {
075                    DLFileVersionSoap[][] soapModels = null;
076    
077                    if (models.length > 0) {
078                            soapModels = new DLFileVersionSoap[models.length][models[0].length];
079                    }
080                    else {
081                            soapModels = new DLFileVersionSoap[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 DLFileVersionSoap[] toSoapModels(List<DLFileVersion> models) {
092                    List<DLFileVersionSoap> soapModels = new ArrayList<DLFileVersionSoap>(models.size());
093    
094                    for (DLFileVersion model : models) {
095                            soapModels.add(toSoapModel(model));
096                    }
097    
098                    return soapModels.toArray(new DLFileVersionSoap[soapModels.size()]);
099            }
100    
101            public DLFileVersionSoap() {
102            }
103    
104            public long getPrimaryKey() {
105                    return _fileVersionId;
106            }
107    
108            public void setPrimaryKey(long pk) {
109                    setFileVersionId(pk);
110            }
111    
112            public String getUuid() {
113                    return _uuid;
114            }
115    
116            public void setUuid(String uuid) {
117                    _uuid = uuid;
118            }
119    
120            public long getFileVersionId() {
121                    return _fileVersionId;
122            }
123    
124            public void setFileVersionId(long fileVersionId) {
125                    _fileVersionId = fileVersionId;
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 getRepositoryId() {
177                    return _repositoryId;
178            }
179    
180            public void setRepositoryId(long repositoryId) {
181                    _repositoryId = repositoryId;
182            }
183    
184            public long getFolderId() {
185                    return _folderId;
186            }
187    
188            public void setFolderId(long folderId) {
189                    _folderId = folderId;
190            }
191    
192            public long getFileEntryId() {
193                    return _fileEntryId;
194            }
195    
196            public void setFileEntryId(long fileEntryId) {
197                    _fileEntryId = fileEntryId;
198            }
199    
200            public String getTreePath() {
201                    return _treePath;
202            }
203    
204            public void setTreePath(String treePath) {
205                    _treePath = treePath;
206            }
207    
208            public String getExtension() {
209                    return _extension;
210            }
211    
212            public void setExtension(String extension) {
213                    _extension = extension;
214            }
215    
216            public String getMimeType() {
217                    return _mimeType;
218            }
219    
220            public void setMimeType(String mimeType) {
221                    _mimeType = mimeType;
222            }
223    
224            public String getTitle() {
225                    return _title;
226            }
227    
228            public void setTitle(String title) {
229                    _title = title;
230            }
231    
232            public String getDescription() {
233                    return _description;
234            }
235    
236            public void setDescription(String description) {
237                    _description = description;
238            }
239    
240            public String getChangeLog() {
241                    return _changeLog;
242            }
243    
244            public void setChangeLog(String changeLog) {
245                    _changeLog = changeLog;
246            }
247    
248            public String getExtraSettings() {
249                    return _extraSettings;
250            }
251    
252            public void setExtraSettings(String extraSettings) {
253                    _extraSettings = extraSettings;
254            }
255    
256            public long getFileEntryTypeId() {
257                    return _fileEntryTypeId;
258            }
259    
260            public void setFileEntryTypeId(long fileEntryTypeId) {
261                    _fileEntryTypeId = fileEntryTypeId;
262            }
263    
264            public String getVersion() {
265                    return _version;
266            }
267    
268            public void setVersion(String version) {
269                    _version = version;
270            }
271    
272            public long getSize() {
273                    return _size;
274            }
275    
276            public void setSize(long size) {
277                    _size = size;
278            }
279    
280            public String getChecksum() {
281                    return _checksum;
282            }
283    
284            public void setChecksum(String checksum) {
285                    _checksum = checksum;
286            }
287    
288            public int getStatus() {
289                    return _status;
290            }
291    
292            public void setStatus(int status) {
293                    _status = status;
294            }
295    
296            public long getStatusByUserId() {
297                    return _statusByUserId;
298            }
299    
300            public void setStatusByUserId(long statusByUserId) {
301                    _statusByUserId = statusByUserId;
302            }
303    
304            public String getStatusByUserName() {
305                    return _statusByUserName;
306            }
307    
308            public void setStatusByUserName(String statusByUserName) {
309                    _statusByUserName = statusByUserName;
310            }
311    
312            public Date getStatusDate() {
313                    return _statusDate;
314            }
315    
316            public void setStatusDate(Date statusDate) {
317                    _statusDate = statusDate;
318            }
319    
320            private String _uuid;
321            private long _fileVersionId;
322            private long _groupId;
323            private long _companyId;
324            private long _userId;
325            private String _userName;
326            private Date _createDate;
327            private Date _modifiedDate;
328            private long _repositoryId;
329            private long _folderId;
330            private long _fileEntryId;
331            private String _treePath;
332            private String _extension;
333            private String _mimeType;
334            private String _title;
335            private String _description;
336            private String _changeLog;
337            private String _extraSettings;
338            private long _fileEntryTypeId;
339            private String _version;
340            private long _size;
341            private String _checksum;
342            private int _status;
343            private long _statusByUserId;
344            private String _statusByUserName;
345            private Date _statusDate;
346    }