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.kernel.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.setCss(model.getCss());
048                    soapModel.setPageCount(model.getPageCount());
049                    soapModel.setSettings(model.getSettings());
050                    soapModel.setLayoutSetPrototypeUuid(model.getLayoutSetPrototypeUuid());
051                    soapModel.setLayoutSetPrototypeLinkEnabled(model.getLayoutSetPrototypeLinkEnabled());
052    
053                    return soapModel;
054            }
055    
056            public static LayoutSetSoap[] toSoapModels(LayoutSet[] models) {
057                    LayoutSetSoap[] soapModels = new LayoutSetSoap[models.length];
058    
059                    for (int i = 0; i < models.length; i++) {
060                            soapModels[i] = toSoapModel(models[i]);
061                    }
062    
063                    return soapModels;
064            }
065    
066            public static LayoutSetSoap[][] toSoapModels(LayoutSet[][] models) {
067                    LayoutSetSoap[][] soapModels = null;
068    
069                    if (models.length > 0) {
070                            soapModels = new LayoutSetSoap[models.length][models[0].length];
071                    }
072                    else {
073                            soapModels = new LayoutSetSoap[0][0];
074                    }
075    
076                    for (int i = 0; i < models.length; i++) {
077                            soapModels[i] = toSoapModels(models[i]);
078                    }
079    
080                    return soapModels;
081            }
082    
083            public static LayoutSetSoap[] toSoapModels(List<LayoutSet> models) {
084                    List<LayoutSetSoap> soapModels = new ArrayList<LayoutSetSoap>(models.size());
085    
086                    for (LayoutSet model : models) {
087                            soapModels.add(toSoapModel(model));
088                    }
089    
090                    return soapModels.toArray(new LayoutSetSoap[soapModels.size()]);
091            }
092    
093            public LayoutSetSoap() {
094            }
095    
096            public long getPrimaryKey() {
097                    return _layoutSetId;
098            }
099    
100            public void setPrimaryKey(long pk) {
101                    setLayoutSetId(pk);
102            }
103    
104            public long getMvccVersion() {
105                    return _mvccVersion;
106            }
107    
108            public void setMvccVersion(long mvccVersion) {
109                    _mvccVersion = mvccVersion;
110            }
111    
112            public long getLayoutSetId() {
113                    return _layoutSetId;
114            }
115    
116            public void setLayoutSetId(long layoutSetId) {
117                    _layoutSetId = layoutSetId;
118            }
119    
120            public long getGroupId() {
121                    return _groupId;
122            }
123    
124            public void setGroupId(long groupId) {
125                    _groupId = groupId;
126            }
127    
128            public long getCompanyId() {
129                    return _companyId;
130            }
131    
132            public void setCompanyId(long companyId) {
133                    _companyId = companyId;
134            }
135    
136            public Date getCreateDate() {
137                    return _createDate;
138            }
139    
140            public void setCreateDate(Date createDate) {
141                    _createDate = createDate;
142            }
143    
144            public Date getModifiedDate() {
145                    return _modifiedDate;
146            }
147    
148            public void setModifiedDate(Date modifiedDate) {
149                    _modifiedDate = modifiedDate;
150            }
151    
152            public boolean getPrivateLayout() {
153                    return _privateLayout;
154            }
155    
156            public boolean isPrivateLayout() {
157                    return _privateLayout;
158            }
159    
160            public void setPrivateLayout(boolean privateLayout) {
161                    _privateLayout = privateLayout;
162            }
163    
164            public long getLogoId() {
165                    return _logoId;
166            }
167    
168            public void setLogoId(long logoId) {
169                    _logoId = logoId;
170            }
171    
172            public String getThemeId() {
173                    return _themeId;
174            }
175    
176            public void setThemeId(String themeId) {
177                    _themeId = themeId;
178            }
179    
180            public String getColorSchemeId() {
181                    return _colorSchemeId;
182            }
183    
184            public void setColorSchemeId(String colorSchemeId) {
185                    _colorSchemeId = colorSchemeId;
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 _mvccVersion;
234            private long _layoutSetId;
235            private long _groupId;
236            private long _companyId;
237            private Date _createDate;
238            private Date _modifiedDate;
239            private boolean _privateLayout;
240            private long _logoId;
241            private String _themeId;
242            private String _colorSchemeId;
243            private String _css;
244            private int _pageCount;
245            private String _settings;
246            private String _layoutSetPrototypeUuid;
247            private boolean _layoutSetPrototypeLinkEnabled;
248    }