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.portal.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.portal.service.http.OrganizationServiceSoap}.
027     *
028     * @author Brian Wing Shun Chan
029     * @see com.liferay.portal.service.http.OrganizationServiceSoap
030     * @generated
031     */
032    @ProviderType
033    public class OrganizationSoap implements Serializable {
034            public static OrganizationSoap toSoapModel(Organization model) {
035                    OrganizationSoap soapModel = new OrganizationSoap();
036    
037                    soapModel.setMvccVersion(model.getMvccVersion());
038                    soapModel.setUuid(model.getUuid());
039                    soapModel.setOrganizationId(model.getOrganizationId());
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.setParentOrganizationId(model.getParentOrganizationId());
046                    soapModel.setTreePath(model.getTreePath());
047                    soapModel.setName(model.getName());
048                    soapModel.setType(model.getType());
049                    soapModel.setRecursable(model.getRecursable());
050                    soapModel.setRegionId(model.getRegionId());
051                    soapModel.setCountryId(model.getCountryId());
052                    soapModel.setStatusId(model.getStatusId());
053                    soapModel.setComments(model.getComments());
054                    soapModel.setLogoId(model.getLogoId());
055    
056                    return soapModel;
057            }
058    
059            public static OrganizationSoap[] toSoapModels(Organization[] models) {
060                    OrganizationSoap[] soapModels = new OrganizationSoap[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 OrganizationSoap[][] toSoapModels(Organization[][] models) {
070                    OrganizationSoap[][] soapModels = null;
071    
072                    if (models.length > 0) {
073                            soapModels = new OrganizationSoap[models.length][models[0].length];
074                    }
075                    else {
076                            soapModels = new OrganizationSoap[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 OrganizationSoap[] toSoapModels(List<Organization> models) {
087                    List<OrganizationSoap> soapModels = new ArrayList<OrganizationSoap>(models.size());
088    
089                    for (Organization model : models) {
090                            soapModels.add(toSoapModel(model));
091                    }
092    
093                    return soapModels.toArray(new OrganizationSoap[soapModels.size()]);
094            }
095    
096            public OrganizationSoap() {
097            }
098    
099            public long getPrimaryKey() {
100                    return _organizationId;
101            }
102    
103            public void setPrimaryKey(long pk) {
104                    setOrganizationId(pk);
105            }
106    
107            public long getMvccVersion() {
108                    return _mvccVersion;
109            }
110    
111            public void setMvccVersion(long mvccVersion) {
112                    _mvccVersion = mvccVersion;
113            }
114    
115            public String getUuid() {
116                    return _uuid;
117            }
118    
119            public void setUuid(String uuid) {
120                    _uuid = uuid;
121            }
122    
123            public long getOrganizationId() {
124                    return _organizationId;
125            }
126    
127            public void setOrganizationId(long organizationId) {
128                    _organizationId = organizationId;
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 getParentOrganizationId() {
172                    return _parentOrganizationId;
173            }
174    
175            public void setParentOrganizationId(long parentOrganizationId) {
176                    _parentOrganizationId = parentOrganizationId;
177            }
178    
179            public String getTreePath() {
180                    return _treePath;
181            }
182    
183            public void setTreePath(String treePath) {
184                    _treePath = treePath;
185            }
186    
187            public String getName() {
188                    return _name;
189            }
190    
191            public void setName(String name) {
192                    _name = name;
193            }
194    
195            public String getType() {
196                    return _type;
197            }
198    
199            public void setType(String type) {
200                    _type = type;
201            }
202    
203            public boolean getRecursable() {
204                    return _recursable;
205            }
206    
207            public boolean isRecursable() {
208                    return _recursable;
209            }
210    
211            public void setRecursable(boolean recursable) {
212                    _recursable = recursable;
213            }
214    
215            public long getRegionId() {
216                    return _regionId;
217            }
218    
219            public void setRegionId(long regionId) {
220                    _regionId = regionId;
221            }
222    
223            public long getCountryId() {
224                    return _countryId;
225            }
226    
227            public void setCountryId(long countryId) {
228                    _countryId = countryId;
229            }
230    
231            public long getStatusId() {
232                    return _statusId;
233            }
234    
235            public void setStatusId(long statusId) {
236                    _statusId = statusId;
237            }
238    
239            public String getComments() {
240                    return _comments;
241            }
242    
243            public void setComments(String comments) {
244                    _comments = comments;
245            }
246    
247            public long getLogoId() {
248                    return _logoId;
249            }
250    
251            public void setLogoId(long logoId) {
252                    _logoId = logoId;
253            }
254    
255            private long _mvccVersion;
256            private String _uuid;
257            private long _organizationId;
258            private long _companyId;
259            private long _userId;
260            private String _userName;
261            private Date _createDate;
262            private Date _modifiedDate;
263            private long _parentOrganizationId;
264            private String _treePath;
265            private String _name;
266            private String _type;
267            private boolean _recursable;
268            private long _regionId;
269            private long _countryId;
270            private long _statusId;
271            private String _comments;
272            private long _logoId;
273    }