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.portlet.social.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, specifically {@link com.liferay.portlet.social.service.http.SocialRequestServiceSoap}.
026     *
027     * @author Brian Wing Shun Chan
028     * @see com.liferay.portlet.social.service.http.SocialRequestServiceSoap
029     * @generated
030     */
031    @ProviderType
032    public class SocialRequestSoap implements Serializable {
033            public static SocialRequestSoap toSoapModel(SocialRequest model) {
034                    SocialRequestSoap soapModel = new SocialRequestSoap();
035    
036                    soapModel.setUuid(model.getUuid());
037                    soapModel.setRequestId(model.getRequestId());
038                    soapModel.setGroupId(model.getGroupId());
039                    soapModel.setCompanyId(model.getCompanyId());
040                    soapModel.setUserId(model.getUserId());
041                    soapModel.setCreateDate(model.getCreateDate());
042                    soapModel.setModifiedDate(model.getModifiedDate());
043                    soapModel.setClassNameId(model.getClassNameId());
044                    soapModel.setClassPK(model.getClassPK());
045                    soapModel.setType(model.getType());
046                    soapModel.setExtraData(model.getExtraData());
047                    soapModel.setReceiverUserId(model.getReceiverUserId());
048                    soapModel.setStatus(model.getStatus());
049    
050                    return soapModel;
051            }
052    
053            public static SocialRequestSoap[] toSoapModels(SocialRequest[] models) {
054                    SocialRequestSoap[] soapModels = new SocialRequestSoap[models.length];
055    
056                    for (int i = 0; i < models.length; i++) {
057                            soapModels[i] = toSoapModel(models[i]);
058                    }
059    
060                    return soapModels;
061            }
062    
063            public static SocialRequestSoap[][] toSoapModels(SocialRequest[][] models) {
064                    SocialRequestSoap[][] soapModels = null;
065    
066                    if (models.length > 0) {
067                            soapModels = new SocialRequestSoap[models.length][models[0].length];
068                    }
069                    else {
070                            soapModels = new SocialRequestSoap[0][0];
071                    }
072    
073                    for (int i = 0; i < models.length; i++) {
074                            soapModels[i] = toSoapModels(models[i]);
075                    }
076    
077                    return soapModels;
078            }
079    
080            public static SocialRequestSoap[] toSoapModels(List<SocialRequest> models) {
081                    List<SocialRequestSoap> soapModels = new ArrayList<SocialRequestSoap>(models.size());
082    
083                    for (SocialRequest model : models) {
084                            soapModels.add(toSoapModel(model));
085                    }
086    
087                    return soapModels.toArray(new SocialRequestSoap[soapModels.size()]);
088            }
089    
090            public SocialRequestSoap() {
091            }
092    
093            public long getPrimaryKey() {
094                    return _requestId;
095            }
096    
097            public void setPrimaryKey(long pk) {
098                    setRequestId(pk);
099            }
100    
101            public String getUuid() {
102                    return _uuid;
103            }
104    
105            public void setUuid(String uuid) {
106                    _uuid = uuid;
107            }
108    
109            public long getRequestId() {
110                    return _requestId;
111            }
112    
113            public void setRequestId(long requestId) {
114                    _requestId = requestId;
115            }
116    
117            public long getGroupId() {
118                    return _groupId;
119            }
120    
121            public void setGroupId(long groupId) {
122                    _groupId = groupId;
123            }
124    
125            public long getCompanyId() {
126                    return _companyId;
127            }
128    
129            public void setCompanyId(long companyId) {
130                    _companyId = companyId;
131            }
132    
133            public long getUserId() {
134                    return _userId;
135            }
136    
137            public void setUserId(long userId) {
138                    _userId = userId;
139            }
140    
141            public long getCreateDate() {
142                    return _createDate;
143            }
144    
145            public void setCreateDate(long createDate) {
146                    _createDate = createDate;
147            }
148    
149            public long getModifiedDate() {
150                    return _modifiedDate;
151            }
152    
153            public void setModifiedDate(long modifiedDate) {
154                    _modifiedDate = modifiedDate;
155            }
156    
157            public long getClassNameId() {
158                    return _classNameId;
159            }
160    
161            public void setClassNameId(long classNameId) {
162                    _classNameId = classNameId;
163            }
164    
165            public long getClassPK() {
166                    return _classPK;
167            }
168    
169            public void setClassPK(long classPK) {
170                    _classPK = classPK;
171            }
172    
173            public int getType() {
174                    return _type;
175            }
176    
177            public void setType(int type) {
178                    _type = type;
179            }
180    
181            public String getExtraData() {
182                    return _extraData;
183            }
184    
185            public void setExtraData(String extraData) {
186                    _extraData = extraData;
187            }
188    
189            public long getReceiverUserId() {
190                    return _receiverUserId;
191            }
192    
193            public void setReceiverUserId(long receiverUserId) {
194                    _receiverUserId = receiverUserId;
195            }
196    
197            public int getStatus() {
198                    return _status;
199            }
200    
201            public void setStatus(int status) {
202                    _status = status;
203            }
204    
205            private String _uuid;
206            private long _requestId;
207            private long _groupId;
208            private long _companyId;
209            private long _userId;
210            private long _createDate;
211            private long _modifiedDate;
212            private long _classNameId;
213            private long _classPK;
214            private int _type;
215            private String _extraData;
216            private long _receiverUserId;
217            private int _status;
218    }