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