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.DLFolderServiceSoap}.
025     *
026     * @author Brian Wing Shun Chan
027     * @see com.liferay.portlet.documentlibrary.service.http.DLFolderServiceSoap
028     * @generated
029     */
030    public class DLFolderSoap implements Serializable {
031            public static DLFolderSoap toSoapModel(DLFolder model) {
032                    DLFolderSoap soapModel = new DLFolderSoap();
033    
034                    soapModel.setUuid(model.getUuid());
035                    soapModel.setFolderId(model.getFolderId());
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.setRepositoryId(model.getRepositoryId());
043                    soapModel.setMountPoint(model.getMountPoint());
044                    soapModel.setParentFolderId(model.getParentFolderId());
045                    soapModel.setTreePath(model.getTreePath());
046                    soapModel.setName(model.getName());
047                    soapModel.setDescription(model.getDescription());
048                    soapModel.setLastPostDate(model.getLastPostDate());
049                    soapModel.setDefaultFileEntryTypeId(model.getDefaultFileEntryTypeId());
050                    soapModel.setHidden(model.getHidden());
051                    soapModel.setOverrideFileEntryTypes(model.getOverrideFileEntryTypes());
052                    soapModel.setStatus(model.getStatus());
053                    soapModel.setStatusByUserId(model.getStatusByUserId());
054                    soapModel.setStatusByUserName(model.getStatusByUserName());
055                    soapModel.setStatusDate(model.getStatusDate());
056    
057                    return soapModel;
058            }
059    
060            public static DLFolderSoap[] toSoapModels(DLFolder[] models) {
061                    DLFolderSoap[] soapModels = new DLFolderSoap[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 DLFolderSoap[][] toSoapModels(DLFolder[][] models) {
071                    DLFolderSoap[][] soapModels = null;
072    
073                    if (models.length > 0) {
074                            soapModels = new DLFolderSoap[models.length][models[0].length];
075                    }
076                    else {
077                            soapModels = new DLFolderSoap[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 DLFolderSoap[] toSoapModels(List<DLFolder> models) {
088                    List<DLFolderSoap> soapModels = new ArrayList<DLFolderSoap>(models.size());
089    
090                    for (DLFolder model : models) {
091                            soapModels.add(toSoapModel(model));
092                    }
093    
094                    return soapModels.toArray(new DLFolderSoap[soapModels.size()]);
095            }
096    
097            public DLFolderSoap() {
098            }
099    
100            public long getPrimaryKey() {
101                    return _folderId;
102            }
103    
104            public void setPrimaryKey(long pk) {
105                    setFolderId(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 getFolderId() {
117                    return _folderId;
118            }
119    
120            public void setFolderId(long folderId) {
121                    _folderId = folderId;
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 Date getCreateDate() {
157                    return _createDate;
158            }
159    
160            public void setCreateDate(Date createDate) {
161                    _createDate = createDate;
162            }
163    
164            public Date getModifiedDate() {
165                    return _modifiedDate;
166            }
167    
168            public void setModifiedDate(Date modifiedDate) {
169                    _modifiedDate = modifiedDate;
170            }
171    
172            public long getRepositoryId() {
173                    return _repositoryId;
174            }
175    
176            public void setRepositoryId(long repositoryId) {
177                    _repositoryId = repositoryId;
178            }
179    
180            public boolean getMountPoint() {
181                    return _mountPoint;
182            }
183    
184            public boolean isMountPoint() {
185                    return _mountPoint;
186            }
187    
188            public void setMountPoint(boolean mountPoint) {
189                    _mountPoint = mountPoint;
190            }
191    
192            public long getParentFolderId() {
193                    return _parentFolderId;
194            }
195    
196            public void setParentFolderId(long parentFolderId) {
197                    _parentFolderId = parentFolderId;
198            }
199    
200            public String getTreePath() {
201                    return _treePath;
202            }
203    
204            public void setTreePath(String treePath) {
205                    _treePath = treePath;
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 getDescription() {
217                    return _description;
218            }
219    
220            public void setDescription(String description) {
221                    _description = description;
222            }
223    
224            public Date getLastPostDate() {
225                    return _lastPostDate;
226            }
227    
228            public void setLastPostDate(Date lastPostDate) {
229                    _lastPostDate = lastPostDate;
230            }
231    
232            public long getDefaultFileEntryTypeId() {
233                    return _defaultFileEntryTypeId;
234            }
235    
236            public void setDefaultFileEntryTypeId(long defaultFileEntryTypeId) {
237                    _defaultFileEntryTypeId = defaultFileEntryTypeId;
238            }
239    
240            public boolean getHidden() {
241                    return _hidden;
242            }
243    
244            public boolean isHidden() {
245                    return _hidden;
246            }
247    
248            public void setHidden(boolean hidden) {
249                    _hidden = hidden;
250            }
251    
252            public boolean getOverrideFileEntryTypes() {
253                    return _overrideFileEntryTypes;
254            }
255    
256            public boolean isOverrideFileEntryTypes() {
257                    return _overrideFileEntryTypes;
258            }
259    
260            public void setOverrideFileEntryTypes(boolean overrideFileEntryTypes) {
261                    _overrideFileEntryTypes = overrideFileEntryTypes;
262            }
263    
264            public int getStatus() {
265                    return _status;
266            }
267    
268            public void setStatus(int status) {
269                    _status = status;
270            }
271    
272            public long getStatusByUserId() {
273                    return _statusByUserId;
274            }
275    
276            public void setStatusByUserId(long statusByUserId) {
277                    _statusByUserId = statusByUserId;
278            }
279    
280            public String getStatusByUserName() {
281                    return _statusByUserName;
282            }
283    
284            public void setStatusByUserName(String statusByUserName) {
285                    _statusByUserName = statusByUserName;
286            }
287    
288            public Date getStatusDate() {
289                    return _statusDate;
290            }
291    
292            public void setStatusDate(Date statusDate) {
293                    _statusDate = statusDate;
294            }
295    
296            private String _uuid;
297            private long _folderId;
298            private long _groupId;
299            private long _companyId;
300            private long _userId;
301            private String _userName;
302            private Date _createDate;
303            private Date _modifiedDate;
304            private long _repositoryId;
305            private boolean _mountPoint;
306            private long _parentFolderId;
307            private String _treePath;
308            private String _name;
309            private String _description;
310            private Date _lastPostDate;
311            private long _defaultFileEntryTypeId;
312            private boolean _hidden;
313            private boolean _overrideFileEntryTypes;
314            private int _status;
315            private long _statusByUserId;
316            private String _statusByUserName;
317            private Date _statusDate;
318    }