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