1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights 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   * {@link com.liferay.portlet.social.service.http.SocialRequestServiceSoap}.
41   * </p>
42   *
43   * @author    Brian Wing Shun Chan
44   * @see       com.liferay.portlet.social.service.http.SocialRequestServiceSoap
45   * @generated
46   */
47  public class SocialRequestSoap implements Serializable {
48      public static SocialRequestSoap toSoapModel(SocialRequest model) {
49          SocialRequestSoap soapModel = new SocialRequestSoap();
50  
51          soapModel.setUuid(model.getUuid());
52          soapModel.setRequestId(model.getRequestId());
53          soapModel.setGroupId(model.getGroupId());
54          soapModel.setCompanyId(model.getCompanyId());
55          soapModel.setUserId(model.getUserId());
56          soapModel.setCreateDate(model.getCreateDate());
57          soapModel.setModifiedDate(model.getModifiedDate());
58          soapModel.setClassNameId(model.getClassNameId());
59          soapModel.setClassPK(model.getClassPK());
60          soapModel.setType(model.getType());
61          soapModel.setExtraData(model.getExtraData());
62          soapModel.setReceiverUserId(model.getReceiverUserId());
63          soapModel.setStatus(model.getStatus());
64  
65          return soapModel;
66      }
67  
68      public static SocialRequestSoap[] toSoapModels(SocialRequest[] models) {
69          SocialRequestSoap[] soapModels = new SocialRequestSoap[models.length];
70  
71          for (int i = 0; i < models.length; i++) {
72              soapModels[i] = toSoapModel(models[i]);
73          }
74  
75          return soapModels;
76      }
77  
78      public static SocialRequestSoap[][] toSoapModels(SocialRequest[][] models) {
79          SocialRequestSoap[][] soapModels = null;
80  
81          if (models.length > 0) {
82              soapModels = new SocialRequestSoap[models.length][models[0].length];
83          }
84          else {
85              soapModels = new SocialRequestSoap[0][0];
86          }
87  
88          for (int i = 0; i < models.length; i++) {
89              soapModels[i] = toSoapModels(models[i]);
90          }
91  
92          return soapModels;
93      }
94  
95      public static SocialRequestSoap[] toSoapModels(List<SocialRequest> models) {
96          List<SocialRequestSoap> soapModels = new ArrayList<SocialRequestSoap>(models.size());
97  
98          for (SocialRequest model : models) {
99              soapModels.add(toSoapModel(model));
100         }
101 
102         return soapModels.toArray(new SocialRequestSoap[soapModels.size()]);
103     }
104 
105     public SocialRequestSoap() {
106     }
107 
108     public long getPrimaryKey() {
109         return _requestId;
110     }
111 
112     public void setPrimaryKey(long pk) {
113         setRequestId(pk);
114     }
115 
116     public String getUuid() {
117         return _uuid;
118     }
119 
120     public void setUuid(String uuid) {
121         _uuid = uuid;
122     }
123 
124     public long getRequestId() {
125         return _requestId;
126     }
127 
128     public void setRequestId(long requestId) {
129         _requestId = requestId;
130     }
131 
132     public long getGroupId() {
133         return _groupId;
134     }
135 
136     public void setGroupId(long groupId) {
137         _groupId = groupId;
138     }
139 
140     public long getCompanyId() {
141         return _companyId;
142     }
143 
144     public void setCompanyId(long companyId) {
145         _companyId = companyId;
146     }
147 
148     public long getUserId() {
149         return _userId;
150     }
151 
152     public void setUserId(long userId) {
153         _userId = userId;
154     }
155 
156     public long getCreateDate() {
157         return _createDate;
158     }
159 
160     public void setCreateDate(long createDate) {
161         _createDate = createDate;
162     }
163 
164     public long getModifiedDate() {
165         return _modifiedDate;
166     }
167 
168     public void setModifiedDate(long modifiedDate) {
169         _modifiedDate = modifiedDate;
170     }
171 
172     public long getClassNameId() {
173         return _classNameId;
174     }
175 
176     public void setClassNameId(long classNameId) {
177         _classNameId = classNameId;
178     }
179 
180     public long getClassPK() {
181         return _classPK;
182     }
183 
184     public void setClassPK(long classPK) {
185         _classPK = classPK;
186     }
187 
188     public int getType() {
189         return _type;
190     }
191 
192     public void setType(int type) {
193         _type = type;
194     }
195 
196     public String getExtraData() {
197         return _extraData;
198     }
199 
200     public void setExtraData(String extraData) {
201         _extraData = extraData;
202     }
203 
204     public long getReceiverUserId() {
205         return _receiverUserId;
206     }
207 
208     public void setReceiverUserId(long receiverUserId) {
209         _receiverUserId = receiverUserId;
210     }
211 
212     public int getStatus() {
213         return _status;
214     }
215 
216     public void setStatus(int status) {
217         _status = status;
218     }
219 
220     private String _uuid;
221     private long _requestId;
222     private long _groupId;
223     private long _companyId;
224     private long _userId;
225     private long _createDate;
226     private long _modifiedDate;
227     private long _classNameId;
228     private long _classPK;
229     private int _type;
230     private String _extraData;
231     private long _receiverUserId;
232     private int _status;
233 }