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.setOverrideFileEntryTypes(model.getOverrideFileEntryTypes());
050    
051                    return soapModel;
052            }
053    
054            public static DLFolderSoap[] toSoapModels(DLFolder[] models) {
055                    DLFolderSoap[] soapModels = new DLFolderSoap[models.length];
056    
057                    for (int i = 0; i < models.length; i++) {
058                            soapModels[i] = toSoapModel(models[i]);
059                    }
060    
061                    return soapModels;
062            }
063    
064            public static DLFolderSoap[][] toSoapModels(DLFolder[][] models) {
065                    DLFolderSoap[][] soapModels = null;
066    
067                    if (models.length > 0) {
068                            soapModels = new DLFolderSoap[models.length][models[0].length];
069                    }
070                    else {
071                            soapModels = new DLFolderSoap[0][0];
072                    }
073    
074                    for (int i = 0; i < models.length; i++) {
075                            soapModels[i] = toSoapModels(models[i]);
076                    }
077    
078                    return soapModels;
079            }
080    
081            public static DLFolderSoap[] toSoapModels(List<DLFolder> models) {
082                    List<DLFolderSoap> soapModels = new ArrayList<DLFolderSoap>(models.size());
083    
084                    for (DLFolder model : models) {
085                            soapModels.add(toSoapModel(model));
086                    }
087    
088                    return soapModels.toArray(new DLFolderSoap[soapModels.size()]);
089            }
090    
091            public DLFolderSoap() {
092            }
093    
094            public long getPrimaryKey() {
095                    return _folderId;
096            }
097    
098            public void setPrimaryKey(long pk) {
099                    setFolderId(pk);
100            }
101    
102            public String getUuid() {
103                    return _uuid;
104            }
105    
106            public void setUuid(String uuid) {
107                    _uuid = uuid;
108            }
109    
110            public long getFolderId() {
111                    return _folderId;
112            }
113    
114            public void setFolderId(long folderId) {
115                    _folderId = folderId;
116            }
117    
118            public long getGroupId() {
119                    return _groupId;
120            }
121    
122            public void setGroupId(long groupId) {
123                    _groupId = groupId;
124            }
125    
126            public long getCompanyId() {
127                    return _companyId;
128            }
129    
130            public void setCompanyId(long companyId) {
131                    _companyId = companyId;
132            }
133    
134            public long getUserId() {
135                    return _userId;
136            }
137    
138            public void setUserId(long userId) {
139                    _userId = userId;
140            }
141    
142            public String getUserName() {
143                    return _userName;
144            }
145    
146            public void setUserName(String userName) {
147                    _userName = userName;
148            }
149    
150            public Date getCreateDate() {
151                    return _createDate;
152            }
153    
154            public void setCreateDate(Date createDate) {
155                    _createDate = createDate;
156            }
157    
158            public Date getModifiedDate() {
159                    return _modifiedDate;
160            }
161    
162            public void setModifiedDate(Date modifiedDate) {
163                    _modifiedDate = modifiedDate;
164            }
165    
166            public long getRepositoryId() {
167                    return _repositoryId;
168            }
169    
170            public void setRepositoryId(long repositoryId) {
171                    _repositoryId = repositoryId;
172            }
173    
174            public boolean getMountPoint() {
175                    return _mountPoint;
176            }
177    
178            public boolean isMountPoint() {
179                    return _mountPoint;
180            }
181    
182            public void setMountPoint(boolean mountPoint) {
183                    _mountPoint = mountPoint;
184            }
185    
186            public long getParentFolderId() {
187                    return _parentFolderId;
188            }
189    
190            public void setParentFolderId(long parentFolderId) {
191                    _parentFolderId = parentFolderId;
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 getDescription() {
203                    return _description;
204            }
205    
206            public void setDescription(String description) {
207                    _description = description;
208            }
209    
210            public Date getLastPostDate() {
211                    return _lastPostDate;
212            }
213    
214            public void setLastPostDate(Date lastPostDate) {
215                    _lastPostDate = lastPostDate;
216            }
217    
218            public long getDefaultFileEntryTypeId() {
219                    return _defaultFileEntryTypeId;
220            }
221    
222            public void setDefaultFileEntryTypeId(long defaultFileEntryTypeId) {
223                    _defaultFileEntryTypeId = defaultFileEntryTypeId;
224            }
225    
226            public boolean getOverrideFileEntryTypes() {
227                    return _overrideFileEntryTypes;
228            }
229    
230            public boolean isOverrideFileEntryTypes() {
231                    return _overrideFileEntryTypes;
232            }
233    
234            public void setOverrideFileEntryTypes(boolean overrideFileEntryTypes) {
235                    _overrideFileEntryTypes = overrideFileEntryTypes;
236            }
237    
238            private String _uuid;
239            private long _folderId;
240            private long _groupId;
241            private long _companyId;
242            private long _userId;
243            private String _userName;
244            private Date _createDate;
245            private Date _modifiedDate;
246            private long _repositoryId;
247            private boolean _mountPoint;
248            private long _parentFolderId;
249            private String _name;
250            private String _description;
251            private Date _lastPostDate;
252            private long _defaultFileEntryTypeId;
253            private boolean _overrideFileEntryTypes;
254    }