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