001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portal.model;
022:
023: import java.io.Serializable;
024:
025: import java.util.ArrayList;
026: import java.util.List;
027:
028: /**
029: * <a href="CompanySoap.java.html"><b><i>View Source</i></b></a>
030: *
031: * <p>
032: * ServiceBuilder generated this class. Modifications in this class will be
033: * overwritten the next time is generated.
034: * </p>
035: *
036: * <p>
037: * This class is used by
038: * <code>com.liferay.portal.service.http.CompanyServiceSoap</code>.
039: * </p>
040: *
041: * @author Brian Wing Shun Chan
042: *
043: * @see com.liferay.portal.service.http.CompanyServiceSoap
044: *
045: */
046: public class CompanySoap implements Serializable {
047: public static CompanySoap toSoapModel(Company model) {
048: CompanySoap soapModel = new CompanySoap();
049:
050: soapModel.setCompanyId(model.getCompanyId());
051: soapModel.setAccountId(model.getAccountId());
052: soapModel.setWebId(model.getWebId());
053: soapModel.setKey(model.getKey());
054: soapModel.setVirtualHost(model.getVirtualHost());
055: soapModel.setMx(model.getMx());
056: soapModel.setLogoId(model.getLogoId());
057:
058: return soapModel;
059: }
060:
061: public static CompanySoap[] toSoapModels(List models) {
062: List soapModels = new ArrayList(models.size());
063:
064: for (int i = 0; i < models.size(); i++) {
065: Company model = (Company) models.get(i);
066:
067: soapModels.add(toSoapModel(model));
068: }
069:
070: return (CompanySoap[]) soapModels.toArray(new CompanySoap[0]);
071: }
072:
073: public CompanySoap() {
074: }
075:
076: public long getPrimaryKey() {
077: return _companyId;
078: }
079:
080: public void setPrimaryKey(long pk) {
081: setCompanyId(pk);
082: }
083:
084: public long getCompanyId() {
085: return _companyId;
086: }
087:
088: public void setCompanyId(long companyId) {
089: _companyId = companyId;
090: }
091:
092: public long getAccountId() {
093: return _accountId;
094: }
095:
096: public void setAccountId(long accountId) {
097: _accountId = accountId;
098: }
099:
100: public String getWebId() {
101: return _webId;
102: }
103:
104: public void setWebId(String webId) {
105: _webId = webId;
106: }
107:
108: public String getKey() {
109: return _key;
110: }
111:
112: public void setKey(String key) {
113: _key = key;
114: }
115:
116: public String getVirtualHost() {
117: return _virtualHost;
118: }
119:
120: public void setVirtualHost(String virtualHost) {
121: _virtualHost = virtualHost;
122: }
123:
124: public String getMx() {
125: return _mx;
126: }
127:
128: public void setMx(String mx) {
129: _mx = mx;
130: }
131:
132: public long getLogoId() {
133: return _logoId;
134: }
135:
136: public void setLogoId(long logoId) {
137: _logoId = logoId;
138: }
139:
140: private long _companyId;
141: private long _accountId;
142: private String _webId;
143: private String _key;
144: private String _virtualHost;
145: private String _mx;
146: private long _logoId;
147: }
|