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.Date;
027: import java.util.List;
028:
029: /**
030: * <a href="WebsiteSoap.java.html"><b><i>View Source</i></b></a>
031: *
032: * <p>
033: * ServiceBuilder generated this class. Modifications in this class will be
034: * overwritten the next time is generated.
035: * </p>
036: *
037: * <p>
038: * This class is used by
039: * <code>com.liferay.portal.service.http.WebsiteServiceSoap</code>.
040: * </p>
041: *
042: * @author Brian Wing Shun Chan
043: *
044: * @see com.liferay.portal.service.http.WebsiteServiceSoap
045: *
046: */
047: public class WebsiteSoap implements Serializable {
048: public static WebsiteSoap toSoapModel(Website model) {
049: WebsiteSoap soapModel = new WebsiteSoap();
050:
051: soapModel.setWebsiteId(model.getWebsiteId());
052: soapModel.setCompanyId(model.getCompanyId());
053: soapModel.setUserId(model.getUserId());
054: soapModel.setUserName(model.getUserName());
055: soapModel.setCreateDate(model.getCreateDate());
056: soapModel.setModifiedDate(model.getModifiedDate());
057: soapModel.setClassNameId(model.getClassNameId());
058: soapModel.setClassPK(model.getClassPK());
059: soapModel.setUrl(model.getUrl());
060: soapModel.setTypeId(model.getTypeId());
061: soapModel.setPrimary(model.getPrimary());
062:
063: return soapModel;
064: }
065:
066: public static WebsiteSoap[] toSoapModels(List models) {
067: List soapModels = new ArrayList(models.size());
068:
069: for (int i = 0; i < models.size(); i++) {
070: Website model = (Website) models.get(i);
071:
072: soapModels.add(toSoapModel(model));
073: }
074:
075: return (WebsiteSoap[]) soapModels.toArray(new WebsiteSoap[0]);
076: }
077:
078: public WebsiteSoap() {
079: }
080:
081: public long getPrimaryKey() {
082: return _websiteId;
083: }
084:
085: public void setPrimaryKey(long pk) {
086: setWebsiteId(pk);
087: }
088:
089: public long getWebsiteId() {
090: return _websiteId;
091: }
092:
093: public void setWebsiteId(long websiteId) {
094: _websiteId = websiteId;
095: }
096:
097: public long getCompanyId() {
098: return _companyId;
099: }
100:
101: public void setCompanyId(long companyId) {
102: _companyId = companyId;
103: }
104:
105: public long getUserId() {
106: return _userId;
107: }
108:
109: public void setUserId(long userId) {
110: _userId = userId;
111: }
112:
113: public String getUserName() {
114: return _userName;
115: }
116:
117: public void setUserName(String userName) {
118: _userName = userName;
119: }
120:
121: public Date getCreateDate() {
122: return _createDate;
123: }
124:
125: public void setCreateDate(Date createDate) {
126: _createDate = createDate;
127: }
128:
129: public Date getModifiedDate() {
130: return _modifiedDate;
131: }
132:
133: public void setModifiedDate(Date modifiedDate) {
134: _modifiedDate = modifiedDate;
135: }
136:
137: public long getClassNameId() {
138: return _classNameId;
139: }
140:
141: public void setClassNameId(long classNameId) {
142: _classNameId = classNameId;
143: }
144:
145: public long getClassPK() {
146: return _classPK;
147: }
148:
149: public void setClassPK(long classPK) {
150: _classPK = classPK;
151: }
152:
153: public String getUrl() {
154: return _url;
155: }
156:
157: public void setUrl(String url) {
158: _url = url;
159: }
160:
161: public int getTypeId() {
162: return _typeId;
163: }
164:
165: public void setTypeId(int typeId) {
166: _typeId = typeId;
167: }
168:
169: public boolean getPrimary() {
170: return _primary;
171: }
172:
173: public boolean isPrimary() {
174: return _primary;
175: }
176:
177: public void setPrimary(boolean primary) {
178: _primary = primary;
179: }
180:
181: private long _websiteId;
182: private long _companyId;
183: private long _userId;
184: private String _userName;
185: private Date _createDate;
186: private Date _modifiedDate;
187: private long _classNameId;
188: private long _classPK;
189: private String _url;
190: private int _typeId;
191: private boolean _primary;
192: }
|