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(List<SocialRequest> models) {
71          List<SocialRequestSoap> soapModels = new ArrayList<SocialRequestSoap>(models.size());
72  
73          for (SocialRequest model : models) {
74              soapModels.add(toSoapModel(model));
75          }
76  
77          return soapModels.toArray(new SocialRequestSoap[soapModels.size()]);
78      }
79  
80      public SocialRequestSoap() {
81      }
82  
83      public long getPrimaryKey() {
84          return _requestId;
85      }
86  
87      public void setPrimaryKey(long pk) {
88          setRequestId(pk);
89      }
90  
91      public String getUuid() {
92          return _uuid;
93      }
94  
95      public void setUuid(String uuid) {
96          _uuid = uuid;
97      }
98  
99      public long getRequestId() {
100         return _requestId;
101     }
102 
103     public void setRequestId(long requestId) {
104         _requestId = requestId;
105     }
106 
107     public long getGroupId() {
108         return _groupId;
109     }
110 
111     public void setGroupId(long groupId) {
112         _groupId = groupId;
113     }
114 
115     public long getCompanyId() {
116         return _companyId;
117     }
118 
119     public void setCompanyId(long companyId) {
120         _companyId = companyId;
121     }
122 
123     public long getUserId() {
124         return _userId;
125     }
126 
127     public void setUserId(long userId) {
128         _userId = userId;
129     }
130 
131     public Date getCreateDate() {
132         return _createDate;
133     }
134 
135     public void setCreateDate(Date createDate) {
136         _createDate = createDate;
137     }
138 
139     public Date getModifiedDate() {
140         return _modifiedDate;
141     }
142 
143     public void setModifiedDate(Date modifiedDate) {
144         _modifiedDate = modifiedDate;
145     }
146 
147     public long getClassNameId() {
148         return _classNameId;
149     }
150 
151     public void setClassNameId(long classNameId) {
152         _classNameId = classNameId;
153     }
154 
155     public long getClassPK() {
156         return _classPK;
157     }
158 
159     public void setClassPK(long classPK) {
160         _classPK = classPK;
161     }
162 
163     public int getType() {
164         return _type;
165     }
166 
167     public void setType(int type) {
168         _type = type;
169     }
170 
171     public String getExtraData() {
172         return _extraData;
173     }
174 
175     public void setExtraData(String extraData) {
176         _extraData = extraData;
177     }
178 
179     public long getReceiverUserId() {
180         return _receiverUserId;
181     }
182 
183     public void setReceiverUserId(long receiverUserId) {
184         _receiverUserId = receiverUserId;
185     }
186 
187     public int getStatus() {
188         return _status;
189     }
190 
191     public void setStatus(int status) {
192         _status = status;
193     }
194 
195     private String _uuid;
196     private long _requestId;
197     private long _groupId;
198     private long _companyId;
199     private long _userId;
200     private Date _createDate;
201     private Date _modifiedDate;
202     private long _classNameId;
203     private long _classPK;
204     private int _type;
205     private String _extraData;
206     private long _receiverUserId;
207     private int _status;
208 }