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 RecentLayoutRevisionSoap implements Serializable {
032            public static RecentLayoutRevisionSoap toSoapModel(
033                    RecentLayoutRevision model) {
034                    RecentLayoutRevisionSoap soapModel = new RecentLayoutRevisionSoap();
035    
036                    soapModel.setMvccVersion(model.getMvccVersion());
037                    soapModel.setRecentLayoutRevisionId(model.getRecentLayoutRevisionId());
038                    soapModel.setGroupId(model.getGroupId());
039                    soapModel.setCompanyId(model.getCompanyId());
040                    soapModel.setUserId(model.getUserId());
041                    soapModel.setLayoutRevisionId(model.getLayoutRevisionId());
042                    soapModel.setLayoutSetBranchId(model.getLayoutSetBranchId());
043                    soapModel.setPlid(model.getPlid());
044    
045                    return soapModel;
046            }
047    
048            public static RecentLayoutRevisionSoap[] toSoapModels(
049                    RecentLayoutRevision[] models) {
050                    RecentLayoutRevisionSoap[] soapModels = new RecentLayoutRevisionSoap[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 RecentLayoutRevisionSoap[][] toSoapModels(
060                    RecentLayoutRevision[][] models) {
061                    RecentLayoutRevisionSoap[][] soapModels = null;
062    
063                    if (models.length > 0) {
064                            soapModels = new RecentLayoutRevisionSoap[models.length][models[0].length];
065                    }
066                    else {
067                            soapModels = new RecentLayoutRevisionSoap[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 RecentLayoutRevisionSoap[] toSoapModels(
078                    List<RecentLayoutRevision> models) {
079                    List<RecentLayoutRevisionSoap> soapModels = new ArrayList<RecentLayoutRevisionSoap>(models.size());
080    
081                    for (RecentLayoutRevision model : models) {
082                            soapModels.add(toSoapModel(model));
083                    }
084    
085                    return soapModels.toArray(new RecentLayoutRevisionSoap[soapModels.size()]);
086            }
087    
088            public RecentLayoutRevisionSoap() {
089            }
090    
091            public long getPrimaryKey() {
092                    return _recentLayoutRevisionId;
093            }
094    
095            public void setPrimaryKey(long pk) {
096                    setRecentLayoutRevisionId(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 getRecentLayoutRevisionId() {
108                    return _recentLayoutRevisionId;
109            }
110    
111            public void setRecentLayoutRevisionId(long recentLayoutRevisionId) {
112                    _recentLayoutRevisionId = recentLayoutRevisionId;
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 long getLayoutRevisionId() {
140                    return _layoutRevisionId;
141            }
142    
143            public void setLayoutRevisionId(long layoutRevisionId) {
144                    _layoutRevisionId = layoutRevisionId;
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            private long _mvccVersion;
164            private long _recentLayoutRevisionId;
165            private long _groupId;
166            private long _companyId;
167            private long _userId;
168            private long _layoutRevisionId;
169            private long _layoutSetBranchId;
170            private long _plid;
171    }