001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portal.model;
016    
017    import java.io.Serializable;
018    
019    import java.util.ArrayList;
020    import java.util.Date;
021    import java.util.List;
022    
023    /**
024     * This class is used by SOAP remote services, specifically {@link com.liferay.portal.service.http.LayoutSetBranchServiceSoap}.
025     *
026     * @author    Brian Wing Shun Chan
027     * @see       com.liferay.portal.service.http.LayoutSetBranchServiceSoap
028     * @generated
029     */
030    public class LayoutSetBranchSoap implements Serializable {
031            public static LayoutSetBranchSoap toSoapModel(LayoutSetBranch model) {
032                    LayoutSetBranchSoap soapModel = new LayoutSetBranchSoap();
033    
034                    soapModel.setLayoutSetBranchId(model.getLayoutSetBranchId());
035                    soapModel.setGroupId(model.getGroupId());
036                    soapModel.setCompanyId(model.getCompanyId());
037                    soapModel.setUserId(model.getUserId());
038                    soapModel.setUserName(model.getUserName());
039                    soapModel.setCreateDate(model.getCreateDate());
040                    soapModel.setModifiedDate(model.getModifiedDate());
041                    soapModel.setPrivateLayout(model.getPrivateLayout());
042                    soapModel.setName(model.getName());
043                    soapModel.setDescription(model.getDescription());
044                    soapModel.setMaster(model.getMaster());
045    
046                    return soapModel;
047            }
048    
049            public static LayoutSetBranchSoap[] toSoapModels(LayoutSetBranch[] models) {
050                    LayoutSetBranchSoap[] soapModels = new LayoutSetBranchSoap[models.length];
051    
052                    for (int i = 0; i < models.length; i++) {
053                            soapModels[i] = toSoapModel(models[i]);
054                    }
055    
056                    return soapModels;
057            }
058    
059            public static LayoutSetBranchSoap[][] toSoapModels(
060                    LayoutSetBranch[][] models) {
061                    LayoutSetBranchSoap[][] soapModels = null;
062    
063                    if (models.length > 0) {
064                            soapModels = new LayoutSetBranchSoap[models.length][models[0].length];
065                    }
066                    else {
067                            soapModels = new LayoutSetBranchSoap[0][0];
068                    }
069    
070                    for (int i = 0; i < models.length; i++) {
071                            soapModels[i] = toSoapModels(models[i]);
072                    }
073    
074                    return soapModels;
075            }
076    
077            public static LayoutSetBranchSoap[] toSoapModels(
078                    List<LayoutSetBranch> models) {
079                    List<LayoutSetBranchSoap> soapModels = new ArrayList<LayoutSetBranchSoap>(models.size());
080    
081                    for (LayoutSetBranch model : models) {
082                            soapModels.add(toSoapModel(model));
083                    }
084    
085                    return soapModels.toArray(new LayoutSetBranchSoap[soapModels.size()]);
086            }
087    
088            public LayoutSetBranchSoap() {
089            }
090    
091            public long getPrimaryKey() {
092                    return _layoutSetBranchId;
093            }
094    
095            public void setPrimaryKey(long pk) {
096                    setLayoutSetBranchId(pk);
097            }
098    
099            public long getLayoutSetBranchId() {
100                    return _layoutSetBranchId;
101            }
102    
103            public void setLayoutSetBranchId(long layoutSetBranchId) {
104                    _layoutSetBranchId = layoutSetBranchId;
105            }
106    
107            public long getGroupId() {
108                    return _groupId;
109            }
110    
111            public void setGroupId(long groupId) {
112                    _groupId = groupId;
113            }
114    
115            public long getCompanyId() {
116                    return _companyId;
117            }
118    
119            public void setCompanyId(long companyId) {
120                    _companyId = companyId;
121            }
122    
123            public long getUserId() {
124                    return _userId;
125            }
126    
127            public void setUserId(long userId) {
128                    _userId = userId;
129            }
130    
131            public String getUserName() {
132                    return _userName;
133            }
134    
135            public void setUserName(String userName) {
136                    _userName = userName;
137            }
138    
139            public Date getCreateDate() {
140                    return _createDate;
141            }
142    
143            public void setCreateDate(Date createDate) {
144                    _createDate = createDate;
145            }
146    
147            public Date getModifiedDate() {
148                    return _modifiedDate;
149            }
150    
151            public void setModifiedDate(Date modifiedDate) {
152                    _modifiedDate = modifiedDate;
153            }
154    
155            public boolean getPrivateLayout() {
156                    return _privateLayout;
157            }
158    
159            public boolean isPrivateLayout() {
160                    return _privateLayout;
161            }
162    
163            public void setPrivateLayout(boolean privateLayout) {
164                    _privateLayout = privateLayout;
165            }
166    
167            public String getName() {
168                    return _name;
169            }
170    
171            public void setName(String name) {
172                    _name = name;
173            }
174    
175            public String getDescription() {
176                    return _description;
177            }
178    
179            public void setDescription(String description) {
180                    _description = description;
181            }
182    
183            public boolean getMaster() {
184                    return _master;
185            }
186    
187            public boolean isMaster() {
188                    return _master;
189            }
190    
191            public void setMaster(boolean master) {
192                    _master = master;
193            }
194    
195            private long _layoutSetBranchId;
196            private long _groupId;
197            private long _companyId;
198            private long _userId;
199            private String _userName;
200            private Date _createDate;
201            private Date _modifiedDate;
202            private boolean _privateLayout;
203            private String _name;
204            private String _description;
205            private boolean _master;
206    }