1   /**
2    * Copyright (c) 2000-2010 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   *
12   *
13   */
14  
15  package com.liferay.portlet.social.model;
16  
17  import java.io.Serializable;
18  
19  import java.util.ArrayList;
20  import java.util.List;
21  
22  /**
23   * <a href="SocialActivitySoap.java.html"><b><i>View Source</i></b></a>
24   *
25   * <p>
26   * ServiceBuilder generated this class. Modifications in this class will be
27   * overwritten the next time is generated.
28   * </p>
29   *
30   * <p>
31   * This class is used by
32   * {@link com.liferay.portlet.social.service.http.SocialActivityServiceSoap}.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       com.liferay.portlet.social.service.http.SocialActivityServiceSoap
37   * @generated
38   */
39  public class SocialActivitySoap implements Serializable {
40      public static SocialActivitySoap toSoapModel(SocialActivity model) {
41          SocialActivitySoap soapModel = new SocialActivitySoap();
42  
43          soapModel.setActivityId(model.getActivityId());
44          soapModel.setGroupId(model.getGroupId());
45          soapModel.setCompanyId(model.getCompanyId());
46          soapModel.setUserId(model.getUserId());
47          soapModel.setCreateDate(model.getCreateDate());
48          soapModel.setMirrorActivityId(model.getMirrorActivityId());
49          soapModel.setClassNameId(model.getClassNameId());
50          soapModel.setClassPK(model.getClassPK());
51          soapModel.setType(model.getType());
52          soapModel.setExtraData(model.getExtraData());
53          soapModel.setReceiverUserId(model.getReceiverUserId());
54  
55          return soapModel;
56      }
57  
58      public static SocialActivitySoap[] toSoapModels(SocialActivity[] models) {
59          SocialActivitySoap[] soapModels = new SocialActivitySoap[models.length];
60  
61          for (int i = 0; i < models.length; i++) {
62              soapModels[i] = toSoapModel(models[i]);
63          }
64  
65          return soapModels;
66      }
67  
68      public static SocialActivitySoap[][] toSoapModels(SocialActivity[][] models) {
69          SocialActivitySoap[][] soapModels = null;
70  
71          if (models.length > 0) {
72              soapModels = new SocialActivitySoap[models.length][models[0].length];
73          }
74          else {
75              soapModels = new SocialActivitySoap[0][0];
76          }
77  
78          for (int i = 0; i < models.length; i++) {
79              soapModels[i] = toSoapModels(models[i]);
80          }
81  
82          return soapModels;
83      }
84  
85      public static SocialActivitySoap[] toSoapModels(List<SocialActivity> models) {
86          List<SocialActivitySoap> soapModels = new ArrayList<SocialActivitySoap>(models.size());
87  
88          for (SocialActivity model : models) {
89              soapModels.add(toSoapModel(model));
90          }
91  
92          return soapModels.toArray(new SocialActivitySoap[soapModels.size()]);
93      }
94  
95      public SocialActivitySoap() {
96      }
97  
98      public long getPrimaryKey() {
99          return _activityId;
100     }
101 
102     public void setPrimaryKey(long pk) {
103         setActivityId(pk);
104     }
105 
106     public long getActivityId() {
107         return _activityId;
108     }
109 
110     public void setActivityId(long activityId) {
111         _activityId = activityId;
112     }
113 
114     public long getGroupId() {
115         return _groupId;
116     }
117 
118     public void setGroupId(long groupId) {
119         _groupId = groupId;
120     }
121 
122     public long getCompanyId() {
123         return _companyId;
124     }
125 
126     public void setCompanyId(long companyId) {
127         _companyId = companyId;
128     }
129 
130     public long getUserId() {
131         return _userId;
132     }
133 
134     public void setUserId(long userId) {
135         _userId = userId;
136     }
137 
138     public long getCreateDate() {
139         return _createDate;
140     }
141 
142     public void setCreateDate(long createDate) {
143         _createDate = createDate;
144     }
145 
146     public long getMirrorActivityId() {
147         return _mirrorActivityId;
148     }
149 
150     public void setMirrorActivityId(long mirrorActivityId) {
151         _mirrorActivityId = mirrorActivityId;
152     }
153 
154     public long getClassNameId() {
155         return _classNameId;
156     }
157 
158     public void setClassNameId(long classNameId) {
159         _classNameId = classNameId;
160     }
161 
162     public long getClassPK() {
163         return _classPK;
164     }
165 
166     public void setClassPK(long classPK) {
167         _classPK = classPK;
168     }
169 
170     public int getType() {
171         return _type;
172     }
173 
174     public void setType(int type) {
175         _type = type;
176     }
177 
178     public String getExtraData() {
179         return _extraData;
180     }
181 
182     public void setExtraData(String extraData) {
183         _extraData = extraData;
184     }
185 
186     public long getReceiverUserId() {
187         return _receiverUserId;
188     }
189 
190     public void setReceiverUserId(long receiverUserId) {
191         _receiverUserId = receiverUserId;
192     }
193 
194     private long _activityId;
195     private long _groupId;
196     private long _companyId;
197     private long _userId;
198     private long _createDate;
199     private long _mirrorActivityId;
200     private long _classNameId;
201     private long _classPK;
202     private int _type;
203     private String _extraData;
204     private long _receiverUserId;
205 }