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.LayoutSetPrototypeServiceSoap}.
027     *
028     * @author Brian Wing Shun Chan
029     * @see com.liferay.portal.service.http.LayoutSetPrototypeServiceSoap
030     * @generated
031     */
032    @ProviderType
033    public class LayoutSetPrototypeSoap implements Serializable {
034            public static LayoutSetPrototypeSoap toSoapModel(LayoutSetPrototype model) {
035                    LayoutSetPrototypeSoap soapModel = new LayoutSetPrototypeSoap();
036    
037                    soapModel.setMvccVersion(model.getMvccVersion());
038                    soapModel.setUuid(model.getUuid());
039                    soapModel.setLayoutSetPrototypeId(model.getLayoutSetPrototypeId());
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 LayoutSetPrototypeSoap[] toSoapModels(
054                    LayoutSetPrototype[] models) {
055                    LayoutSetPrototypeSoap[] soapModels = new LayoutSetPrototypeSoap[models.length];
056    
057                    for (int i = 0; i < models.length; i++) {
058                            soapModels[i] = toSoapModel(models[i]);
059                    }
060    
061                    return soapModels;
062            }
063    
064            public static LayoutSetPrototypeSoap[][] toSoapModels(
065                    LayoutSetPrototype[][] models) {
066                    LayoutSetPrototypeSoap[][] soapModels = null;
067    
068                    if (models.length > 0) {
069                            soapModels = new LayoutSetPrototypeSoap[models.length][models[0].length];
070                    }
071                    else {
072                            soapModels = new LayoutSetPrototypeSoap[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 LayoutSetPrototypeSoap[] toSoapModels(
083                    List<LayoutSetPrototype> models) {
084                    List<LayoutSetPrototypeSoap> soapModels = new ArrayList<LayoutSetPrototypeSoap>(models.size());
085    
086                    for (LayoutSetPrototype model : models) {
087                            soapModels.add(toSoapModel(model));
088                    }
089    
090                    return soapModels.toArray(new LayoutSetPrototypeSoap[soapModels.size()]);
091            }
092    
093            public LayoutSetPrototypeSoap() {
094            }
095    
096            public long getPrimaryKey() {
097                    return _layoutSetPrototypeId;
098            }
099    
100            public void setPrimaryKey(long pk) {
101                    setLayoutSetPrototypeId(pk);
102            }
103    
104            public long getMvccVersion() {
105                    return _mvccVersion;
106            }
107    
108            public void setMvccVersion(long mvccVersion) {
109                    _mvccVersion = mvccVersion;
110            }
111    
112            public String getUuid() {
113                    return _uuid;
114            }
115    
116            public void setUuid(String uuid) {
117                    _uuid = uuid;
118            }
119    
120            public long getLayoutSetPrototypeId() {
121                    return _layoutSetPrototypeId;
122            }
123    
124            public void setLayoutSetPrototypeId(long layoutSetPrototypeId) {
125                    _layoutSetPrototypeId = layoutSetPrototypeId;
126            }
127    
128            public long getCompanyId() {
129                    return _companyId;
130            }
131    
132            public void setCompanyId(long companyId) {
133                    _companyId = companyId;
134            }
135    
136            public long getUserId() {
137                    return _userId;
138            }
139    
140            public void setUserId(long userId) {
141                    _userId = userId;
142            }
143    
144            public String getUserName() {
145                    return _userName;
146            }
147    
148            public void setUserName(String userName) {
149                    _userName = userName;
150            }
151    
152            public Date getCreateDate() {
153                    return _createDate;
154            }
155    
156            public void setCreateDate(Date createDate) {
157                    _createDate = createDate;
158            }
159    
160            public Date getModifiedDate() {
161                    return _modifiedDate;
162            }
163    
164            public void setModifiedDate(Date modifiedDate) {
165                    _modifiedDate = modifiedDate;
166            }
167    
168            public String getName() {
169                    return _name;
170            }
171    
172            public void setName(String name) {
173                    _name = name;
174            }
175    
176            public String getDescription() {
177                    return _description;
178            }
179    
180            public void setDescription(String description) {
181                    _description = description;
182            }
183    
184            public String getSettings() {
185                    return _settings;
186            }
187    
188            public void setSettings(String settings) {
189                    _settings = settings;
190            }
191    
192            public boolean getActive() {
193                    return _active;
194            }
195    
196            public boolean isActive() {
197                    return _active;
198            }
199    
200            public void setActive(boolean active) {
201                    _active = active;
202            }
203    
204            private long _mvccVersion;
205            private String _uuid;
206            private long _layoutSetPrototypeId;
207            private long _companyId;
208            private long _userId;
209            private String _userName;
210            private Date _createDate;
211            private Date _modifiedDate;
212            private String _name;
213            private String _description;
214            private String _settings;
215            private boolean _active;
216    }