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.Date;
023    import java.util.List;
024    
025    /**
026     * This class is used by SOAP remote services.
027     *
028     * @author Brian Wing Shun Chan
029     * @generated
030     */
031    @ProviderType
032    public class LayoutFriendlyURLSoap implements Serializable {
033            public static LayoutFriendlyURLSoap toSoapModel(LayoutFriendlyURL model) {
034                    LayoutFriendlyURLSoap soapModel = new LayoutFriendlyURLSoap();
035    
036                    soapModel.setMvccVersion(model.getMvccVersion());
037                    soapModel.setUuid(model.getUuid());
038                    soapModel.setLayoutFriendlyURLId(model.getLayoutFriendlyURLId());
039                    soapModel.setGroupId(model.getGroupId());
040                    soapModel.setCompanyId(model.getCompanyId());
041                    soapModel.setUserId(model.getUserId());
042                    soapModel.setUserName(model.getUserName());
043                    soapModel.setCreateDate(model.getCreateDate());
044                    soapModel.setModifiedDate(model.getModifiedDate());
045                    soapModel.setPlid(model.getPlid());
046                    soapModel.setPrivateLayout(model.getPrivateLayout());
047                    soapModel.setFriendlyURL(model.getFriendlyURL());
048                    soapModel.setLanguageId(model.getLanguageId());
049                    soapModel.setLastPublishDate(model.getLastPublishDate());
050    
051                    return soapModel;
052            }
053    
054            public static LayoutFriendlyURLSoap[] toSoapModels(
055                    LayoutFriendlyURL[] models) {
056                    LayoutFriendlyURLSoap[] soapModels = new LayoutFriendlyURLSoap[models.length];
057    
058                    for (int i = 0; i < models.length; i++) {
059                            soapModels[i] = toSoapModel(models[i]);
060                    }
061    
062                    return soapModels;
063            }
064    
065            public static LayoutFriendlyURLSoap[][] toSoapModels(
066                    LayoutFriendlyURL[][] models) {
067                    LayoutFriendlyURLSoap[][] soapModels = null;
068    
069                    if (models.length > 0) {
070                            soapModels = new LayoutFriendlyURLSoap[models.length][models[0].length];
071                    }
072                    else {
073                            soapModels = new LayoutFriendlyURLSoap[0][0];
074                    }
075    
076                    for (int i = 0; i < models.length; i++) {
077                            soapModels[i] = toSoapModels(models[i]);
078                    }
079    
080                    return soapModels;
081            }
082    
083            public static LayoutFriendlyURLSoap[] toSoapModels(
084                    List<LayoutFriendlyURL> models) {
085                    List<LayoutFriendlyURLSoap> soapModels = new ArrayList<LayoutFriendlyURLSoap>(models.size());
086    
087                    for (LayoutFriendlyURL model : models) {
088                            soapModels.add(toSoapModel(model));
089                    }
090    
091                    return soapModels.toArray(new LayoutFriendlyURLSoap[soapModels.size()]);
092            }
093    
094            public LayoutFriendlyURLSoap() {
095            }
096    
097            public long getPrimaryKey() {
098                    return _layoutFriendlyURLId;
099            }
100    
101            public void setPrimaryKey(long pk) {
102                    setLayoutFriendlyURLId(pk);
103            }
104    
105            public long getMvccVersion() {
106                    return _mvccVersion;
107            }
108    
109            public void setMvccVersion(long mvccVersion) {
110                    _mvccVersion = mvccVersion;
111            }
112    
113            public String getUuid() {
114                    return _uuid;
115            }
116    
117            public void setUuid(String uuid) {
118                    _uuid = uuid;
119            }
120    
121            public long getLayoutFriendlyURLId() {
122                    return _layoutFriendlyURLId;
123            }
124    
125            public void setLayoutFriendlyURLId(long layoutFriendlyURLId) {
126                    _layoutFriendlyURLId = layoutFriendlyURLId;
127            }
128    
129            public long getGroupId() {
130                    return _groupId;
131            }
132    
133            public void setGroupId(long groupId) {
134                    _groupId = groupId;
135            }
136    
137            public long getCompanyId() {
138                    return _companyId;
139            }
140    
141            public void setCompanyId(long companyId) {
142                    _companyId = companyId;
143            }
144    
145            public long getUserId() {
146                    return _userId;
147            }
148    
149            public void setUserId(long userId) {
150                    _userId = userId;
151            }
152    
153            public String getUserName() {
154                    return _userName;
155            }
156    
157            public void setUserName(String userName) {
158                    _userName = userName;
159            }
160    
161            public Date getCreateDate() {
162                    return _createDate;
163            }
164    
165            public void setCreateDate(Date createDate) {
166                    _createDate = createDate;
167            }
168    
169            public Date getModifiedDate() {
170                    return _modifiedDate;
171            }
172    
173            public void setModifiedDate(Date modifiedDate) {
174                    _modifiedDate = modifiedDate;
175            }
176    
177            public long getPlid() {
178                    return _plid;
179            }
180    
181            public void setPlid(long plid) {
182                    _plid = plid;
183            }
184    
185            public boolean getPrivateLayout() {
186                    return _privateLayout;
187            }
188    
189            public boolean isPrivateLayout() {
190                    return _privateLayout;
191            }
192    
193            public void setPrivateLayout(boolean privateLayout) {
194                    _privateLayout = privateLayout;
195            }
196    
197            public String getFriendlyURL() {
198                    return _friendlyURL;
199            }
200    
201            public void setFriendlyURL(String friendlyURL) {
202                    _friendlyURL = friendlyURL;
203            }
204    
205            public String getLanguageId() {
206                    return _languageId;
207            }
208    
209            public void setLanguageId(String languageId) {
210                    _languageId = languageId;
211            }
212    
213            public Date getLastPublishDate() {
214                    return _lastPublishDate;
215            }
216    
217            public void setLastPublishDate(Date lastPublishDate) {
218                    _lastPublishDate = lastPublishDate;
219            }
220    
221            private long _mvccVersion;
222            private String _uuid;
223            private long _layoutFriendlyURLId;
224            private long _groupId;
225            private long _companyId;
226            private long _userId;
227            private String _userName;
228            private Date _createDate;
229            private Date _modifiedDate;
230            private long _plid;
231            private boolean _privateLayout;
232            private String _friendlyURL;
233            private String _languageId;
234            private Date _lastPublishDate;
235    }