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.
026     *
027     * @author Brian Wing Shun Chan
028     * @generated
029     */
030    @ProviderType
031    public class RecentLayoutBranchSoap implements Serializable {
032            public static RecentLayoutBranchSoap toSoapModel(RecentLayoutBranch model) {
033                    RecentLayoutBranchSoap soapModel = new RecentLayoutBranchSoap();
034    
035                    soapModel.setMvccVersion(model.getMvccVersion());
036                    soapModel.setRecentLayoutBranchId(model.getRecentLayoutBranchId());
037                    soapModel.setGroupId(model.getGroupId());
038                    soapModel.setCompanyId(model.getCompanyId());
039                    soapModel.setUserId(model.getUserId());
040                    soapModel.setLayoutBranchId(model.getLayoutBranchId());
041                    soapModel.setLayoutSetBranchId(model.getLayoutSetBranchId());
042                    soapModel.setPlid(model.getPlid());
043    
044                    return soapModel;
045            }
046    
047            public static RecentLayoutBranchSoap[] toSoapModels(
048                    RecentLayoutBranch[] models) {
049                    RecentLayoutBranchSoap[] soapModels = new RecentLayoutBranchSoap[models.length];
050    
051                    for (int i = 0; i < models.length; i++) {
052                            soapModels[i] = toSoapModel(models[i]);
053                    }
054    
055                    return soapModels;
056            }
057    
058            public static RecentLayoutBranchSoap[][] toSoapModels(
059                    RecentLayoutBranch[][] models) {
060                    RecentLayoutBranchSoap[][] soapModels = null;
061    
062                    if (models.length > 0) {
063                            soapModels = new RecentLayoutBranchSoap[models.length][models[0].length];
064                    }
065                    else {
066                            soapModels = new RecentLayoutBranchSoap[0][0];
067                    }
068    
069                    for (int i = 0; i < models.length; i++) {
070                            soapModels[i] = toSoapModels(models[i]);
071                    }
072    
073                    return soapModels;
074            }
075    
076            public static RecentLayoutBranchSoap[] toSoapModels(
077                    List<RecentLayoutBranch> models) {
078                    List<RecentLayoutBranchSoap> soapModels = new ArrayList<RecentLayoutBranchSoap>(models.size());
079    
080                    for (RecentLayoutBranch model : models) {
081                            soapModels.add(toSoapModel(model));
082                    }
083    
084                    return soapModels.toArray(new RecentLayoutBranchSoap[soapModels.size()]);
085            }
086    
087            public RecentLayoutBranchSoap() {
088            }
089    
090            public long getPrimaryKey() {
091                    return _recentLayoutBranchId;
092            }
093    
094            public void setPrimaryKey(long pk) {
095                    setRecentLayoutBranchId(pk);
096            }
097    
098            public long getMvccVersion() {
099                    return _mvccVersion;
100            }
101    
102            public void setMvccVersion(long mvccVersion) {
103                    _mvccVersion = mvccVersion;
104            }
105    
106            public long getRecentLayoutBranchId() {
107                    return _recentLayoutBranchId;
108            }
109    
110            public void setRecentLayoutBranchId(long recentLayoutBranchId) {
111                    _recentLayoutBranchId = recentLayoutBranchId;
112            }
113    
114            public long getGroupId() {
115                    return _groupId;
116            }
117    
118            public void setGroupId(long groupId) {
119                    _groupId = groupId;
120            }
121    
122            public long getCompanyId() {
123                    return _companyId;
124            }
125    
126            public void setCompanyId(long companyId) {
127                    _companyId = companyId;
128            }
129    
130            public long getUserId() {
131                    return _userId;
132            }
133    
134            public void setUserId(long userId) {
135                    _userId = userId;
136            }
137    
138            public long getLayoutBranchId() {
139                    return _layoutBranchId;
140            }
141    
142            public void setLayoutBranchId(long layoutBranchId) {
143                    _layoutBranchId = layoutBranchId;
144            }
145    
146            public long getLayoutSetBranchId() {
147                    return _layoutSetBranchId;
148            }
149    
150            public void setLayoutSetBranchId(long layoutSetBranchId) {
151                    _layoutSetBranchId = layoutSetBranchId;
152            }
153    
154            public long getPlid() {
155                    return _plid;
156            }
157    
158            public void setPlid(long plid) {
159                    _plid = plid;
160            }
161    
162            private long _mvccVersion;
163            private long _recentLayoutBranchId;
164            private long _groupId;
165            private long _companyId;
166            private long _userId;
167            private long _layoutBranchId;
168            private long _layoutSetBranchId;
169            private long _plid;
170    }