001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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.setFolderId(model.getFolderId());
045                    soapModel.setName(model.getName());
046                    soapModel.setExtension(model.getExtension());
047                    soapModel.setMimeType(model.getMimeType());
048                    soapModel.setTitle(model.getTitle());
049                    soapModel.setDescription(model.getDescription());
050                    soapModel.setExtraSettings(model.getExtraSettings());
051                    soapModel.setVersion(model.getVersion());
052                    soapModel.setSize(model.getSize());
053                    soapModel.setReadCount(model.getReadCount());
054    
055                    return soapModel;
056            }
057    
058            public static DLFileEntrySoap[] toSoapModels(DLFileEntry[] models) {
059                    DLFileEntrySoap[] soapModels = new DLFileEntrySoap[models.length];
060    
061                    for (int i = 0; i < models.length; i++) {
062                            soapModels[i] = toSoapModel(models[i]);
063                    }
064    
065                    return soapModels;
066            }
067    
068            public static DLFileEntrySoap[][] toSoapModels(DLFileEntry[][] models) {
069                    DLFileEntrySoap[][] soapModels = null;
070    
071                    if (models.length > 0) {
072                            soapModels = new DLFileEntrySoap[models.length][models[0].length];
073                    }
074                    else {
075                            soapModels = new DLFileEntrySoap[0][0];
076                    }
077    
078                    for (int i = 0; i < models.length; i++) {
079                            soapModels[i] = toSoapModels(models[i]);
080                    }
081    
082                    return soapModels;
083            }
084    
085            public static DLFileEntrySoap[] toSoapModels(List<DLFileEntry> models) {
086                    List<DLFileEntrySoap> soapModels = new ArrayList<DLFileEntrySoap>(models.size());
087    
088                    for (DLFileEntry model : models) {
089                            soapModels.add(toSoapModel(model));
090                    }
091    
092                    return soapModels.toArray(new DLFileEntrySoap[soapModels.size()]);
093            }
094    
095            public DLFileEntrySoap() {
096            }
097    
098            public long getPrimaryKey() {
099                    return _fileEntryId;
100            }
101    
102            public void setPrimaryKey(long pk) {
103                    setFileEntryId(pk);
104            }
105    
106            public String getUuid() {
107                    return _uuid;
108            }
109    
110            public void setUuid(String uuid) {
111                    _uuid = uuid;
112            }
113    
114            public long getFileEntryId() {
115                    return _fileEntryId;
116            }
117    
118            public void setFileEntryId(long fileEntryId) {
119                    _fileEntryId = fileEntryId;
120            }
121    
122            public long getGroupId() {
123                    return _groupId;
124            }
125    
126            public void setGroupId(long groupId) {
127                    _groupId = groupId;
128            }
129    
130            public long getCompanyId() {
131                    return _companyId;
132            }
133    
134            public void setCompanyId(long companyId) {
135                    _companyId = companyId;
136            }
137    
138            public long getUserId() {
139                    return _userId;
140            }
141    
142            public void setUserId(long userId) {
143                    _userId = userId;
144            }
145    
146            public String getUserName() {
147                    return _userName;
148            }
149    
150            public void setUserName(String userName) {
151                    _userName = userName;
152            }
153    
154            public long getVersionUserId() {
155                    return _versionUserId;
156            }
157    
158            public void setVersionUserId(long versionUserId) {
159                    _versionUserId = versionUserId;
160            }
161    
162            public String getVersionUserName() {
163                    return _versionUserName;
164            }
165    
166            public void setVersionUserName(String versionUserName) {
167                    _versionUserName = versionUserName;
168            }
169    
170            public Date getCreateDate() {
171                    return _createDate;
172            }
173    
174            public void setCreateDate(Date createDate) {
175                    _createDate = createDate;
176            }
177    
178            public Date getModifiedDate() {
179                    return _modifiedDate;
180            }
181    
182            public void setModifiedDate(Date modifiedDate) {
183                    _modifiedDate = modifiedDate;
184            }
185    
186            public long getFolderId() {
187                    return _folderId;
188            }
189    
190            public void setFolderId(long folderId) {
191                    _folderId = folderId;
192            }
193    
194            public String getName() {
195                    return _name;
196            }
197    
198            public void setName(String name) {
199                    _name = name;
200            }
201    
202            public String getExtension() {
203                    return _extension;
204            }
205    
206            public void setExtension(String extension) {
207                    _extension = extension;
208            }
209    
210            public String getMimeType() {
211                    return _mimeType;
212            }
213    
214            public void setMimeType(String mimeType) {
215                    _mimeType = mimeType;
216            }
217    
218            public String getTitle() {
219                    return _title;
220            }
221    
222            public void setTitle(String title) {
223                    _title = title;
224            }
225    
226            public String getDescription() {
227                    return _description;
228            }
229    
230            public void setDescription(String description) {
231                    _description = description;
232            }
233    
234            public String getExtraSettings() {
235                    return _extraSettings;
236            }
237    
238            public void setExtraSettings(String extraSettings) {
239                    _extraSettings = extraSettings;
240            }
241    
242            public String getVersion() {
243                    return _version;
244            }
245    
246            public void setVersion(String version) {
247                    _version = version;
248            }
249    
250            public long getSize() {
251                    return _size;
252            }
253    
254            public void setSize(long size) {
255                    _size = size;
256            }
257    
258            public int getReadCount() {
259                    return _readCount;
260            }
261    
262            public void setReadCount(int readCount) {
263                    _readCount = readCount;
264            }
265    
266            private String _uuid;
267            private long _fileEntryId;
268            private long _groupId;
269            private long _companyId;
270            private long _userId;
271            private String _userName;
272            private long _versionUserId;
273            private String _versionUserName;
274            private Date _createDate;
275            private Date _modifiedDate;
276            private long _folderId;
277            private String _name;
278            private String _extension;
279            private String _mimeType;
280            private String _title;
281            private String _description;
282            private String _extraSettings;
283            private String _version;
284            private long _size;
285            private int _readCount;
286    }