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