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