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