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.portal.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.portal.service.http.OrganizationServiceSoap}.
025     *
026     * @author Brian Wing Shun Chan
027     * @see com.liferay.portal.service.http.OrganizationServiceSoap
028     * @generated
029     */
030    public class OrganizationSoap implements Serializable {
031            public static OrganizationSoap toSoapModel(Organization model) {
032                    OrganizationSoap soapModel = new OrganizationSoap();
033    
034                    soapModel.setUuid(model.getUuid());
035                    soapModel.setOrganizationId(model.getOrganizationId());
036                    soapModel.setCompanyId(model.getCompanyId());
037                    soapModel.setUserId(model.getUserId());
038                    soapModel.setUserName(model.getUserName());
039                    soapModel.setCreateDate(model.getCreateDate());
040                    soapModel.setModifiedDate(model.getModifiedDate());
041                    soapModel.setParentOrganizationId(model.getParentOrganizationId());
042                    soapModel.setTreePath(model.getTreePath());
043                    soapModel.setName(model.getName());
044                    soapModel.setType(model.getType());
045                    soapModel.setRecursable(model.getRecursable());
046                    soapModel.setRegionId(model.getRegionId());
047                    soapModel.setCountryId(model.getCountryId());
048                    soapModel.setStatusId(model.getStatusId());
049                    soapModel.setComments(model.getComments());
050    
051                    return soapModel;
052            }
053    
054            public static OrganizationSoap[] toSoapModels(Organization[] models) {
055                    OrganizationSoap[] soapModels = new OrganizationSoap[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 OrganizationSoap[][] toSoapModels(Organization[][] models) {
065                    OrganizationSoap[][] soapModels = null;
066    
067                    if (models.length > 0) {
068                            soapModels = new OrganizationSoap[models.length][models[0].length];
069                    }
070                    else {
071                            soapModels = new OrganizationSoap[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 OrganizationSoap[] toSoapModels(List<Organization> models) {
082                    List<OrganizationSoap> soapModels = new ArrayList<OrganizationSoap>(models.size());
083    
084                    for (Organization model : models) {
085                            soapModels.add(toSoapModel(model));
086                    }
087    
088                    return soapModels.toArray(new OrganizationSoap[soapModels.size()]);
089            }
090    
091            public OrganizationSoap() {
092            }
093    
094            public long getPrimaryKey() {
095                    return _organizationId;
096            }
097    
098            public void setPrimaryKey(long pk) {
099                    setOrganizationId(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 getOrganizationId() {
111                    return _organizationId;
112            }
113    
114            public void setOrganizationId(long organizationId) {
115                    _organizationId = organizationId;
116            }
117    
118            public long getCompanyId() {
119                    return _companyId;
120            }
121    
122            public void setCompanyId(long companyId) {
123                    _companyId = companyId;
124            }
125    
126            public long getUserId() {
127                    return _userId;
128            }
129    
130            public void setUserId(long userId) {
131                    _userId = userId;
132            }
133    
134            public String getUserName() {
135                    return _userName;
136            }
137    
138            public void setUserName(String userName) {
139                    _userName = userName;
140            }
141    
142            public Date getCreateDate() {
143                    return _createDate;
144            }
145    
146            public void setCreateDate(Date createDate) {
147                    _createDate = createDate;
148            }
149    
150            public Date getModifiedDate() {
151                    return _modifiedDate;
152            }
153    
154            public void setModifiedDate(Date modifiedDate) {
155                    _modifiedDate = modifiedDate;
156            }
157    
158            public long getParentOrganizationId() {
159                    return _parentOrganizationId;
160            }
161    
162            public void setParentOrganizationId(long parentOrganizationId) {
163                    _parentOrganizationId = parentOrganizationId;
164            }
165    
166            public String getTreePath() {
167                    return _treePath;
168            }
169    
170            public void setTreePath(String treePath) {
171                    _treePath = treePath;
172            }
173    
174            public String getName() {
175                    return _name;
176            }
177    
178            public void setName(String name) {
179                    _name = name;
180            }
181    
182            public String getType() {
183                    return _type;
184            }
185    
186            public void setType(String type) {
187                    _type = type;
188            }
189    
190            public boolean getRecursable() {
191                    return _recursable;
192            }
193    
194            public boolean isRecursable() {
195                    return _recursable;
196            }
197    
198            public void setRecursable(boolean recursable) {
199                    _recursable = recursable;
200            }
201    
202            public long getRegionId() {
203                    return _regionId;
204            }
205    
206            public void setRegionId(long regionId) {
207                    _regionId = regionId;
208            }
209    
210            public long getCountryId() {
211                    return _countryId;
212            }
213    
214            public void setCountryId(long countryId) {
215                    _countryId = countryId;
216            }
217    
218            public int getStatusId() {
219                    return _statusId;
220            }
221    
222            public void setStatusId(int statusId) {
223                    _statusId = statusId;
224            }
225    
226            public String getComments() {
227                    return _comments;
228            }
229    
230            public void setComments(String comments) {
231                    _comments = comments;
232            }
233    
234            private String _uuid;
235            private long _organizationId;
236            private long _companyId;
237            private long _userId;
238            private String _userName;
239            private Date _createDate;
240            private Date _modifiedDate;
241            private long _parentOrganizationId;
242            private String _treePath;
243            private String _name;
244            private String _type;
245            private boolean _recursable;
246            private long _regionId;
247            private long _countryId;
248            private int _statusId;
249            private String _comments;
250    }