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