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.LayoutSetServiceSoap}.
025     *
026     * @author Brian Wing Shun Chan
027     * @see com.liferay.portal.service.http.LayoutSetServiceSoap
028     * @generated
029     */
030    public class LayoutSetSoap implements Serializable {
031            public static LayoutSetSoap toSoapModel(LayoutSet model) {
032                    LayoutSetSoap soapModel = new LayoutSetSoap();
033    
034                    soapModel.setLayoutSetId(model.getLayoutSetId());
035                    soapModel.setGroupId(model.getGroupId());
036                    soapModel.setCompanyId(model.getCompanyId());
037                    soapModel.setCreateDate(model.getCreateDate());
038                    soapModel.setModifiedDate(model.getModifiedDate());
039                    soapModel.setPrivateLayout(model.getPrivateLayout());
040                    soapModel.setLogo(model.getLogo());
041                    soapModel.setLogoId(model.getLogoId());
042                    soapModel.setThemeId(model.getThemeId());
043                    soapModel.setColorSchemeId(model.getColorSchemeId());
044                    soapModel.setWapThemeId(model.getWapThemeId());
045                    soapModel.setWapColorSchemeId(model.getWapColorSchemeId());
046                    soapModel.setCss(model.getCss());
047                    soapModel.setPageCount(model.getPageCount());
048                    soapModel.setSettings(model.getSettings());
049                    soapModel.setLayoutSetPrototypeUuid(model.getLayoutSetPrototypeUuid());
050                    soapModel.setLayoutSetPrototypeLinkEnabled(model.getLayoutSetPrototypeLinkEnabled());
051    
052                    return soapModel;
053            }
054    
055            public static LayoutSetSoap[] toSoapModels(LayoutSet[] models) {
056                    LayoutSetSoap[] soapModels = new LayoutSetSoap[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 LayoutSetSoap[][] toSoapModels(LayoutSet[][] models) {
066                    LayoutSetSoap[][] soapModels = null;
067    
068                    if (models.length > 0) {
069                            soapModels = new LayoutSetSoap[models.length][models[0].length];
070                    }
071                    else {
072                            soapModels = new LayoutSetSoap[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 LayoutSetSoap[] toSoapModels(List<LayoutSet> models) {
083                    List<LayoutSetSoap> soapModels = new ArrayList<LayoutSetSoap>(models.size());
084    
085                    for (LayoutSet model : models) {
086                            soapModels.add(toSoapModel(model));
087                    }
088    
089                    return soapModels.toArray(new LayoutSetSoap[soapModels.size()]);
090            }
091    
092            public LayoutSetSoap() {
093            }
094    
095            public long getPrimaryKey() {
096                    return _layoutSetId;
097            }
098    
099            public void setPrimaryKey(long pk) {
100                    setLayoutSetId(pk);
101            }
102    
103            public long getLayoutSetId() {
104                    return _layoutSetId;
105            }
106    
107            public void setLayoutSetId(long layoutSetId) {
108                    _layoutSetId = layoutSetId;
109            }
110    
111            public long getGroupId() {
112                    return _groupId;
113            }
114    
115            public void setGroupId(long groupId) {
116                    _groupId = groupId;
117            }
118    
119            public long getCompanyId() {
120                    return _companyId;
121            }
122    
123            public void setCompanyId(long companyId) {
124                    _companyId = companyId;
125            }
126    
127            public Date getCreateDate() {
128                    return _createDate;
129            }
130    
131            public void setCreateDate(Date createDate) {
132                    _createDate = createDate;
133            }
134    
135            public Date getModifiedDate() {
136                    return _modifiedDate;
137            }
138    
139            public void setModifiedDate(Date modifiedDate) {
140                    _modifiedDate = modifiedDate;
141            }
142    
143            public boolean getPrivateLayout() {
144                    return _privateLayout;
145            }
146    
147            public boolean isPrivateLayout() {
148                    return _privateLayout;
149            }
150    
151            public void setPrivateLayout(boolean privateLayout) {
152                    _privateLayout = privateLayout;
153            }
154    
155            public boolean getLogo() {
156                    return _logo;
157            }
158    
159            public boolean isLogo() {
160                    return _logo;
161            }
162    
163            public void setLogo(boolean logo) {
164                    _logo = logo;
165            }
166    
167            public long getLogoId() {
168                    return _logoId;
169            }
170    
171            public void setLogoId(long logoId) {
172                    _logoId = logoId;
173            }
174    
175            public String getThemeId() {
176                    return _themeId;
177            }
178    
179            public void setThemeId(String themeId) {
180                    _themeId = themeId;
181            }
182    
183            public String getColorSchemeId() {
184                    return _colorSchemeId;
185            }
186    
187            public void setColorSchemeId(String colorSchemeId) {
188                    _colorSchemeId = colorSchemeId;
189            }
190    
191            public String getWapThemeId() {
192                    return _wapThemeId;
193            }
194    
195            public void setWapThemeId(String wapThemeId) {
196                    _wapThemeId = wapThemeId;
197            }
198    
199            public String getWapColorSchemeId() {
200                    return _wapColorSchemeId;
201            }
202    
203            public void setWapColorSchemeId(String wapColorSchemeId) {
204                    _wapColorSchemeId = wapColorSchemeId;
205            }
206    
207            public String getCss() {
208                    return _css;
209            }
210    
211            public void setCss(String css) {
212                    _css = css;
213            }
214    
215            public int getPageCount() {
216                    return _pageCount;
217            }
218    
219            public void setPageCount(int pageCount) {
220                    _pageCount = pageCount;
221            }
222    
223            public String getSettings() {
224                    return _settings;
225            }
226    
227            public void setSettings(String settings) {
228                    _settings = settings;
229            }
230    
231            public String getLayoutSetPrototypeUuid() {
232                    return _layoutSetPrototypeUuid;
233            }
234    
235            public void setLayoutSetPrototypeUuid(String layoutSetPrototypeUuid) {
236                    _layoutSetPrototypeUuid = layoutSetPrototypeUuid;
237            }
238    
239            public boolean getLayoutSetPrototypeLinkEnabled() {
240                    return _layoutSetPrototypeLinkEnabled;
241            }
242    
243            public boolean isLayoutSetPrototypeLinkEnabled() {
244                    return _layoutSetPrototypeLinkEnabled;
245            }
246    
247            public void setLayoutSetPrototypeLinkEnabled(
248                    boolean layoutSetPrototypeLinkEnabled) {
249                    _layoutSetPrototypeLinkEnabled = layoutSetPrototypeLinkEnabled;
250            }
251    
252            private long _layoutSetId;
253            private long _groupId;
254            private long _companyId;
255            private Date _createDate;
256            private Date _modifiedDate;
257            private boolean _privateLayout;
258            private boolean _logo;
259            private long _logoId;
260            private String _themeId;
261            private String _colorSchemeId;
262            private String _wapThemeId;
263            private String _wapColorSchemeId;
264            private String _css;
265            private int _pageCount;
266            private String _settings;
267            private String _layoutSetPrototypeUuid;
268            private boolean _layoutSetPrototypeLinkEnabled;
269    }