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.journal.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.journal.service.http.JournalFolderServiceSoap}.
027     *
028     * @author Brian Wing Shun Chan
029     * @see com.liferay.portlet.journal.service.http.JournalFolderServiceSoap
030     * @generated
031     */
032    @ProviderType
033    public class JournalFolderSoap implements Serializable {
034            public static JournalFolderSoap toSoapModel(JournalFolder model) {
035                    JournalFolderSoap soapModel = new JournalFolderSoap();
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.setParentFolderId(model.getParentFolderId());
046                    soapModel.setTreePath(model.getTreePath());
047                    soapModel.setName(model.getName());
048                    soapModel.setDescription(model.getDescription());
049                    soapModel.setRestrictionType(model.getRestrictionType());
050                    soapModel.setStatus(model.getStatus());
051                    soapModel.setStatusByUserId(model.getStatusByUserId());
052                    soapModel.setStatusByUserName(model.getStatusByUserName());
053                    soapModel.setStatusDate(model.getStatusDate());
054    
055                    return soapModel;
056            }
057    
058            public static JournalFolderSoap[] toSoapModels(JournalFolder[] models) {
059                    JournalFolderSoap[] soapModels = new JournalFolderSoap[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 JournalFolderSoap[][] toSoapModels(JournalFolder[][] models) {
069                    JournalFolderSoap[][] soapModels = null;
070    
071                    if (models.length > 0) {
072                            soapModels = new JournalFolderSoap[models.length][models[0].length];
073                    }
074                    else {
075                            soapModels = new JournalFolderSoap[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 JournalFolderSoap[] toSoapModels(List<JournalFolder> models) {
086                    List<JournalFolderSoap> soapModels = new ArrayList<JournalFolderSoap>(models.size());
087    
088                    for (JournalFolder model : models) {
089                            soapModels.add(toSoapModel(model));
090                    }
091    
092                    return soapModels.toArray(new JournalFolderSoap[soapModels.size()]);
093            }
094    
095            public JournalFolderSoap() {
096            }
097    
098            public long getPrimaryKey() {
099                    return _folderId;
100            }
101    
102            public void setPrimaryKey(long pk) {
103                    setFolderId(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 getFolderId() {
115                    return _folderId;
116            }
117    
118            public void setFolderId(long folderId) {
119                    _folderId = folderId;
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 Date getCreateDate() {
155                    return _createDate;
156            }
157    
158            public void setCreateDate(Date createDate) {
159                    _createDate = createDate;
160            }
161    
162            public Date getModifiedDate() {
163                    return _modifiedDate;
164            }
165    
166            public void setModifiedDate(Date modifiedDate) {
167                    _modifiedDate = modifiedDate;
168            }
169    
170            public long getParentFolderId() {
171                    return _parentFolderId;
172            }
173    
174            public void setParentFolderId(long parentFolderId) {
175                    _parentFolderId = parentFolderId;
176            }
177    
178            public String getTreePath() {
179                    return _treePath;
180            }
181    
182            public void setTreePath(String treePath) {
183                    _treePath = treePath;
184            }
185    
186            public String getName() {
187                    return _name;
188            }
189    
190            public void setName(String name) {
191                    _name = name;
192            }
193    
194            public String getDescription() {
195                    return _description;
196            }
197    
198            public void setDescription(String description) {
199                    _description = description;
200            }
201    
202            public int getRestrictionType() {
203                    return _restrictionType;
204            }
205    
206            public void setRestrictionType(int restrictionType) {
207                    _restrictionType = restrictionType;
208            }
209    
210            public int getStatus() {
211                    return _status;
212            }
213    
214            public void setStatus(int status) {
215                    _status = status;
216            }
217    
218            public long getStatusByUserId() {
219                    return _statusByUserId;
220            }
221    
222            public void setStatusByUserId(long statusByUserId) {
223                    _statusByUserId = statusByUserId;
224            }
225    
226            public String getStatusByUserName() {
227                    return _statusByUserName;
228            }
229    
230            public void setStatusByUserName(String statusByUserName) {
231                    _statusByUserName = statusByUserName;
232            }
233    
234            public Date getStatusDate() {
235                    return _statusDate;
236            }
237    
238            public void setStatusDate(Date statusDate) {
239                    _statusDate = statusDate;
240            }
241    
242            private String _uuid;
243            private long _folderId;
244            private long _groupId;
245            private long _companyId;
246            private long _userId;
247            private String _userName;
248            private Date _createDate;
249            private Date _modifiedDate;
250            private long _parentFolderId;
251            private String _treePath;
252            private String _name;
253            private String _description;
254            private int _restrictionType;
255            private int _status;
256            private long _statusByUserId;
257            private String _statusByUserName;
258            private Date _statusDate;
259    }