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