1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.social.model;
24  
25  import java.io.Serializable;
26  
27  import java.util.ArrayList;
28  import java.util.List;
29  
30  /**
31   * <a href="SocialRequestSoap.java.html"><b><i>View Source</i></b></a>
32   *
33   * <p>
34   * ServiceBuilder generated this class. Modifications in this class will be
35   * overwritten the next time is generated.
36   * </p>
37   *
38   * <p>
39   * This class is used by
40   * <code>com.liferay.portlet.social.service.http.SocialRequestServiceSoap</code>.
41   * </p>
42   *
43   * @author Brian Wing Shun Chan
44   *
45   * @see com.liferay.portlet.social.service.http.SocialRequestServiceSoap
46   *
47   */
48  public class SocialRequestSoap implements Serializable {
49      public static SocialRequestSoap toSoapModel(SocialRequest model) {
50          SocialRequestSoap soapModel = new SocialRequestSoap();
51  
52          soapModel.setUuid(model.getUuid());
53          soapModel.setRequestId(model.getRequestId());
54          soapModel.setGroupId(model.getGroupId());
55          soapModel.setCompanyId(model.getCompanyId());
56          soapModel.setUserId(model.getUserId());
57          soapModel.setCreateDate(model.getCreateDate());
58          soapModel.setModifiedDate(model.getModifiedDate());
59          soapModel.setClassNameId(model.getClassNameId());
60          soapModel.setClassPK(model.getClassPK());
61          soapModel.setType(model.getType());
62          soapModel.setExtraData(model.getExtraData());
63          soapModel.setReceiverUserId(model.getReceiverUserId());
64          soapModel.setStatus(model.getStatus());
65  
66          return soapModel;
67      }
68  
69      public static SocialRequestSoap[] toSoapModels(SocialRequest[] models) {
70          SocialRequestSoap[] soapModels = new SocialRequestSoap[models.length];
71  
72          for (int i = 0; i < models.length; i++) {
73              soapModels[i] = toSoapModel(models[i]);
74          }
75  
76          return soapModels;
77      }
78  
79      public static SocialRequestSoap[][] toSoapModels(SocialRequest[][] models) {
80          SocialRequestSoap[][] soapModels = null;
81  
82          if (models.length > 0) {
83              soapModels = new SocialRequestSoap[models.length][models[0].length];
84          }
85          else {
86              soapModels = new SocialRequestSoap[0][0];
87          }
88  
89          for (int i = 0; i < models.length; i++) {
90              soapModels[i] = toSoapModels(models[i]);
91          }
92  
93          return soapModels;
94      }
95  
96      public static SocialRequestSoap[] toSoapModels(List<SocialRequest> models) {
97          List<SocialRequestSoap> soapModels = new ArrayList<SocialRequestSoap>(models.size());
98  
99          for (SocialRequest model : models) {
100             soapModels.add(toSoapModel(model));
101         }
102 
103         return soapModels.toArray(new SocialRequestSoap[soapModels.size()]);
104     }
105 
106     public SocialRequestSoap() {
107     }
108 
109     public long getPrimaryKey() {
110         return _requestId;
111     }
112 
113     public void setPrimaryKey(long pk) {
114         setRequestId(pk);
115     }
116 
117     public String getUuid() {
118         return _uuid;
119     }
120 
121     public void setUuid(String uuid) {
122         _uuid = uuid;
123     }
124 
125     public long getRequestId() {
126         return _requestId;
127     }
128 
129     public void setRequestId(long requestId) {
130         _requestId = requestId;
131     }
132 
133     public long getGroupId() {
134         return _groupId;
135     }
136 
137     public void setGroupId(long groupId) {
138         _groupId = groupId;
139     }
140 
141     public long getCompanyId() {
142         return _companyId;
143     }
144 
145     public void setCompanyId(long companyId) {
146         _companyId = companyId;
147     }
148 
149     public long getUserId() {
150         return _userId;
151     }
152 
153     public void setUserId(long userId) {
154         _userId = userId;
155     }
156 
157     public long getCreateDate() {
158         return _createDate;
159     }
160 
161     public void setCreateDate(long createDate) {
162         _createDate = createDate;
163     }
164 
165     public long getModifiedDate() {
166         return _modifiedDate;
167     }
168 
169     public void setModifiedDate(long modifiedDate) {
170         _modifiedDate = modifiedDate;
171     }
172 
173     public long getClassNameId() {
174         return _classNameId;
175     }
176 
177     public void setClassNameId(long classNameId) {
178         _classNameId = classNameId;
179     }
180 
181     public long getClassPK() {
182         return _classPK;
183     }
184 
185     public void setClassPK(long classPK) {
186         _classPK = classPK;
187     }
188 
189     public int getType() {
190         return _type;
191     }
192 
193     public void setType(int type) {
194         _type = type;
195     }
196 
197     public String getExtraData() {
198         return _extraData;
199     }
200 
201     public void setExtraData(String extraData) {
202         _extraData = extraData;
203     }
204 
205     public long getReceiverUserId() {
206         return _receiverUserId;
207     }
208 
209     public void setReceiverUserId(long receiverUserId) {
210         _receiverUserId = receiverUserId;
211     }
212 
213     public int getStatus() {
214         return _status;
215     }
216 
217     public void setStatus(int status) {
218         _status = status;
219     }
220 
221     private String _uuid;
222     private long _requestId;
223     private long _groupId;
224     private long _companyId;
225     private long _userId;
226     private long _createDate;
227     private long _modifiedDate;
228     private long _classNameId;
229     private long _classPK;
230     private int _type;
231     private String _extraData;
232     private long _receiverUserId;
233     private int _status;
234 }