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