001    /**
002     * Copyright (c) 2000-present 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 aQute.bnd.annotation.ProviderType;
018    
019    import java.io.Serializable;
020    
021    import java.util.ArrayList;
022    import java.util.Date;
023    import java.util.List;
024    
025    /**
026     * This class is used by SOAP remote services, specifically {@link com.liferay.portlet.documentlibrary.service.http.DLFolderServiceSoap}.
027     *
028     * @author Brian Wing Shun Chan
029     * @see com.liferay.portlet.documentlibrary.service.http.DLFolderServiceSoap
030     * @generated
031     */
032    @ProviderType
033    public class DLFolderSoap implements Serializable {
034            public static DLFolderSoap toSoapModel(DLFolder model) {
035                    DLFolderSoap soapModel = new DLFolderSoap();
036    
037                    soapModel.setUuid(model.getUuid());
038                    soapModel.setFolderId(model.getFolderId());
039                    soapModel.setGroupId(model.getGroupId());
040                    soapModel.setCompanyId(model.getCompanyId());
041                    soapModel.setUserId(model.getUserId());
042                    soapModel.setUserName(model.getUserName());
043                    soapModel.setCreateDate(model.getCreateDate());
044                    soapModel.setModifiedDate(model.getModifiedDate());
045                    soapModel.setRepositoryId(model.getRepositoryId());
046                    soapModel.setMountPoint(model.getMountPoint());
047                    soapModel.setParentFolderId(model.getParentFolderId());
048                    soapModel.setTreePath(model.getTreePath());
049                    soapModel.setName(model.getName());
050                    soapModel.setDescription(model.getDescription());
051                    soapModel.setLastPostDate(model.getLastPostDate());
052                    soapModel.setDefaultFileEntryTypeId(model.getDefaultFileEntryTypeId());
053                    soapModel.setHidden(model.getHidden());
054                    soapModel.setRestrictionType(model.getRestrictionType());
055                    soapModel.setStatus(model.getStatus());
056                    soapModel.setStatusByUserId(model.getStatusByUserId());
057                    soapModel.setStatusByUserName(model.getStatusByUserName());
058                    soapModel.setStatusDate(model.getStatusDate());
059    
060                    return soapModel;
061            }
062    
063            public static DLFolderSoap[] toSoapModels(DLFolder[] models) {
064                    DLFolderSoap[] soapModels = new DLFolderSoap[models.length];
065    
066                    for (int i = 0; i < models.length; i++) {
067                            soapModels[i] = toSoapModel(models[i]);
068                    }
069    
070                    return soapModels;
071            }
072    
073            public static DLFolderSoap[][] toSoapModels(DLFolder[][] models) {
074                    DLFolderSoap[][] soapModels = null;
075    
076                    if (models.length > 0) {
077                            soapModels = new DLFolderSoap[models.length][models[0].length];
078                    }
079                    else {
080                            soapModels = new DLFolderSoap[0][0];
081                    }
082    
083                    for (int i = 0; i < models.length; i++) {
084                            soapModels[i] = toSoapModels(models[i]);
085                    }
086    
087                    return soapModels;
088            }
089    
090            public static DLFolderSoap[] toSoapModels(List<DLFolder> models) {
091                    List<DLFolderSoap> soapModels = new ArrayList<DLFolderSoap>(models.size());
092    
093                    for (DLFolder model : models) {
094                            soapModels.add(toSoapModel(model));
095                    }
096    
097                    return soapModels.toArray(new DLFolderSoap[soapModels.size()]);
098            }
099    
100            public DLFolderSoap() {
101            }
102    
103            public long getPrimaryKey() {
104                    return _folderId;
105            }
106    
107            public void setPrimaryKey(long pk) {
108                    setFolderId(pk);
109            }
110    
111            public String getUuid() {
112                    return _uuid;
113            }
114    
115            public void setUuid(String uuid) {
116                    _uuid = uuid;
117            }
118    
119            public long getFolderId() {
120                    return _folderId;
121            }
122    
123            public void setFolderId(long folderId) {
124                    _folderId = folderId;
125            }
126    
127            public long getGroupId() {
128                    return _groupId;
129            }
130    
131            public void setGroupId(long groupId) {
132                    _groupId = groupId;
133            }
134    
135            public long getCompanyId() {
136                    return _companyId;
137            }
138    
139            public void setCompanyId(long companyId) {
140                    _companyId = companyId;
141            }
142    
143            public long getUserId() {
144                    return _userId;
145            }
146    
147            public void setUserId(long userId) {
148                    _userId = userId;
149            }
150    
151            public String getUserName() {
152                    return _userName;
153            }
154    
155            public void setUserName(String userName) {
156                    _userName = userName;
157            }
158    
159            public Date getCreateDate() {
160                    return _createDate;
161            }
162    
163            public void setCreateDate(Date createDate) {
164                    _createDate = createDate;
165            }
166    
167            public Date getModifiedDate() {
168                    return _modifiedDate;
169            }
170    
171            public void setModifiedDate(Date modifiedDate) {
172                    _modifiedDate = modifiedDate;
173            }
174    
175            public long getRepositoryId() {
176                    return _repositoryId;
177            }
178    
179            public void setRepositoryId(long repositoryId) {
180                    _repositoryId = repositoryId;
181            }
182    
183            public boolean getMountPoint() {
184                    return _mountPoint;
185            }
186    
187            public boolean isMountPoint() {
188                    return _mountPoint;
189            }
190    
191            public void setMountPoint(boolean mountPoint) {
192                    _mountPoint = mountPoint;
193            }
194    
195            public long getParentFolderId() {
196                    return _parentFolderId;
197            }
198    
199            public void setParentFolderId(long parentFolderId) {
200                    _parentFolderId = parentFolderId;
201            }
202    
203            public String getTreePath() {
204                    return _treePath;
205            }
206    
207            public void setTreePath(String treePath) {
208                    _treePath = treePath;
209            }
210    
211            public String getName() {
212                    return _name;
213            }
214    
215            public void setName(String name) {
216                    _name = name;
217            }
218    
219            public String getDescription() {
220                    return _description;
221            }
222    
223            public void setDescription(String description) {
224                    _description = description;
225            }
226    
227            public Date getLastPostDate() {
228                    return _lastPostDate;
229            }
230    
231            public void setLastPostDate(Date lastPostDate) {
232                    _lastPostDate = lastPostDate;
233            }
234    
235            public long getDefaultFileEntryTypeId() {
236                    return _defaultFileEntryTypeId;
237            }
238    
239            public void setDefaultFileEntryTypeId(long defaultFileEntryTypeId) {
240                    _defaultFileEntryTypeId = defaultFileEntryTypeId;
241            }
242    
243            public boolean getHidden() {
244                    return _hidden;
245            }
246    
247            public boolean isHidden() {
248                    return _hidden;
249            }
250    
251            public void setHidden(boolean hidden) {
252                    _hidden = hidden;
253            }
254    
255            public int getRestrictionType() {
256                    return _restrictionType;
257            }
258    
259            public void setRestrictionType(int restrictionType) {
260                    _restrictionType = restrictionType;
261            }
262    
263            public int getStatus() {
264                    return _status;
265            }
266    
267            public void setStatus(int status) {
268                    _status = status;
269            }
270    
271            public long getStatusByUserId() {
272                    return _statusByUserId;
273            }
274    
275            public void setStatusByUserId(long statusByUserId) {
276                    _statusByUserId = statusByUserId;
277            }
278    
279            public String getStatusByUserName() {
280                    return _statusByUserName;
281            }
282    
283            public void setStatusByUserName(String statusByUserName) {
284                    _statusByUserName = statusByUserName;
285            }
286    
287            public Date getStatusDate() {
288                    return _statusDate;
289            }
290    
291            public void setStatusDate(Date statusDate) {
292                    _statusDate = statusDate;
293            }
294    
295            private String _uuid;
296            private long _folderId;
297            private long _groupId;
298            private long _companyId;
299            private long _userId;
300            private String _userName;
301            private Date _createDate;
302            private Date _modifiedDate;
303            private long _repositoryId;
304            private boolean _mountPoint;
305            private long _parentFolderId;
306            private String _treePath;
307            private String _name;
308            private String _description;
309            private Date _lastPostDate;
310            private long _defaultFileEntryTypeId;
311            private boolean _hidden;
312            private int _restrictionType;
313            private int _status;
314            private long _statusByUserId;
315            private String _statusByUserName;
316            private Date _statusDate;
317    }