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.Date;
29  import java.util.List;
30  
31  /**
32   * <a href="SocialRequestSoap.java.html"><b><i>View Source</i></b></a>
33   *
34   * <p>
35   * ServiceBuilder generated this class. Modifications in this class will be
36   * overwritten the next time is generated.
37   * </p>
38   *
39   * <p>
40   * This class is used by
41   * <code>com.liferay.portlet.social.service.http.SocialRequestServiceSoap</code>.
42   * </p>
43   *
44   * @author Brian Wing Shun Chan
45   *
46   * @see com.liferay.portlet.social.service.http.SocialRequestServiceSoap
47   *
48   */
49  public class SocialRequestSoap implements Serializable {
50      public static SocialRequestSoap toSoapModel(SocialRequest model) {
51          SocialRequestSoap soapModel = new SocialRequestSoap();
52  
53          soapModel.setUuid(model.getUuid());
54          soapModel.setRequestId(model.getRequestId());
55          soapModel.setGroupId(model.getGroupId());
56          soapModel.setCompanyId(model.getCompanyId());
57          soapModel.setUserId(model.getUserId());
58          soapModel.setCreateDate(model.getCreateDate());
59          soapModel.setModifiedDate(model.getModifiedDate());
60          soapModel.setClassNameId(model.getClassNameId());
61          soapModel.setClassPK(model.getClassPK());
62          soapModel.setType(model.getType());
63          soapModel.setExtraData(model.getExtraData());
64          soapModel.setReceiverUserId(model.getReceiverUserId());
65          soapModel.setStatus(model.getStatus());
66  
67          return soapModel;
68      }
69  
70      public static SocialRequestSoap[] toSoapModels(SocialRequest[] models) {
71          SocialRequestSoap[] soapModels = new SocialRequestSoap[models.length];
72  
73          for (int i = 0; i < models.length; i++) {
74              soapModels[i] = toSoapModel(models[i]);
75          }
76  
77          return soapModels;
78      }
79  
80      public static SocialRequestSoap[][] toSoapModels(SocialRequest[][] models) {
81          SocialRequestSoap[][] soapModels = null;
82  
83          if (models.length > 0) {
84              soapModels = new SocialRequestSoap[models.length][models[0].length];
85          }
86          else {
87              soapModels = new SocialRequestSoap[0][0];
88          }
89  
90          for (int i = 0; i < models.length; i++) {
91              soapModels[i] = toSoapModels(models[i]);
92          }
93  
94          return soapModels;
95      }
96  
97      public static SocialRequestSoap[] toSoapModels(List<SocialRequest> models) {
98          List<SocialRequestSoap> soapModels = new ArrayList<SocialRequestSoap>(models.size());
99  
100         for (SocialRequest model : models) {
101             soapModels.add(toSoapModel(model));
102         }
103 
104         return soapModels.toArray(new SocialRequestSoap[soapModels.size()]);
105     }
106 
107     public SocialRequestSoap() {
108     }
109 
110     public long getPrimaryKey() {
111         return _requestId;
112     }
113 
114     public void setPrimaryKey(long pk) {
115         setRequestId(pk);
116     }
117 
118     public String getUuid() {
119         return _uuid;
120     }
121 
122     public void setUuid(String uuid) {
123         _uuid = uuid;
124     }
125 
126     public long getRequestId() {
127         return _requestId;
128     }
129 
130     public void setRequestId(long requestId) {
131         _requestId = requestId;
132     }
133 
134     public long getGroupId() {
135         return _groupId;
136     }
137 
138     public void setGroupId(long groupId) {
139         _groupId = groupId;
140     }
141 
142     public long getCompanyId() {
143         return _companyId;
144     }
145 
146     public void setCompanyId(long companyId) {
147         _companyId = companyId;
148     }
149 
150     public long getUserId() {
151         return _userId;
152     }
153 
154     public void setUserId(long userId) {
155         _userId = userId;
156     }
157 
158     public Date getCreateDate() {
159         return _createDate;
160     }
161 
162     public void setCreateDate(Date createDate) {
163         _createDate = createDate;
164     }
165 
166     public Date getModifiedDate() {
167         return _modifiedDate;
168     }
169 
170     public void setModifiedDate(Date modifiedDate) {
171         _modifiedDate = modifiedDate;
172     }
173 
174     public long getClassNameId() {
175         return _classNameId;
176     }
177 
178     public void setClassNameId(long classNameId) {
179         _classNameId = classNameId;
180     }
181 
182     public long getClassPK() {
183         return _classPK;
184     }
185 
186     public void setClassPK(long classPK) {
187         _classPK = classPK;
188     }
189 
190     public int getType() {
191         return _type;
192     }
193 
194     public void setType(int type) {
195         _type = type;
196     }
197 
198     public String getExtraData() {
199         return _extraData;
200     }
201 
202     public void setExtraData(String extraData) {
203         _extraData = extraData;
204     }
205 
206     public long getReceiverUserId() {
207         return _receiverUserId;
208     }
209 
210     public void setReceiverUserId(long receiverUserId) {
211         _receiverUserId = receiverUserId;
212     }
213 
214     public int getStatus() {
215         return _status;
216     }
217 
218     public void setStatus(int status) {
219         _status = status;
220     }
221 
222     private String _uuid;
223     private long _requestId;
224     private long _groupId;
225     private long _companyId;
226     private long _userId;
227     private Date _createDate;
228     private Date _modifiedDate;
229     private long _classNameId;
230     private long _classPK;
231     private int _type;
232     private String _extraData;
233     private long _receiverUserId;
234     private int _status;
235 }