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