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