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