001    /**
002     * Copyright (c) 2000-2013 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     * 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                    soapModel.setActive(model.getActive());
043    
044                    return soapModel;
045            }
046    
047            public static CompanySoap[] toSoapModels(Company[] models) {
048                    CompanySoap[] soapModels = new CompanySoap[models.length];
049    
050                    for (int i = 0; i < models.length; i++) {
051                            soapModels[i] = toSoapModel(models[i]);
052                    }
053    
054                    return soapModels;
055            }
056    
057            public static CompanySoap[][] toSoapModels(Company[][] models) {
058                    CompanySoap[][] soapModels = null;
059    
060                    if (models.length > 0) {
061                            soapModels = new CompanySoap[models.length][models[0].length];
062                    }
063                    else {
064                            soapModels = new CompanySoap[0][0];
065                    }
066    
067                    for (int i = 0; i < models.length; i++) {
068                            soapModels[i] = toSoapModels(models[i]);
069                    }
070    
071                    return soapModels;
072            }
073    
074            public static CompanySoap[] toSoapModels(List<Company> models) {
075                    List<CompanySoap> soapModels = new ArrayList<CompanySoap>(models.size());
076    
077                    for (Company model : models) {
078                            soapModels.add(toSoapModel(model));
079                    }
080    
081                    return soapModels.toArray(new CompanySoap[soapModels.size()]);
082            }
083    
084            public CompanySoap() {
085            }
086    
087            public long getPrimaryKey() {
088                    return _companyId;
089            }
090    
091            public void setPrimaryKey(long pk) {
092                    setCompanyId(pk);
093            }
094    
095            public long getCompanyId() {
096                    return _companyId;
097            }
098    
099            public void setCompanyId(long companyId) {
100                    _companyId = companyId;
101            }
102    
103            public long getAccountId() {
104                    return _accountId;
105            }
106    
107            public void setAccountId(long accountId) {
108                    _accountId = accountId;
109            }
110    
111            public String getWebId() {
112                    return _webId;
113            }
114    
115            public void setWebId(String webId) {
116                    _webId = webId;
117            }
118    
119            public String getKey() {
120                    return _key;
121            }
122    
123            public void setKey(String key) {
124                    _key = key;
125            }
126    
127            public String getMx() {
128                    return _mx;
129            }
130    
131            public void setMx(String mx) {
132                    _mx = mx;
133            }
134    
135            public String getHomeURL() {
136                    return _homeURL;
137            }
138    
139            public void setHomeURL(String homeURL) {
140                    _homeURL = homeURL;
141            }
142    
143            public long getLogoId() {
144                    return _logoId;
145            }
146    
147            public void setLogoId(long logoId) {
148                    _logoId = logoId;
149            }
150    
151            public boolean getSystem() {
152                    return _system;
153            }
154    
155            public boolean isSystem() {
156                    return _system;
157            }
158    
159            public void setSystem(boolean system) {
160                    _system = system;
161            }
162    
163            public int getMaxUsers() {
164                    return _maxUsers;
165            }
166    
167            public void setMaxUsers(int maxUsers) {
168                    _maxUsers = maxUsers;
169            }
170    
171            public boolean getActive() {
172                    return _active;
173            }
174    
175            public boolean isActive() {
176                    return _active;
177            }
178    
179            public void setActive(boolean active) {
180                    _active = active;
181            }
182    
183            private long _companyId;
184            private long _accountId;
185            private String _webId;
186            private String _key;
187            private String _mx;
188            private String _homeURL;
189            private long _logoId;
190            private boolean _system;
191            private int _maxUsers;
192            private boolean _active;
193    }