001    /**
002     * Copyright (c) 2000-2013 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 java.io.Serializable;
018    
019    import java.util.ArrayList;
020    import java.util.Date;
021    import java.util.List;
022    
023    /**
024     * This class is used by SOAP remote services, specifically {@link com.liferay.portal.service.http.LayoutSetPrototypeServiceSoap}.
025     *
026     * @author Brian Wing Shun Chan
027     * @see com.liferay.portal.service.http.LayoutSetPrototypeServiceSoap
028     * @generated
029     */
030    public class LayoutSetPrototypeSoap implements Serializable {
031            public static LayoutSetPrototypeSoap toSoapModel(LayoutSetPrototype model) {
032                    LayoutSetPrototypeSoap soapModel = new LayoutSetPrototypeSoap();
033    
034                    soapModel.setUuid(model.getUuid());
035                    soapModel.setLayoutSetPrototypeId(model.getLayoutSetPrototypeId());
036                    soapModel.setCompanyId(model.getCompanyId());
037                    soapModel.setUserId(model.getUserId());
038                    soapModel.setUserName(model.getUserName());
039                    soapModel.setCreateDate(model.getCreateDate());
040                    soapModel.setModifiedDate(model.getModifiedDate());
041                    soapModel.setName(model.getName());
042                    soapModel.setDescription(model.getDescription());
043                    soapModel.setSettings(model.getSettings());
044                    soapModel.setActive(model.getActive());
045    
046                    return soapModel;
047            }
048    
049            public static LayoutSetPrototypeSoap[] toSoapModels(
050                    LayoutSetPrototype[] models) {
051                    LayoutSetPrototypeSoap[] soapModels = new LayoutSetPrototypeSoap[models.length];
052    
053                    for (int i = 0; i < models.length; i++) {
054                            soapModels[i] = toSoapModel(models[i]);
055                    }
056    
057                    return soapModels;
058            }
059    
060            public static LayoutSetPrototypeSoap[][] toSoapModels(
061                    LayoutSetPrototype[][] models) {
062                    LayoutSetPrototypeSoap[][] soapModels = null;
063    
064                    if (models.length > 0) {
065                            soapModels = new LayoutSetPrototypeSoap[models.length][models[0].length];
066                    }
067                    else {
068                            soapModels = new LayoutSetPrototypeSoap[0][0];
069                    }
070    
071                    for (int i = 0; i < models.length; i++) {
072                            soapModels[i] = toSoapModels(models[i]);
073                    }
074    
075                    return soapModels;
076            }
077    
078            public static LayoutSetPrototypeSoap[] toSoapModels(
079                    List<LayoutSetPrototype> models) {
080                    List<LayoutSetPrototypeSoap> soapModels = new ArrayList<LayoutSetPrototypeSoap>(models.size());
081    
082                    for (LayoutSetPrototype model : models) {
083                            soapModels.add(toSoapModel(model));
084                    }
085    
086                    return soapModels.toArray(new LayoutSetPrototypeSoap[soapModels.size()]);
087            }
088    
089            public LayoutSetPrototypeSoap() {
090            }
091    
092            public long getPrimaryKey() {
093                    return _layoutSetPrototypeId;
094            }
095    
096            public void setPrimaryKey(long pk) {
097                    setLayoutSetPrototypeId(pk);
098            }
099    
100            public String getUuid() {
101                    return _uuid;
102            }
103    
104            public void setUuid(String uuid) {
105                    _uuid = uuid;
106            }
107    
108            public long getLayoutSetPrototypeId() {
109                    return _layoutSetPrototypeId;
110            }
111    
112            public void setLayoutSetPrototypeId(long layoutSetPrototypeId) {
113                    _layoutSetPrototypeId = layoutSetPrototypeId;
114            }
115    
116            public long getCompanyId() {
117                    return _companyId;
118            }
119    
120            public void setCompanyId(long companyId) {
121                    _companyId = companyId;
122            }
123    
124            public long getUserId() {
125                    return _userId;
126            }
127    
128            public void setUserId(long userId) {
129                    _userId = userId;
130            }
131    
132            public String getUserName() {
133                    return _userName;
134            }
135    
136            public void setUserName(String userName) {
137                    _userName = userName;
138            }
139    
140            public Date getCreateDate() {
141                    return _createDate;
142            }
143    
144            public void setCreateDate(Date createDate) {
145                    _createDate = createDate;
146            }
147    
148            public Date getModifiedDate() {
149                    return _modifiedDate;
150            }
151    
152            public void setModifiedDate(Date modifiedDate) {
153                    _modifiedDate = modifiedDate;
154            }
155    
156            public String getName() {
157                    return _name;
158            }
159    
160            public void setName(String name) {
161                    _name = name;
162            }
163    
164            public String getDescription() {
165                    return _description;
166            }
167    
168            public void setDescription(String description) {
169                    _description = description;
170            }
171    
172            public String getSettings() {
173                    return _settings;
174            }
175    
176            public void setSettings(String settings) {
177                    _settings = settings;
178            }
179    
180            public boolean getActive() {
181                    return _active;
182            }
183    
184            public boolean isActive() {
185                    return _active;
186            }
187    
188            public void setActive(boolean active) {
189                    _active = active;
190            }
191    
192            private String _uuid;
193            private long _layoutSetPrototypeId;
194            private long _companyId;
195            private long _userId;
196            private String _userName;
197            private Date _createDate;
198            private Date _modifiedDate;
199            private String _name;
200            private String _description;
201            private String _settings;
202            private boolean _active;
203    }