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.LayoutPrototypeServiceSoap}.
027     *
028     * @author Brian Wing Shun Chan
029     * @see com.liferay.portal.service.http.LayoutPrototypeServiceSoap
030     * @generated
031     */
032    @ProviderType
033    public class LayoutPrototypeSoap implements Serializable {
034            public static LayoutPrototypeSoap toSoapModel(LayoutPrototype model) {
035                    LayoutPrototypeSoap soapModel = new LayoutPrototypeSoap();
036    
037                    soapModel.setMvccVersion(model.getMvccVersion());
038                    soapModel.setUuid(model.getUuid());
039                    soapModel.setLayoutPrototypeId(model.getLayoutPrototypeId());
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.setName(model.getName());
046                    soapModel.setDescription(model.getDescription());
047                    soapModel.setSettings(model.getSettings());
048                    soapModel.setActive(model.getActive());
049    
050                    return soapModel;
051            }
052    
053            public static LayoutPrototypeSoap[] toSoapModels(LayoutPrototype[] models) {
054                    LayoutPrototypeSoap[] soapModels = new LayoutPrototypeSoap[models.length];
055    
056                    for (int i = 0; i < models.length; i++) {
057                            soapModels[i] = toSoapModel(models[i]);
058                    }
059    
060                    return soapModels;
061            }
062    
063            public static LayoutPrototypeSoap[][] toSoapModels(
064                    LayoutPrototype[][] models) {
065                    LayoutPrototypeSoap[][] soapModels = null;
066    
067                    if (models.length > 0) {
068                            soapModels = new LayoutPrototypeSoap[models.length][models[0].length];
069                    }
070                    else {
071                            soapModels = new LayoutPrototypeSoap[0][0];
072                    }
073    
074                    for (int i = 0; i < models.length; i++) {
075                            soapModels[i] = toSoapModels(models[i]);
076                    }
077    
078                    return soapModels;
079            }
080    
081            public static LayoutPrototypeSoap[] toSoapModels(
082                    List<LayoutPrototype> models) {
083                    List<LayoutPrototypeSoap> soapModels = new ArrayList<LayoutPrototypeSoap>(models.size());
084    
085                    for (LayoutPrototype model : models) {
086                            soapModels.add(toSoapModel(model));
087                    }
088    
089                    return soapModels.toArray(new LayoutPrototypeSoap[soapModels.size()]);
090            }
091    
092            public LayoutPrototypeSoap() {
093            }
094    
095            public long getPrimaryKey() {
096                    return _layoutPrototypeId;
097            }
098    
099            public void setPrimaryKey(long pk) {
100                    setLayoutPrototypeId(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 getLayoutPrototypeId() {
120                    return _layoutPrototypeId;
121            }
122    
123            public void setLayoutPrototypeId(long layoutPrototypeId) {
124                    _layoutPrototypeId = layoutPrototypeId;
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 String getName() {
168                    return _name;
169            }
170    
171            public void setName(String name) {
172                    _name = name;
173            }
174    
175            public String getDescription() {
176                    return _description;
177            }
178    
179            public void setDescription(String description) {
180                    _description = description;
181            }
182    
183            public String getSettings() {
184                    return _settings;
185            }
186    
187            public void setSettings(String settings) {
188                    _settings = settings;
189            }
190    
191            public boolean getActive() {
192                    return _active;
193            }
194    
195            public boolean isActive() {
196                    return _active;
197            }
198    
199            public void setActive(boolean active) {
200                    _active = active;
201            }
202    
203            private long _mvccVersion;
204            private String _uuid;
205            private long _layoutPrototypeId;
206            private long _companyId;
207            private long _userId;
208            private String _userName;
209            private Date _createDate;
210            private Date _modifiedDate;
211            private String _name;
212            private String _description;
213            private String _settings;
214            private boolean _active;
215    }