001    /**
002     * Copyright (c) 2000-2010 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     * <p>
025     * This class is used by
026     * {@link com.liferay.portlet.documentlibrary.service.http.DLFileEntryServiceSoap}.
027     * </p>
028     *
029     * @author    Brian Wing Shun Chan
030     * @see       com.liferay.portlet.documentlibrary.service.http.DLFileEntryServiceSoap
031     * @generated
032     */
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.setVersionUserId(model.getVersionUserId());
044                    soapModel.setVersionUserName(model.getVersionUserName());
045                    soapModel.setCreateDate(model.getCreateDate());
046                    soapModel.setModifiedDate(model.getModifiedDate());
047                    soapModel.setFolderId(model.getFolderId());
048                    soapModel.setName(model.getName());
049                    soapModel.setExtension(model.getExtension());
050                    soapModel.setTitle(model.getTitle());
051                    soapModel.setDescription(model.getDescription());
052                    soapModel.setExtraSettings(model.getExtraSettings());
053                    soapModel.setVersion(model.getVersion());
054                    soapModel.setSize(model.getSize());
055                    soapModel.setReadCount(model.getReadCount());
056    
057                    return soapModel;
058            }
059    
060            public static DLFileEntrySoap[] toSoapModels(DLFileEntry[] models) {
061                    DLFileEntrySoap[] soapModels = new DLFileEntrySoap[models.length];
062    
063                    for (int i = 0; i < models.length; i++) {
064                            soapModels[i] = toSoapModel(models[i]);
065                    }
066    
067                    return soapModels;
068            }
069    
070            public static DLFileEntrySoap[][] toSoapModels(DLFileEntry[][] models) {
071                    DLFileEntrySoap[][] soapModels = null;
072    
073                    if (models.length > 0) {
074                            soapModels = new DLFileEntrySoap[models.length][models[0].length];
075                    }
076                    else {
077                            soapModels = new DLFileEntrySoap[0][0];
078                    }
079    
080                    for (int i = 0; i < models.length; i++) {
081                            soapModels[i] = toSoapModels(models[i]);
082                    }
083    
084                    return soapModels;
085            }
086    
087            public static DLFileEntrySoap[] toSoapModels(List<DLFileEntry> models) {
088                    List<DLFileEntrySoap> soapModels = new ArrayList<DLFileEntrySoap>(models.size());
089    
090                    for (DLFileEntry model : models) {
091                            soapModels.add(toSoapModel(model));
092                    }
093    
094                    return soapModels.toArray(new DLFileEntrySoap[soapModels.size()]);
095            }
096    
097            public DLFileEntrySoap() {
098            }
099    
100            public long getPrimaryKey() {
101                    return _fileEntryId;
102            }
103    
104            public void setPrimaryKey(long pk) {
105                    setFileEntryId(pk);
106            }
107    
108            public String getUuid() {
109                    return _uuid;
110            }
111    
112            public void setUuid(String uuid) {
113                    _uuid = uuid;
114            }
115    
116            public long getFileEntryId() {
117                    return _fileEntryId;
118            }
119    
120            public void setFileEntryId(long fileEntryId) {
121                    _fileEntryId = fileEntryId;
122            }
123    
124            public long getGroupId() {
125                    return _groupId;
126            }
127    
128            public void setGroupId(long groupId) {
129                    _groupId = groupId;
130            }
131    
132            public long getCompanyId() {
133                    return _companyId;
134            }
135    
136            public void setCompanyId(long companyId) {
137                    _companyId = companyId;
138            }
139    
140            public long getUserId() {
141                    return _userId;
142            }
143    
144            public void setUserId(long userId) {
145                    _userId = userId;
146            }
147    
148            public String getUserName() {
149                    return _userName;
150            }
151    
152            public void setUserName(String userName) {
153                    _userName = userName;
154            }
155    
156            public long getVersionUserId() {
157                    return _versionUserId;
158            }
159    
160            public void setVersionUserId(long versionUserId) {
161                    _versionUserId = versionUserId;
162            }
163    
164            public String getVersionUserName() {
165                    return _versionUserName;
166            }
167    
168            public void setVersionUserName(String versionUserName) {
169                    _versionUserName = versionUserName;
170            }
171    
172            public Date getCreateDate() {
173                    return _createDate;
174            }
175    
176            public void setCreateDate(Date createDate) {
177                    _createDate = createDate;
178            }
179    
180            public Date getModifiedDate() {
181                    return _modifiedDate;
182            }
183    
184            public void setModifiedDate(Date modifiedDate) {
185                    _modifiedDate = modifiedDate;
186            }
187    
188            public long getFolderId() {
189                    return _folderId;
190            }
191    
192            public void setFolderId(long folderId) {
193                    _folderId = folderId;
194            }
195    
196            public String getName() {
197                    return _name;
198            }
199    
200            public void setName(String name) {
201                    _name = name;
202            }
203    
204            public String getExtension() {
205                    return _extension;
206            }
207    
208            public void setExtension(String extension) {
209                    _extension = extension;
210            }
211    
212            public String getTitle() {
213                    return _title;
214            }
215    
216            public void setTitle(String title) {
217                    _title = title;
218            }
219    
220            public String getDescription() {
221                    return _description;
222            }
223    
224            public void setDescription(String description) {
225                    _description = description;
226            }
227    
228            public String getExtraSettings() {
229                    return _extraSettings;
230            }
231    
232            public void setExtraSettings(String extraSettings) {
233                    _extraSettings = extraSettings;
234            }
235    
236            public String getVersion() {
237                    return _version;
238            }
239    
240            public void setVersion(String version) {
241                    _version = version;
242            }
243    
244            public long getSize() {
245                    return _size;
246            }
247    
248            public void setSize(long size) {
249                    _size = size;
250            }
251    
252            public int getReadCount() {
253                    return _readCount;
254            }
255    
256            public void setReadCount(int readCount) {
257                    _readCount = readCount;
258            }
259    
260            private String _uuid;
261            private long _fileEntryId;
262            private long _groupId;
263            private long _companyId;
264            private long _userId;
265            private String _userName;
266            private long _versionUserId;
267            private String _versionUserName;
268            private Date _createDate;
269            private Date _modifiedDate;
270            private long _folderId;
271            private String _name;
272            private String _extension;
273            private String _title;
274            private String _description;
275            private String _extraSettings;
276            private String _version;
277            private long _size;
278            private int _readCount;
279    }