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