1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
14   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
15   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
17   * SOFTWARE.
18   */
19  
20  package com.liferay.portal.model;
21  
22  import java.io.Serializable;
23  
24  import java.util.ArrayList;
25  import java.util.List;
26  
27  /**
28   * <a href="OrganizationSoap.java.html"><b><i>View Source</i></b></a>
29   *
30   * <p>
31   * ServiceBuilder generated this class. Modifications in this class will be
32   * overwritten the next time is generated.
33   * </p>
34   *
35   * <p>
36   * This class is used by
37   * <code>com.liferay.portal.service.http.OrganizationServiceSoap</code>.
38   * </p>
39   *
40   * @author Brian Wing Shun Chan
41   *
42   * @see com.liferay.portal.service.http.OrganizationServiceSoap
43   *
44   */
45  public class OrganizationSoap implements Serializable {
46      public static OrganizationSoap toSoapModel(Organization model) {
47          OrganizationSoap soapModel = new OrganizationSoap();
48  
49          soapModel.setOrganizationId(model.getOrganizationId());
50          soapModel.setCompanyId(model.getCompanyId());
51          soapModel.setParentOrganizationId(model.getParentOrganizationId());
52          soapModel.setName(model.getName());
53          soapModel.setLocation(model.getLocation());
54          soapModel.setRecursable(model.getRecursable());
55          soapModel.setRegionId(model.getRegionId());
56          soapModel.setCountryId(model.getCountryId());
57          soapModel.setStatusId(model.getStatusId());
58          soapModel.setComments(model.getComments());
59  
60          return soapModel;
61      }
62  
63      public static OrganizationSoap[] toSoapModels(List<Organization> models) {
64          List<OrganizationSoap> soapModels = new ArrayList<OrganizationSoap>(models.size());
65  
66          for (Organization model : models) {
67              soapModels.add(toSoapModel(model));
68          }
69  
70          return soapModels.toArray(new OrganizationSoap[soapModels.size()]);
71      }
72  
73      public OrganizationSoap() {
74      }
75  
76      public long getPrimaryKey() {
77          return _organizationId;
78      }
79  
80      public void setPrimaryKey(long pk) {
81          setOrganizationId(pk);
82      }
83  
84      public long getOrganizationId() {
85          return _organizationId;
86      }
87  
88      public void setOrganizationId(long organizationId) {
89          _organizationId = organizationId;
90      }
91  
92      public long getCompanyId() {
93          return _companyId;
94      }
95  
96      public void setCompanyId(long companyId) {
97          _companyId = companyId;
98      }
99  
100     public long getParentOrganizationId() {
101         return _parentOrganizationId;
102     }
103 
104     public void setParentOrganizationId(long parentOrganizationId) {
105         _parentOrganizationId = parentOrganizationId;
106     }
107 
108     public String getName() {
109         return _name;
110     }
111 
112     public void setName(String name) {
113         _name = name;
114     }
115 
116     public boolean getLocation() {
117         return _location;
118     }
119 
120     public boolean isLocation() {
121         return _location;
122     }
123 
124     public void setLocation(boolean location) {
125         _location = location;
126     }
127 
128     public boolean getRecursable() {
129         return _recursable;
130     }
131 
132     public boolean isRecursable() {
133         return _recursable;
134     }
135 
136     public void setRecursable(boolean recursable) {
137         _recursable = recursable;
138     }
139 
140     public long getRegionId() {
141         return _regionId;
142     }
143 
144     public void setRegionId(long regionId) {
145         _regionId = regionId;
146     }
147 
148     public long getCountryId() {
149         return _countryId;
150     }
151 
152     public void setCountryId(long countryId) {
153         _countryId = countryId;
154     }
155 
156     public int getStatusId() {
157         return _statusId;
158     }
159 
160     public void setStatusId(int statusId) {
161         _statusId = statusId;
162     }
163 
164     public String getComments() {
165         return _comments;
166     }
167 
168     public void setComments(String comments) {
169         _comments = comments;
170     }
171 
172     private long _organizationId;
173     private long _companyId;
174     private long _parentOrganizationId;
175     private String _name;
176     private boolean _location;
177     private boolean _recursable;
178     private long _regionId;
179     private long _countryId;
180     private int _statusId;
181     private String _comments;
182 }