001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portal.model;
016    
017    import java.io.Serializable;
018    
019    import java.util.ArrayList;
020    import java.util.List;
021    
022    /**
023     * <p>
024     * This class is used by
025     * {@link com.liferay.portal.service.http.OrganizationServiceSoap}.
026     * </p>
027     *
028     * @author    Brian Wing Shun Chan
029     * @see       com.liferay.portal.service.http.OrganizationServiceSoap
030     * @generated
031     */
032    public class OrganizationSoap implements Serializable {
033            public static OrganizationSoap toSoapModel(Organization model) {
034                    OrganizationSoap soapModel = new OrganizationSoap();
035    
036                    soapModel.setOrganizationId(model.getOrganizationId());
037                    soapModel.setCompanyId(model.getCompanyId());
038                    soapModel.setParentOrganizationId(model.getParentOrganizationId());
039                    soapModel.setLeftOrganizationId(model.getLeftOrganizationId());
040                    soapModel.setRightOrganizationId(model.getRightOrganizationId());
041                    soapModel.setName(model.getName());
042                    soapModel.setType(model.getType());
043                    soapModel.setRecursable(model.getRecursable());
044                    soapModel.setRegionId(model.getRegionId());
045                    soapModel.setCountryId(model.getCountryId());
046                    soapModel.setStatusId(model.getStatusId());
047                    soapModel.setComments(model.getComments());
048    
049                    return soapModel;
050            }
051    
052            public static OrganizationSoap[] toSoapModels(Organization[] models) {
053                    OrganizationSoap[] soapModels = new OrganizationSoap[models.length];
054    
055                    for (int i = 0; i < models.length; i++) {
056                            soapModels[i] = toSoapModel(models[i]);
057                    }
058    
059                    return soapModels;
060            }
061    
062            public static OrganizationSoap[][] toSoapModels(Organization[][] models) {
063                    OrganizationSoap[][] soapModels = null;
064    
065                    if (models.length > 0) {
066                            soapModels = new OrganizationSoap[models.length][models[0].length];
067                    }
068                    else {
069                            soapModels = new OrganizationSoap[0][0];
070                    }
071    
072                    for (int i = 0; i < models.length; i++) {
073                            soapModels[i] = toSoapModels(models[i]);
074                    }
075    
076                    return soapModels;
077            }
078    
079            public static OrganizationSoap[] toSoapModels(List<Organization> models) {
080                    List<OrganizationSoap> soapModels = new ArrayList<OrganizationSoap>(models.size());
081    
082                    for (Organization model : models) {
083                            soapModels.add(toSoapModel(model));
084                    }
085    
086                    return soapModels.toArray(new OrganizationSoap[soapModels.size()]);
087            }
088    
089            public OrganizationSoap() {
090            }
091    
092            public long getPrimaryKey() {
093                    return _organizationId;
094            }
095    
096            public void setPrimaryKey(long pk) {
097                    setOrganizationId(pk);
098            }
099    
100            public long getOrganizationId() {
101                    return _organizationId;
102            }
103    
104            public void setOrganizationId(long organizationId) {
105                    _organizationId = organizationId;
106            }
107    
108            public long getCompanyId() {
109                    return _companyId;
110            }
111    
112            public void setCompanyId(long companyId) {
113                    _companyId = companyId;
114            }
115    
116            public long getParentOrganizationId() {
117                    return _parentOrganizationId;
118            }
119    
120            public void setParentOrganizationId(long parentOrganizationId) {
121                    _parentOrganizationId = parentOrganizationId;
122            }
123    
124            public long getLeftOrganizationId() {
125                    return _leftOrganizationId;
126            }
127    
128            public void setLeftOrganizationId(long leftOrganizationId) {
129                    _leftOrganizationId = leftOrganizationId;
130            }
131    
132            public long getRightOrganizationId() {
133                    return _rightOrganizationId;
134            }
135    
136            public void setRightOrganizationId(long rightOrganizationId) {
137                    _rightOrganizationId = rightOrganizationId;
138            }
139    
140            public String getName() {
141                    return _name;
142            }
143    
144            public void setName(String name) {
145                    _name = name;
146            }
147    
148            public String getType() {
149                    return _type;
150            }
151    
152            public void setType(String type) {
153                    _type = type;
154            }
155    
156            public boolean getRecursable() {
157                    return _recursable;
158            }
159    
160            public boolean isRecursable() {
161                    return _recursable;
162            }
163    
164            public void setRecursable(boolean recursable) {
165                    _recursable = recursable;
166            }
167    
168            public long getRegionId() {
169                    return _regionId;
170            }
171    
172            public void setRegionId(long regionId) {
173                    _regionId = regionId;
174            }
175    
176            public long getCountryId() {
177                    return _countryId;
178            }
179    
180            public void setCountryId(long countryId) {
181                    _countryId = countryId;
182            }
183    
184            public int getStatusId() {
185                    return _statusId;
186            }
187    
188            public void setStatusId(int statusId) {
189                    _statusId = statusId;
190            }
191    
192            public String getComments() {
193                    return _comments;
194            }
195    
196            public void setComments(String comments) {
197                    _comments = comments;
198            }
199    
200            private long _organizationId;
201            private long _companyId;
202            private long _parentOrganizationId;
203            private long _leftOrganizationId;
204            private long _rightOrganizationId;
205            private String _name;
206            private String _type;
207            private boolean _recursable;
208            private long _regionId;
209            private long _countryId;
210            private int _statusId;
211            private String _comments;
212    }