1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portal.model;
16  
17  import java.io.Serializable;
18  
19  import java.util.ArrayList;
20  import java.util.List;
21  
22  /**
23   * <a href="CompanySoap.java.html"><b><i>View Source</i></b></a>
24   *
25   * <p>
26   * ServiceBuilder generated this class. Modifications in this class will be
27   * overwritten the next time is generated.
28   * </p>
29   *
30   * <p>
31   * This class is used by
32   * {@link com.liferay.portal.service.http.CompanyServiceSoap}.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       com.liferay.portal.service.http.CompanyServiceSoap
37   * @generated
38   */
39  public class CompanySoap implements Serializable {
40      public static CompanySoap toSoapModel(Company model) {
41          CompanySoap soapModel = new CompanySoap();
42  
43          soapModel.setCompanyId(model.getCompanyId());
44          soapModel.setAccountId(model.getAccountId());
45          soapModel.setWebId(model.getWebId());
46          soapModel.setKey(model.getKey());
47          soapModel.setVirtualHost(model.getVirtualHost());
48          soapModel.setMx(model.getMx());
49          soapModel.setHomeURL(model.getHomeURL());
50          soapModel.setLogoId(model.getLogoId());
51          soapModel.setSystem(model.getSystem());
52          soapModel.setMaxUsers(model.getMaxUsers());
53  
54          return soapModel;
55      }
56  
57      public static CompanySoap[] toSoapModels(Company[] models) {
58          CompanySoap[] soapModels = new CompanySoap[models.length];
59  
60          for (int i = 0; i < models.length; i++) {
61              soapModels[i] = toSoapModel(models[i]);
62          }
63  
64          return soapModels;
65      }
66  
67      public static CompanySoap[][] toSoapModels(Company[][] models) {
68          CompanySoap[][] soapModels = null;
69  
70          if (models.length > 0) {
71              soapModels = new CompanySoap[models.length][models[0].length];
72          }
73          else {
74              soapModels = new CompanySoap[0][0];
75          }
76  
77          for (int i = 0; i < models.length; i++) {
78              soapModels[i] = toSoapModels(models[i]);
79          }
80  
81          return soapModels;
82      }
83  
84      public static CompanySoap[] toSoapModels(List<Company> models) {
85          List<CompanySoap> soapModels = new ArrayList<CompanySoap>(models.size());
86  
87          for (Company model : models) {
88              soapModels.add(toSoapModel(model));
89          }
90  
91          return soapModels.toArray(new CompanySoap[soapModels.size()]);
92      }
93  
94      public CompanySoap() {
95      }
96  
97      public long getPrimaryKey() {
98          return _companyId;
99      }
100 
101     public void setPrimaryKey(long pk) {
102         setCompanyId(pk);
103     }
104 
105     public long getCompanyId() {
106         return _companyId;
107     }
108 
109     public void setCompanyId(long companyId) {
110         _companyId = companyId;
111     }
112 
113     public long getAccountId() {
114         return _accountId;
115     }
116 
117     public void setAccountId(long accountId) {
118         _accountId = accountId;
119     }
120 
121     public String getWebId() {
122         return _webId;
123     }
124 
125     public void setWebId(String webId) {
126         _webId = webId;
127     }
128 
129     public String getKey() {
130         return _key;
131     }
132 
133     public void setKey(String key) {
134         _key = key;
135     }
136 
137     public String getVirtualHost() {
138         return _virtualHost;
139     }
140 
141     public void setVirtualHost(String virtualHost) {
142         _virtualHost = virtualHost;
143     }
144 
145     public String getMx() {
146         return _mx;
147     }
148 
149     public void setMx(String mx) {
150         _mx = mx;
151     }
152 
153     public String getHomeURL() {
154         return _homeURL;
155     }
156 
157     public void setHomeURL(String homeURL) {
158         _homeURL = homeURL;
159     }
160 
161     public long getLogoId() {
162         return _logoId;
163     }
164 
165     public void setLogoId(long logoId) {
166         _logoId = logoId;
167     }
168 
169     public boolean getSystem() {
170         return _system;
171     }
172 
173     public boolean isSystem() {
174         return _system;
175     }
176 
177     public void setSystem(boolean system) {
178         _system = system;
179     }
180 
181     public int getMaxUsers() {
182         return _maxUsers;
183     }
184 
185     public void setMaxUsers(int maxUsers) {
186         _maxUsers = maxUsers;
187     }
188 
189     private long _companyId;
190     private long _accountId;
191     private String _webId;
192     private String _key;
193     private String _virtualHost;
194     private String _mx;
195     private String _homeURL;
196     private long _logoId;
197     private boolean _system;
198     private int _maxUsers;
199 }