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