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.List;
023    
024    /**
025     * This class is used by SOAP remote services, specifically {@link com.liferay.portal.service.http.LayoutBranchServiceSoap}.
026     *
027     * @author Brian Wing Shun Chan
028     * @see com.liferay.portal.service.http.LayoutBranchServiceSoap
029     * @generated
030     */
031    @ProviderType
032    public class LayoutBranchSoap implements Serializable {
033            public static LayoutBranchSoap toSoapModel(LayoutBranch model) {
034                    LayoutBranchSoap soapModel = new LayoutBranchSoap();
035    
036                    soapModel.setMvccVersion(model.getMvccVersion());
037                    soapModel.setLayoutBranchId(model.getLayoutBranchId());
038                    soapModel.setGroupId(model.getGroupId());
039                    soapModel.setCompanyId(model.getCompanyId());
040                    soapModel.setUserId(model.getUserId());
041                    soapModel.setUserName(model.getUserName());
042                    soapModel.setLayoutSetBranchId(model.getLayoutSetBranchId());
043                    soapModel.setPlid(model.getPlid());
044                    soapModel.setName(model.getName());
045                    soapModel.setDescription(model.getDescription());
046                    soapModel.setMaster(model.getMaster());
047    
048                    return soapModel;
049            }
050    
051            public static LayoutBranchSoap[] toSoapModels(LayoutBranch[] models) {
052                    LayoutBranchSoap[] soapModels = new LayoutBranchSoap[models.length];
053    
054                    for (int i = 0; i < models.length; i++) {
055                            soapModels[i] = toSoapModel(models[i]);
056                    }
057    
058                    return soapModels;
059            }
060    
061            public static LayoutBranchSoap[][] toSoapModels(LayoutBranch[][] models) {
062                    LayoutBranchSoap[][] soapModels = null;
063    
064                    if (models.length > 0) {
065                            soapModels = new LayoutBranchSoap[models.length][models[0].length];
066                    }
067                    else {
068                            soapModels = new LayoutBranchSoap[0][0];
069                    }
070    
071                    for (int i = 0; i < models.length; i++) {
072                            soapModels[i] = toSoapModels(models[i]);
073                    }
074    
075                    return soapModels;
076            }
077    
078            public static LayoutBranchSoap[] toSoapModels(List<LayoutBranch> models) {
079                    List<LayoutBranchSoap> soapModels = new ArrayList<LayoutBranchSoap>(models.size());
080    
081                    for (LayoutBranch model : models) {
082                            soapModels.add(toSoapModel(model));
083                    }
084    
085                    return soapModels.toArray(new LayoutBranchSoap[soapModels.size()]);
086            }
087    
088            public LayoutBranchSoap() {
089            }
090    
091            public long getPrimaryKey() {
092                    return _layoutBranchId;
093            }
094    
095            public void setPrimaryKey(long pk) {
096                    setLayoutBranchId(pk);
097            }
098    
099            public long getMvccVersion() {
100                    return _mvccVersion;
101            }
102    
103            public void setMvccVersion(long mvccVersion) {
104                    _mvccVersion = mvccVersion;
105            }
106    
107            public long getLayoutBranchId() {
108                    return _layoutBranchId;
109            }
110    
111            public void setLayoutBranchId(long layoutBranchId) {
112                    _layoutBranchId = layoutBranchId;
113            }
114    
115            public long getGroupId() {
116                    return _groupId;
117            }
118    
119            public void setGroupId(long groupId) {
120                    _groupId = groupId;
121            }
122    
123            public long getCompanyId() {
124                    return _companyId;
125            }
126    
127            public void setCompanyId(long companyId) {
128                    _companyId = companyId;
129            }
130    
131            public long getUserId() {
132                    return _userId;
133            }
134    
135            public void setUserId(long userId) {
136                    _userId = userId;
137            }
138    
139            public String getUserName() {
140                    return _userName;
141            }
142    
143            public void setUserName(String userName) {
144                    _userName = userName;
145            }
146    
147            public long getLayoutSetBranchId() {
148                    return _layoutSetBranchId;
149            }
150    
151            public void setLayoutSetBranchId(long layoutSetBranchId) {
152                    _layoutSetBranchId = layoutSetBranchId;
153            }
154    
155            public long getPlid() {
156                    return _plid;
157            }
158    
159            public void setPlid(long plid) {
160                    _plid = plid;
161            }
162    
163            public String getName() {
164                    return _name;
165            }
166    
167            public void setName(String name) {
168                    _name = name;
169            }
170    
171            public String getDescription() {
172                    return _description;
173            }
174    
175            public void setDescription(String description) {
176                    _description = description;
177            }
178    
179            public boolean getMaster() {
180                    return _master;
181            }
182    
183            public boolean isMaster() {
184                    return _master;
185            }
186    
187            public void setMaster(boolean master) {
188                    _master = master;
189            }
190    
191            private long _mvccVersion;
192            private long _layoutBranchId;
193            private long _groupId;
194            private long _companyId;
195            private long _userId;
196            private String _userName;
197            private long _layoutSetBranchId;
198            private long _plid;
199            private String _name;
200            private String _description;
201            private boolean _master;
202    }