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