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