1   /**
2    * Copyright (c) 2000-2010 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   *
12   * 
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.setLogoId(model.getLogoId());
50          soapModel.setSystem(model.getSystem());
51  
52          return soapModel;
53      }
54  
55      public static CompanySoap[] toSoapModels(Company[] models) {
56          CompanySoap[] soapModels = new CompanySoap[models.length];
57  
58          for (int i = 0; i < models.length; i++) {
59              soapModels[i] = toSoapModel(models[i]);
60          }
61  
62          return soapModels;
63      }
64  
65      public static CompanySoap[][] toSoapModels(Company[][] models) {
66          CompanySoap[][] soapModels = null;
67  
68          if (models.length > 0) {
69              soapModels = new CompanySoap[models.length][models[0].length];
70          }
71          else {
72              soapModels = new CompanySoap[0][0];
73          }
74  
75          for (int i = 0; i < models.length; i++) {
76              soapModels[i] = toSoapModels(models[i]);
77          }
78  
79          return soapModels;
80      }
81  
82      public static CompanySoap[] toSoapModels(List<Company> models) {
83          List<CompanySoap> soapModels = new ArrayList<CompanySoap>(models.size());
84  
85          for (Company model : models) {
86              soapModels.add(toSoapModel(model));
87          }
88  
89          return soapModels.toArray(new CompanySoap[soapModels.size()]);
90      }
91  
92      public CompanySoap() {
93      }
94  
95      public long getPrimaryKey() {
96          return _companyId;
97      }
98  
99      public void setPrimaryKey(long pk) {
100         setCompanyId(pk);
101     }
102 
103     public long getCompanyId() {
104         return _companyId;
105     }
106 
107     public void setCompanyId(long companyId) {
108         _companyId = companyId;
109     }
110 
111     public long getAccountId() {
112         return _accountId;
113     }
114 
115     public void setAccountId(long accountId) {
116         _accountId = accountId;
117     }
118 
119     public String getWebId() {
120         return _webId;
121     }
122 
123     public void setWebId(String webId) {
124         _webId = webId;
125     }
126 
127     public String getKey() {
128         return _key;
129     }
130 
131     public void setKey(String key) {
132         _key = key;
133     }
134 
135     public String getVirtualHost() {
136         return _virtualHost;
137     }
138 
139     public void setVirtualHost(String virtualHost) {
140         _virtualHost = virtualHost;
141     }
142 
143     public String getMx() {
144         return _mx;
145     }
146 
147     public void setMx(String mx) {
148         _mx = mx;
149     }
150 
151     public long getLogoId() {
152         return _logoId;
153     }
154 
155     public void setLogoId(long logoId) {
156         _logoId = logoId;
157     }
158 
159     public boolean getSystem() {
160         return _system;
161     }
162 
163     public boolean isSystem() {
164         return _system;
165     }
166 
167     public void setSystem(boolean system) {
168         _system = system;
169     }
170 
171     private long _companyId;
172     private long _accountId;
173     private String _webId;
174     private String _key;
175     private String _virtualHost;
176     private String _mx;
177     private long _logoId;
178     private boolean _system;
179 }