001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
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.CompanyServiceSoap}.
026     * </p>
027     *
028     * @author    Brian Wing Shun Chan
029     * @see       com.liferay.portal.service.http.CompanyServiceSoap
030     * @generated
031     */
032    public class CompanySoap implements Serializable {
033            public static CompanySoap toSoapModel(Company model) {
034                    CompanySoap soapModel = new CompanySoap();
035    
036                    soapModel.setCompanyId(model.getCompanyId());
037                    soapModel.setAccountId(model.getAccountId());
038                    soapModel.setWebId(model.getWebId());
039                    soapModel.setKey(model.getKey());
040                    soapModel.setVirtualHost(model.getVirtualHost());
041                    soapModel.setMx(model.getMx());
042                    soapModel.setHomeURL(model.getHomeURL());
043                    soapModel.setLogoId(model.getLogoId());
044                    soapModel.setSystem(model.getSystem());
045                    soapModel.setMaxUsers(model.getMaxUsers());
046    
047                    return soapModel;
048            }
049    
050            public static CompanySoap[] toSoapModels(Company[] models) {
051                    CompanySoap[] soapModels = new CompanySoap[models.length];
052    
053                    for (int i = 0; i < models.length; i++) {
054                            soapModels[i] = toSoapModel(models[i]);
055                    }
056    
057                    return soapModels;
058            }
059    
060            public static CompanySoap[][] toSoapModels(Company[][] models) {
061                    CompanySoap[][] soapModels = null;
062    
063                    if (models.length > 0) {
064                            soapModels = new CompanySoap[models.length][models[0].length];
065                    }
066                    else {
067                            soapModels = new CompanySoap[0][0];
068                    }
069    
070                    for (int i = 0; i < models.length; i++) {
071                            soapModels[i] = toSoapModels(models[i]);
072                    }
073    
074                    return soapModels;
075            }
076    
077            public static CompanySoap[] toSoapModels(List<Company> models) {
078                    List<CompanySoap> soapModels = new ArrayList<CompanySoap>(models.size());
079    
080                    for (Company model : models) {
081                            soapModels.add(toSoapModel(model));
082                    }
083    
084                    return soapModels.toArray(new CompanySoap[soapModels.size()]);
085            }
086    
087            public CompanySoap() {
088            }
089    
090            public long getPrimaryKey() {
091                    return _companyId;
092            }
093    
094            public void setPrimaryKey(long pk) {
095                    setCompanyId(pk);
096            }
097    
098            public long getCompanyId() {
099                    return _companyId;
100            }
101    
102            public void setCompanyId(long companyId) {
103                    _companyId = companyId;
104            }
105    
106            public long getAccountId() {
107                    return _accountId;
108            }
109    
110            public void setAccountId(long accountId) {
111                    _accountId = accountId;
112            }
113    
114            public String getWebId() {
115                    return _webId;
116            }
117    
118            public void setWebId(String webId) {
119                    _webId = webId;
120            }
121    
122            public String getKey() {
123                    return _key;
124            }
125    
126            public void setKey(String key) {
127                    _key = key;
128            }
129    
130            public String getVirtualHost() {
131                    return _virtualHost;
132            }
133    
134            public void setVirtualHost(String virtualHost) {
135                    _virtualHost = virtualHost;
136            }
137    
138            public String getMx() {
139                    return _mx;
140            }
141    
142            public void setMx(String mx) {
143                    _mx = mx;
144            }
145    
146            public String getHomeURL() {
147                    return _homeURL;
148            }
149    
150            public void setHomeURL(String homeURL) {
151                    _homeURL = homeURL;
152            }
153    
154            public long getLogoId() {
155                    return _logoId;
156            }
157    
158            public void setLogoId(long logoId) {
159                    _logoId = logoId;
160            }
161    
162            public boolean getSystem() {
163                    return _system;
164            }
165    
166            public boolean isSystem() {
167                    return _system;
168            }
169    
170            public void setSystem(boolean system) {
171                    _system = system;
172            }
173    
174            public int getMaxUsers() {
175                    return _maxUsers;
176            }
177    
178            public void setMaxUsers(int maxUsers) {
179                    _maxUsers = maxUsers;
180            }
181    
182            private long _companyId;
183            private long _accountId;
184            private String _webId;
185            private String _key;
186            private String _virtualHost;
187            private String _mx;
188            private String _homeURL;
189            private long _logoId;
190            private boolean _system;
191            private int _maxUsers;
192    }