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