001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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     * This class is used by SOAP remote services, specifically {@link com.liferay.portal.service.http.CompanyServiceSoap}.
024     *
025     * @author    Brian Wing Shun Chan
026     * @see       com.liferay.portal.service.http.CompanyServiceSoap
027     * @generated
028     */
029    public class CompanySoap implements Serializable {
030            public static CompanySoap toSoapModel(Company model) {
031                    CompanySoap soapModel = new CompanySoap();
032    
033                    soapModel.setCompanyId(model.getCompanyId());
034                    soapModel.setAccountId(model.getAccountId());
035                    soapModel.setWebId(model.getWebId());
036                    soapModel.setKey(model.getKey());
037                    soapModel.setMx(model.getMx());
038                    soapModel.setHomeURL(model.getHomeURL());
039                    soapModel.setLogoId(model.getLogoId());
040                    soapModel.setSystem(model.getSystem());
041                    soapModel.setMaxUsers(model.getMaxUsers());
042    
043                    return soapModel;
044            }
045    
046            public static CompanySoap[] toSoapModels(Company[] models) {
047                    CompanySoap[] soapModels = new CompanySoap[models.length];
048    
049                    for (int i = 0; i < models.length; i++) {
050                            soapModels[i] = toSoapModel(models[i]);
051                    }
052    
053                    return soapModels;
054            }
055    
056            public static CompanySoap[][] toSoapModels(Company[][] models) {
057                    CompanySoap[][] soapModels = null;
058    
059                    if (models.length > 0) {
060                            soapModels = new CompanySoap[models.length][models[0].length];
061                    }
062                    else {
063                            soapModels = new CompanySoap[0][0];
064                    }
065    
066                    for (int i = 0; i < models.length; i++) {
067                            soapModels[i] = toSoapModels(models[i]);
068                    }
069    
070                    return soapModels;
071            }
072    
073            public static CompanySoap[] toSoapModels(List<Company> models) {
074                    List<CompanySoap> soapModels = new ArrayList<CompanySoap>(models.size());
075    
076                    for (Company model : models) {
077                            soapModels.add(toSoapModel(model));
078                    }
079    
080                    return soapModels.toArray(new CompanySoap[soapModels.size()]);
081            }
082    
083            public CompanySoap() {
084            }
085    
086            public long getPrimaryKey() {
087                    return _companyId;
088            }
089    
090            public void setPrimaryKey(long pk) {
091                    setCompanyId(pk);
092            }
093    
094            public long getCompanyId() {
095                    return _companyId;
096            }
097    
098            public void setCompanyId(long companyId) {
099                    _companyId = companyId;
100            }
101    
102            public long getAccountId() {
103                    return _accountId;
104            }
105    
106            public void setAccountId(long accountId) {
107                    _accountId = accountId;
108            }
109    
110            public String getWebId() {
111                    return _webId;
112            }
113    
114            public void setWebId(String webId) {
115                    _webId = webId;
116            }
117    
118            public String getKey() {
119                    return _key;
120            }
121    
122            public void setKey(String key) {
123                    _key = key;
124            }
125    
126            public String getMx() {
127                    return _mx;
128            }
129    
130            public void setMx(String mx) {
131                    _mx = mx;
132            }
133    
134            public String getHomeURL() {
135                    return _homeURL;
136            }
137    
138            public void setHomeURL(String homeURL) {
139                    _homeURL = homeURL;
140            }
141    
142            public long getLogoId() {
143                    return _logoId;
144            }
145    
146            public void setLogoId(long logoId) {
147                    _logoId = logoId;
148            }
149    
150            public boolean getSystem() {
151                    return _system;
152            }
153    
154            public boolean isSystem() {
155                    return _system;
156            }
157    
158            public void setSystem(boolean system) {
159                    _system = system;
160            }
161    
162            public int getMaxUsers() {
163                    return _maxUsers;
164            }
165    
166            public void setMaxUsers(int maxUsers) {
167                    _maxUsers = maxUsers;
168            }
169    
170            private long _companyId;
171            private long _accountId;
172            private String _webId;
173            private String _key;
174            private String _mx;
175            private String _homeURL;
176            private long _logoId;
177            private boolean _system;
178            private int _maxUsers;
179    }