001    /**
002     * Copyright (c) 2000-2010 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     * <p>
025     * This class is used by
026     * {@link com.liferay.portlet.documentlibrary.service.http.DLFileVersionServiceSoap}.
027     * </p>
028     *
029     * @author    Brian Wing Shun Chan
030     * @see       com.liferay.portlet.documentlibrary.service.http.DLFileVersionServiceSoap
031     * @generated
032     */
033    public class DLFileVersionSoap implements Serializable {
034            public static DLFileVersionSoap toSoapModel(DLFileVersion model) {
035                    DLFileVersionSoap soapModel = new DLFileVersionSoap();
036    
037                    soapModel.setFileVersionId(model.getFileVersionId());
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.setFolderId(model.getFolderId());
044                    soapModel.setName(model.getName());
045                    soapModel.setExtension(model.getExtension());
046                    soapModel.setTitle(model.getTitle());
047                    soapModel.setDescription(model.getDescription());
048                    soapModel.setChangeLog(model.getChangeLog());
049                    soapModel.setExtraSettings(model.getExtraSettings());
050                    soapModel.setVersion(model.getVersion());
051                    soapModel.setSize(model.getSize());
052                    soapModel.setStatus(model.getStatus());
053                    soapModel.setStatusByUserId(model.getStatusByUserId());
054                    soapModel.setStatusByUserName(model.getStatusByUserName());
055                    soapModel.setStatusDate(model.getStatusDate());
056    
057                    return soapModel;
058            }
059    
060            public static DLFileVersionSoap[] toSoapModels(DLFileVersion[] models) {
061                    DLFileVersionSoap[] soapModels = new DLFileVersionSoap[models.length];
062    
063                    for (int i = 0; i < models.length; i++) {
064                            soapModels[i] = toSoapModel(models[i]);
065                    }
066    
067                    return soapModels;
068            }
069    
070            public static DLFileVersionSoap[][] toSoapModels(DLFileVersion[][] models) {
071                    DLFileVersionSoap[][] soapModels = null;
072    
073                    if (models.length > 0) {
074                            soapModels = new DLFileVersionSoap[models.length][models[0].length];
075                    }
076                    else {
077                            soapModels = new DLFileVersionSoap[0][0];
078                    }
079    
080                    for (int i = 0; i < models.length; i++) {
081                            soapModels[i] = toSoapModels(models[i]);
082                    }
083    
084                    return soapModels;
085            }
086    
087            public static DLFileVersionSoap[] toSoapModels(List<DLFileVersion> models) {
088                    List<DLFileVersionSoap> soapModels = new ArrayList<DLFileVersionSoap>(models.size());
089    
090                    for (DLFileVersion model : models) {
091                            soapModels.add(toSoapModel(model));
092                    }
093    
094                    return soapModels.toArray(new DLFileVersionSoap[soapModels.size()]);
095            }
096    
097            public DLFileVersionSoap() {
098            }
099    
100            public long getPrimaryKey() {
101                    return _fileVersionId;
102            }
103    
104            public void setPrimaryKey(long pk) {
105                    setFileVersionId(pk);
106            }
107    
108            public long getFileVersionId() {
109                    return _fileVersionId;
110            }
111    
112            public void setFileVersionId(long fileVersionId) {
113                    _fileVersionId = fileVersionId;
114            }
115    
116            public long getGroupId() {
117                    return _groupId;
118            }
119    
120            public void setGroupId(long groupId) {
121                    _groupId = groupId;
122            }
123    
124            public long getCompanyId() {
125                    return _companyId;
126            }
127    
128            public void setCompanyId(long companyId) {
129                    _companyId = companyId;
130            }
131    
132            public long getUserId() {
133                    return _userId;
134            }
135    
136            public void setUserId(long userId) {
137                    _userId = userId;
138            }
139    
140            public String getUserName() {
141                    return _userName;
142            }
143    
144            public void setUserName(String userName) {
145                    _userName = userName;
146            }
147    
148            public Date getCreateDate() {
149                    return _createDate;
150            }
151    
152            public void setCreateDate(Date createDate) {
153                    _createDate = createDate;
154            }
155    
156            public long getFolderId() {
157                    return _folderId;
158            }
159    
160            public void setFolderId(long folderId) {
161                    _folderId = folderId;
162            }
163    
164            public String getName() {
165                    return _name;
166            }
167    
168            public void setName(String name) {
169                    _name = name;
170            }
171    
172            public String getExtension() {
173                    return _extension;
174            }
175    
176            public void setExtension(String extension) {
177                    _extension = extension;
178            }
179    
180            public String getTitle() {
181                    return _title;
182            }
183    
184            public void setTitle(String title) {
185                    _title = title;
186            }
187    
188            public String getDescription() {
189                    return _description;
190            }
191    
192            public void setDescription(String description) {
193                    _description = description;
194            }
195    
196            public String getChangeLog() {
197                    return _changeLog;
198            }
199    
200            public void setChangeLog(String changeLog) {
201                    _changeLog = changeLog;
202            }
203    
204            public String getExtraSettings() {
205                    return _extraSettings;
206            }
207    
208            public void setExtraSettings(String extraSettings) {
209                    _extraSettings = extraSettings;
210            }
211    
212            public String getVersion() {
213                    return _version;
214            }
215    
216            public void setVersion(String version) {
217                    _version = version;
218            }
219    
220            public long getSize() {
221                    return _size;
222            }
223    
224            public void setSize(long size) {
225                    _size = size;
226            }
227    
228            public int getStatus() {
229                    return _status;
230            }
231    
232            public void setStatus(int status) {
233                    _status = status;
234            }
235    
236            public long getStatusByUserId() {
237                    return _statusByUserId;
238            }
239    
240            public void setStatusByUserId(long statusByUserId) {
241                    _statusByUserId = statusByUserId;
242            }
243    
244            public String getStatusByUserName() {
245                    return _statusByUserName;
246            }
247    
248            public void setStatusByUserName(String statusByUserName) {
249                    _statusByUserName = statusByUserName;
250            }
251    
252            public Date getStatusDate() {
253                    return _statusDate;
254            }
255    
256            public void setStatusDate(Date statusDate) {
257                    _statusDate = statusDate;
258            }
259    
260            private long _fileVersionId;
261            private long _groupId;
262            private long _companyId;
263            private long _userId;
264            private String _userName;
265            private Date _createDate;
266            private long _folderId;
267            private String _name;
268            private String _extension;
269            private String _title;
270            private String _description;
271            private String _changeLog;
272            private String _extraSettings;
273            private String _version;
274            private long _size;
275            private int _status;
276            private long _statusByUserId;
277            private String _statusByUserName;
278            private Date _statusDate;
279    }