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="SocialActivitySoap.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.SocialActivityServiceSoap}.
41   * </p>
42   *
43   * @author    Brian Wing Shun Chan
44   * @see       com.liferay.portlet.social.service.http.SocialActivityServiceSoap
45   * @generated
46   */
47  public class SocialActivitySoap implements Serializable {
48      public static SocialActivitySoap toSoapModel(SocialActivity model) {
49          SocialActivitySoap soapModel = new SocialActivitySoap();
50  
51          soapModel.setActivityId(model.getActivityId());
52          soapModel.setGroupId(model.getGroupId());
53          soapModel.setCompanyId(model.getCompanyId());
54          soapModel.setUserId(model.getUserId());
55          soapModel.setCreateDate(model.getCreateDate());
56          soapModel.setMirrorActivityId(model.getMirrorActivityId());
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  
63          return soapModel;
64      }
65  
66      public static SocialActivitySoap[] toSoapModels(SocialActivity[] models) {
67          SocialActivitySoap[] soapModels = new SocialActivitySoap[models.length];
68  
69          for (int i = 0; i < models.length; i++) {
70              soapModels[i] = toSoapModel(models[i]);
71          }
72  
73          return soapModels;
74      }
75  
76      public static SocialActivitySoap[][] toSoapModels(SocialActivity[][] models) {
77          SocialActivitySoap[][] soapModels = null;
78  
79          if (models.length > 0) {
80              soapModels = new SocialActivitySoap[models.length][models[0].length];
81          }
82          else {
83              soapModels = new SocialActivitySoap[0][0];
84          }
85  
86          for (int i = 0; i < models.length; i++) {
87              soapModels[i] = toSoapModels(models[i]);
88          }
89  
90          return soapModels;
91      }
92  
93      public static SocialActivitySoap[] toSoapModels(List<SocialActivity> models) {
94          List<SocialActivitySoap> soapModels = new ArrayList<SocialActivitySoap>(models.size());
95  
96          for (SocialActivity model : models) {
97              soapModels.add(toSoapModel(model));
98          }
99  
100         return soapModels.toArray(new SocialActivitySoap[soapModels.size()]);
101     }
102 
103     public SocialActivitySoap() {
104     }
105 
106     public long getPrimaryKey() {
107         return _activityId;
108     }
109 
110     public void setPrimaryKey(long pk) {
111         setActivityId(pk);
112     }
113 
114     public long getActivityId() {
115         return _activityId;
116     }
117 
118     public void setActivityId(long activityId) {
119         _activityId = activityId;
120     }
121 
122     public long getGroupId() {
123         return _groupId;
124     }
125 
126     public void setGroupId(long groupId) {
127         _groupId = groupId;
128     }
129 
130     public long getCompanyId() {
131         return _companyId;
132     }
133 
134     public void setCompanyId(long companyId) {
135         _companyId = companyId;
136     }
137 
138     public long getUserId() {
139         return _userId;
140     }
141 
142     public void setUserId(long userId) {
143         _userId = userId;
144     }
145 
146     public long getCreateDate() {
147         return _createDate;
148     }
149 
150     public void setCreateDate(long createDate) {
151         _createDate = createDate;
152     }
153 
154     public long getMirrorActivityId() {
155         return _mirrorActivityId;
156     }
157 
158     public void setMirrorActivityId(long mirrorActivityId) {
159         _mirrorActivityId = mirrorActivityId;
160     }
161 
162     public long getClassNameId() {
163         return _classNameId;
164     }
165 
166     public void setClassNameId(long classNameId) {
167         _classNameId = classNameId;
168     }
169 
170     public long getClassPK() {
171         return _classPK;
172     }
173 
174     public void setClassPK(long classPK) {
175         _classPK = classPK;
176     }
177 
178     public int getType() {
179         return _type;
180     }
181 
182     public void setType(int type) {
183         _type = type;
184     }
185 
186     public String getExtraData() {
187         return _extraData;
188     }
189 
190     public void setExtraData(String extraData) {
191         _extraData = extraData;
192     }
193 
194     public long getReceiverUserId() {
195         return _receiverUserId;
196     }
197 
198     public void setReceiverUserId(long receiverUserId) {
199         _receiverUserId = receiverUserId;
200     }
201 
202     private long _activityId;
203     private long _groupId;
204     private long _companyId;
205     private long _userId;
206     private long _createDate;
207     private long _mirrorActivityId;
208     private long _classNameId;
209     private long _classPK;
210     private int _type;
211     private String _extraData;
212     private long _receiverUserId;
213 }