001    /**
002     * Copyright (c) 2000-2012 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.DLFileEntryServiceSoap}.
025     *
026     * @author    Brian Wing Shun Chan
027     * @see       com.liferay.portlet.documentlibrary.service.http.DLFileEntryServiceSoap
028     * @generated
029     */
030    public class DLFileEntrySoap implements Serializable {
031            public static DLFileEntrySoap toSoapModel(DLFileEntry model) {
032                    DLFileEntrySoap soapModel = new DLFileEntrySoap();
033    
034                    soapModel.setUuid(model.getUuid());
035                    soapModel.setFileEntryId(model.getFileEntryId());
036                    soapModel.setGroupId(model.getGroupId());
037                    soapModel.setCompanyId(model.getCompanyId());
038                    soapModel.setUserId(model.getUserId());
039                    soapModel.setUserName(model.getUserName());
040                    soapModel.setVersionUserId(model.getVersionUserId());
041                    soapModel.setVersionUserName(model.getVersionUserName());
042                    soapModel.setCreateDate(model.getCreateDate());
043                    soapModel.setModifiedDate(model.getModifiedDate());
044                    soapModel.setRepositoryId(model.getRepositoryId());
045                    soapModel.setFolderId(model.getFolderId());
046                    soapModel.setName(model.getName());
047                    soapModel.setExtension(model.getExtension());
048                    soapModel.setMimeType(model.getMimeType());
049                    soapModel.setTitle(model.getTitle());
050                    soapModel.setDescription(model.getDescription());
051                    soapModel.setExtraSettings(model.getExtraSettings());
052                    soapModel.setFileEntryTypeId(model.getFileEntryTypeId());
053                    soapModel.setVersion(model.getVersion());
054                    soapModel.setSize(model.getSize());
055                    soapModel.setReadCount(model.getReadCount());
056                    soapModel.setSmallImageId(model.getSmallImageId());
057                    soapModel.setLargeImageId(model.getLargeImageId());
058                    soapModel.setCustom1ImageId(model.getCustom1ImageId());
059                    soapModel.setCustom2ImageId(model.getCustom2ImageId());
060                    soapModel.setManualCheckInRequired(model.getManualCheckInRequired());
061    
062                    return soapModel;
063            }
064    
065            public static DLFileEntrySoap[] toSoapModels(DLFileEntry[] models) {
066                    DLFileEntrySoap[] soapModels = new DLFileEntrySoap[models.length];
067    
068                    for (int i = 0; i < models.length; i++) {
069                            soapModels[i] = toSoapModel(models[i]);
070                    }
071    
072                    return soapModels;
073            }
074    
075            public static DLFileEntrySoap[][] toSoapModels(DLFileEntry[][] models) {
076                    DLFileEntrySoap[][] soapModels = null;
077    
078                    if (models.length > 0) {
079                            soapModels = new DLFileEntrySoap[models.length][models[0].length];
080                    }
081                    else {
082                            soapModels = new DLFileEntrySoap[0][0];
083                    }
084    
085                    for (int i = 0; i < models.length; i++) {
086                            soapModels[i] = toSoapModels(models[i]);
087                    }
088    
089                    return soapModels;
090            }
091    
092            public static DLFileEntrySoap[] toSoapModels(List<DLFileEntry> models) {
093                    List<DLFileEntrySoap> soapModels = new ArrayList<DLFileEntrySoap>(models.size());
094    
095                    for (DLFileEntry model : models) {
096                            soapModels.add(toSoapModel(model));
097                    }
098    
099                    return soapModels.toArray(new DLFileEntrySoap[soapModels.size()]);
100            }
101    
102            public DLFileEntrySoap() {
103            }
104    
105            public long getPrimaryKey() {
106                    return _fileEntryId;
107            }
108    
109            public void setPrimaryKey(long pk) {
110                    setFileEntryId(pk);
111            }
112    
113            public String getUuid() {
114                    return _uuid;
115            }
116    
117            public void setUuid(String uuid) {
118                    _uuid = uuid;
119            }
120    
121            public long getFileEntryId() {
122                    return _fileEntryId;
123            }
124    
125            public void setFileEntryId(long fileEntryId) {
126                    _fileEntryId = fileEntryId;
127            }
128    
129            public long getGroupId() {
130                    return _groupId;
131            }
132    
133            public void setGroupId(long groupId) {
134                    _groupId = groupId;
135            }
136    
137            public long getCompanyId() {
138                    return _companyId;
139            }
140    
141            public void setCompanyId(long companyId) {
142                    _companyId = companyId;
143            }
144    
145            public long getUserId() {
146                    return _userId;
147            }
148    
149            public void setUserId(long userId) {
150                    _userId = userId;
151            }
152    
153            public String getUserName() {
154                    return _userName;
155            }
156    
157            public void setUserName(String userName) {
158                    _userName = userName;
159            }
160    
161            public long getVersionUserId() {
162                    return _versionUserId;
163            }
164    
165            public void setVersionUserId(long versionUserId) {
166                    _versionUserId = versionUserId;
167            }
168    
169            public String getVersionUserName() {
170                    return _versionUserName;
171            }
172    
173            public void setVersionUserName(String versionUserName) {
174                    _versionUserName = versionUserName;
175            }
176    
177            public Date getCreateDate() {
178                    return _createDate;
179            }
180    
181            public void setCreateDate(Date createDate) {
182                    _createDate = createDate;
183            }
184    
185            public Date getModifiedDate() {
186                    return _modifiedDate;
187            }
188    
189            public void setModifiedDate(Date modifiedDate) {
190                    _modifiedDate = modifiedDate;
191            }
192    
193            public long getRepositoryId() {
194                    return _repositoryId;
195            }
196    
197            public void setRepositoryId(long repositoryId) {
198                    _repositoryId = repositoryId;
199            }
200    
201            public long getFolderId() {
202                    return _folderId;
203            }
204    
205            public void setFolderId(long folderId) {
206                    _folderId = folderId;
207            }
208    
209            public String getName() {
210                    return _name;
211            }
212    
213            public void setName(String name) {
214                    _name = name;
215            }
216    
217            public String getExtension() {
218                    return _extension;
219            }
220    
221            public void setExtension(String extension) {
222                    _extension = extension;
223            }
224    
225            public String getMimeType() {
226                    return _mimeType;
227            }
228    
229            public void setMimeType(String mimeType) {
230                    _mimeType = mimeType;
231            }
232    
233            public String getTitle() {
234                    return _title;
235            }
236    
237            public void setTitle(String title) {
238                    _title = title;
239            }
240    
241            public String getDescription() {
242                    return _description;
243            }
244    
245            public void setDescription(String description) {
246                    _description = description;
247            }
248    
249            public String getExtraSettings() {
250                    return _extraSettings;
251            }
252    
253            public void setExtraSettings(String extraSettings) {
254                    _extraSettings = extraSettings;
255            }
256    
257            public long getFileEntryTypeId() {
258                    return _fileEntryTypeId;
259            }
260    
261            public void setFileEntryTypeId(long fileEntryTypeId) {
262                    _fileEntryTypeId = fileEntryTypeId;
263            }
264    
265            public String getVersion() {
266                    return _version;
267            }
268    
269            public void setVersion(String version) {
270                    _version = version;
271            }
272    
273            public long getSize() {
274                    return _size;
275            }
276    
277            public void setSize(long size) {
278                    _size = size;
279            }
280    
281            public int getReadCount() {
282                    return _readCount;
283            }
284    
285            public void setReadCount(int readCount) {
286                    _readCount = readCount;
287            }
288    
289            public long getSmallImageId() {
290                    return _smallImageId;
291            }
292    
293            public void setSmallImageId(long smallImageId) {
294                    _smallImageId = smallImageId;
295            }
296    
297            public long getLargeImageId() {
298                    return _largeImageId;
299            }
300    
301            public void setLargeImageId(long largeImageId) {
302                    _largeImageId = largeImageId;
303            }
304    
305            public long getCustom1ImageId() {
306                    return _custom1ImageId;
307            }
308    
309            public void setCustom1ImageId(long custom1ImageId) {
310                    _custom1ImageId = custom1ImageId;
311            }
312    
313            public long getCustom2ImageId() {
314                    return _custom2ImageId;
315            }
316    
317            public void setCustom2ImageId(long custom2ImageId) {
318                    _custom2ImageId = custom2ImageId;
319            }
320    
321            public boolean getManualCheckInRequired() {
322                    return _manualCheckInRequired;
323            }
324    
325            public boolean isManualCheckInRequired() {
326                    return _manualCheckInRequired;
327            }
328    
329            public void setManualCheckInRequired(boolean manualCheckInRequired) {
330                    _manualCheckInRequired = manualCheckInRequired;
331            }
332    
333            private String _uuid;
334            private long _fileEntryId;
335            private long _groupId;
336            private long _companyId;
337            private long _userId;
338            private String _userName;
339            private long _versionUserId;
340            private String _versionUserName;
341            private Date _createDate;
342            private Date _modifiedDate;
343            private long _repositoryId;
344            private long _folderId;
345            private String _name;
346            private String _extension;
347            private String _mimeType;
348            private String _title;
349            private String _description;
350            private String _extraSettings;
351            private long _fileEntryTypeId;
352            private String _version;
353            private long _size;
354            private int _readCount;
355            private long _smallImageId;
356            private long _largeImageId;
357            private long _custom1ImageId;
358            private long _custom2ImageId;
359            private boolean _manualCheckInRequired;
360    }