001    /**
002     * Copyright (c) 2000-present 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 aQute.bnd.annotation.ProviderType;
018    
019    import java.io.Serializable;
020    
021    import java.util.ArrayList;
022    import java.util.Date;
023    import java.util.List;
024    
025    /**
026     * This class is used by SOAP remote services, specifically {@link com.liferay.portal.service.http.WebsiteServiceSoap}.
027     *
028     * @author Brian Wing Shun Chan
029     * @see com.liferay.portal.service.http.WebsiteServiceSoap
030     * @generated
031     */
032    @ProviderType
033    public class WebsiteSoap implements Serializable {
034            public static WebsiteSoap toSoapModel(Website model) {
035                    WebsiteSoap soapModel = new WebsiteSoap();
036    
037                    soapModel.setMvccVersion(model.getMvccVersion());
038                    soapModel.setUuid(model.getUuid());
039                    soapModel.setWebsiteId(model.getWebsiteId());
040                    soapModel.setCompanyId(model.getCompanyId());
041                    soapModel.setUserId(model.getUserId());
042                    soapModel.setUserName(model.getUserName());
043                    soapModel.setCreateDate(model.getCreateDate());
044                    soapModel.setModifiedDate(model.getModifiedDate());
045                    soapModel.setClassNameId(model.getClassNameId());
046                    soapModel.setClassPK(model.getClassPK());
047                    soapModel.setUrl(model.getUrl());
048                    soapModel.setTypeId(model.getTypeId());
049                    soapModel.setPrimary(model.getPrimary());
050                    soapModel.setLastPublishDate(model.getLastPublishDate());
051    
052                    return soapModel;
053            }
054    
055            public static WebsiteSoap[] toSoapModels(Website[] models) {
056                    WebsiteSoap[] soapModels = new WebsiteSoap[models.length];
057    
058                    for (int i = 0; i < models.length; i++) {
059                            soapModels[i] = toSoapModel(models[i]);
060                    }
061    
062                    return soapModels;
063            }
064    
065            public static WebsiteSoap[][] toSoapModels(Website[][] models) {
066                    WebsiteSoap[][] soapModels = null;
067    
068                    if (models.length > 0) {
069                            soapModels = new WebsiteSoap[models.length][models[0].length];
070                    }
071                    else {
072                            soapModels = new WebsiteSoap[0][0];
073                    }
074    
075                    for (int i = 0; i < models.length; i++) {
076                            soapModels[i] = toSoapModels(models[i]);
077                    }
078    
079                    return soapModels;
080            }
081    
082            public static WebsiteSoap[] toSoapModels(List<Website> models) {
083                    List<WebsiteSoap> soapModels = new ArrayList<WebsiteSoap>(models.size());
084    
085                    for (Website model : models) {
086                            soapModels.add(toSoapModel(model));
087                    }
088    
089                    return soapModels.toArray(new WebsiteSoap[soapModels.size()]);
090            }
091    
092            public WebsiteSoap() {
093            }
094    
095            public long getPrimaryKey() {
096                    return _websiteId;
097            }
098    
099            public void setPrimaryKey(long pk) {
100                    setWebsiteId(pk);
101            }
102    
103            public long getMvccVersion() {
104                    return _mvccVersion;
105            }
106    
107            public void setMvccVersion(long mvccVersion) {
108                    _mvccVersion = mvccVersion;
109            }
110    
111            public String getUuid() {
112                    return _uuid;
113            }
114    
115            public void setUuid(String uuid) {
116                    _uuid = uuid;
117            }
118    
119            public long getWebsiteId() {
120                    return _websiteId;
121            }
122    
123            public void setWebsiteId(long websiteId) {
124                    _websiteId = websiteId;
125            }
126    
127            public long getCompanyId() {
128                    return _companyId;
129            }
130    
131            public void setCompanyId(long companyId) {
132                    _companyId = companyId;
133            }
134    
135            public long getUserId() {
136                    return _userId;
137            }
138    
139            public void setUserId(long userId) {
140                    _userId = userId;
141            }
142    
143            public String getUserName() {
144                    return _userName;
145            }
146    
147            public void setUserName(String userName) {
148                    _userName = userName;
149            }
150    
151            public Date getCreateDate() {
152                    return _createDate;
153            }
154    
155            public void setCreateDate(Date createDate) {
156                    _createDate = createDate;
157            }
158    
159            public Date getModifiedDate() {
160                    return _modifiedDate;
161            }
162    
163            public void setModifiedDate(Date modifiedDate) {
164                    _modifiedDate = modifiedDate;
165            }
166    
167            public long getClassNameId() {
168                    return _classNameId;
169            }
170    
171            public void setClassNameId(long classNameId) {
172                    _classNameId = classNameId;
173            }
174    
175            public long getClassPK() {
176                    return _classPK;
177            }
178    
179            public void setClassPK(long classPK) {
180                    _classPK = classPK;
181            }
182    
183            public String getUrl() {
184                    return _url;
185            }
186    
187            public void setUrl(String url) {
188                    _url = url;
189            }
190    
191            public long getTypeId() {
192                    return _typeId;
193            }
194    
195            public void setTypeId(long typeId) {
196                    _typeId = typeId;
197            }
198    
199            public boolean getPrimary() {
200                    return _primary;
201            }
202    
203            public boolean isPrimary() {
204                    return _primary;
205            }
206    
207            public void setPrimary(boolean primary) {
208                    _primary = primary;
209            }
210    
211            public Date getLastPublishDate() {
212                    return _lastPublishDate;
213            }
214    
215            public void setLastPublishDate(Date lastPublishDate) {
216                    _lastPublishDate = lastPublishDate;
217            }
218    
219            private long _mvccVersion;
220            private String _uuid;
221            private long _websiteId;
222            private long _companyId;
223            private long _userId;
224            private String _userName;
225            private Date _createDate;
226            private Date _modifiedDate;
227            private long _classNameId;
228            private long _classPK;
229            private String _url;
230            private long _typeId;
231            private boolean _primary;
232            private Date _lastPublishDate;
233    }