1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portal.model;
24  
25  import java.io.Serializable;
26  
27  import java.util.ArrayList;
28  import java.util.List;
29  
30  /**
31   * <a href="OrganizationSoap.java.html"><b><i>View Source</i></b></a>
32   *
33   * <p>
34   * ServiceBuilder generated this class. Modifications in this class will be
35   * overwritten the next time is generated.
36   * </p>
37   *
38   * <p>
39   * This class is used by
40   * <code>com.liferay.portal.service.http.OrganizationServiceSoap</code>.
41   * </p>
42   *
43   * @author Brian Wing Shun Chan
44   *
45   * @see com.liferay.portal.service.http.OrganizationServiceSoap
46   *
47   */
48  public class OrganizationSoap implements Serializable {
49      public static OrganizationSoap toSoapModel(Organization model) {
50          OrganizationSoap soapModel = new OrganizationSoap();
51  
52          soapModel.setOrganizationId(model.getOrganizationId());
53          soapModel.setCompanyId(model.getCompanyId());
54          soapModel.setParentOrganizationId(model.getParentOrganizationId());
55          soapModel.setLeftOrganizationId(model.getLeftOrganizationId());
56          soapModel.setRightOrganizationId(model.getRightOrganizationId());
57          soapModel.setName(model.getName());
58          soapModel.setLocation(model.getLocation());
59          soapModel.setRecursable(model.getRecursable());
60          soapModel.setRegionId(model.getRegionId());
61          soapModel.setCountryId(model.getCountryId());
62          soapModel.setStatusId(model.getStatusId());
63          soapModel.setComments(model.getComments());
64  
65          return soapModel;
66      }
67  
68      public static OrganizationSoap[] toSoapModels(List<Organization> models) {
69          List<OrganizationSoap> soapModels = new ArrayList<OrganizationSoap>(models.size());
70  
71          for (Organization model : models) {
72              soapModels.add(toSoapModel(model));
73          }
74  
75          return soapModels.toArray(new OrganizationSoap[soapModels.size()]);
76      }
77  
78      public OrganizationSoap() {
79      }
80  
81      public long getPrimaryKey() {
82          return _organizationId;
83      }
84  
85      public void setPrimaryKey(long pk) {
86          setOrganizationId(pk);
87      }
88  
89      public long getOrganizationId() {
90          return _organizationId;
91      }
92  
93      public void setOrganizationId(long organizationId) {
94          _organizationId = organizationId;
95      }
96  
97      public long getCompanyId() {
98          return _companyId;
99      }
100 
101     public void setCompanyId(long companyId) {
102         _companyId = companyId;
103     }
104 
105     public long getParentOrganizationId() {
106         return _parentOrganizationId;
107     }
108 
109     public void setParentOrganizationId(long parentOrganizationId) {
110         _parentOrganizationId = parentOrganizationId;
111     }
112 
113     public long getLeftOrganizationId() {
114         return _leftOrganizationId;
115     }
116 
117     public void setLeftOrganizationId(long leftOrganizationId) {
118         _leftOrganizationId = leftOrganizationId;
119     }
120 
121     public long getRightOrganizationId() {
122         return _rightOrganizationId;
123     }
124 
125     public void setRightOrganizationId(long rightOrganizationId) {
126         _rightOrganizationId = rightOrganizationId;
127     }
128 
129     public String getName() {
130         return _name;
131     }
132 
133     public void setName(String name) {
134         _name = name;
135     }
136 
137     public boolean getLocation() {
138         return _location;
139     }
140 
141     public boolean isLocation() {
142         return _location;
143     }
144 
145     public void setLocation(boolean location) {
146         _location = location;
147     }
148 
149     public boolean getRecursable() {
150         return _recursable;
151     }
152 
153     public boolean isRecursable() {
154         return _recursable;
155     }
156 
157     public void setRecursable(boolean recursable) {
158         _recursable = recursable;
159     }
160 
161     public long getRegionId() {
162         return _regionId;
163     }
164 
165     public void setRegionId(long regionId) {
166         _regionId = regionId;
167     }
168 
169     public long getCountryId() {
170         return _countryId;
171     }
172 
173     public void setCountryId(long countryId) {
174         _countryId = countryId;
175     }
176 
177     public int getStatusId() {
178         return _statusId;
179     }
180 
181     public void setStatusId(int statusId) {
182         _statusId = statusId;
183     }
184 
185     public String getComments() {
186         return _comments;
187     }
188 
189     public void setComments(String comments) {
190         _comments = comments;
191     }
192 
193     private long _organizationId;
194     private long _companyId;
195     private long _parentOrganizationId;
196     private long _leftOrganizationId;
197     private long _rightOrganizationId;
198     private String _name;
199     private boolean _location;
200     private boolean _recursable;
201     private long _regionId;
202     private long _countryId;
203     private int _statusId;
204     private String _comments;
205 }