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(List<SocialActivity> models) {
66          List<SocialActivitySoap> soapModels = new ArrayList<SocialActivitySoap>(models.size());
67  
68          for (SocialActivity model : models) {
69              soapModels.add(toSoapModel(model));
70          }
71  
72          return soapModels.toArray(new SocialActivitySoap[soapModels.size()]);
73      }
74  
75      public SocialActivitySoap() {
76      }
77  
78      public long getPrimaryKey() {
79          return _activityId;
80      }
81  
82      public void setPrimaryKey(long pk) {
83          setActivityId(pk);
84      }
85  
86      public long getActivityId() {
87          return _activityId;
88      }
89  
90      public void setActivityId(long activityId) {
91          _activityId = activityId;
92      }
93  
94      public long getGroupId() {
95          return _groupId;
96      }
97  
98      public void setGroupId(long groupId) {
99          _groupId = groupId;
100     }
101 
102     public long getCompanyId() {
103         return _companyId;
104     }
105 
106     public void setCompanyId(long companyId) {
107         _companyId = companyId;
108     }
109 
110     public long getUserId() {
111         return _userId;
112     }
113 
114     public void setUserId(long userId) {
115         _userId = userId;
116     }
117 
118     public Date getCreateDate() {
119         return _createDate;
120     }
121 
122     public void setCreateDate(Date createDate) {
123         _createDate = createDate;
124     }
125 
126     public long getMirrorActivityId() {
127         return _mirrorActivityId;
128     }
129 
130     public void setMirrorActivityId(long mirrorActivityId) {
131         _mirrorActivityId = mirrorActivityId;
132     }
133 
134     public long getClassNameId() {
135         return _classNameId;
136     }
137 
138     public void setClassNameId(long classNameId) {
139         _classNameId = classNameId;
140     }
141 
142     public long getClassPK() {
143         return _classPK;
144     }
145 
146     public void setClassPK(long classPK) {
147         _classPK = classPK;
148     }
149 
150     public int getType() {
151         return _type;
152     }
153 
154     public void setType(int type) {
155         _type = type;
156     }
157 
158     public String getExtraData() {
159         return _extraData;
160     }
161 
162     public void setExtraData(String extraData) {
163         _extraData = extraData;
164     }
165 
166     public long getReceiverUserId() {
167         return _receiverUserId;
168     }
169 
170     public void setReceiverUserId(long receiverUserId) {
171         _receiverUserId = receiverUserId;
172     }
173 
174     private long _activityId;
175     private long _groupId;
176     private long _companyId;
177     private long _userId;
178     private Date _createDate;
179     private long _mirrorActivityId;
180     private long _classNameId;
181     private long _classPK;
182     private int _type;
183     private String _extraData;
184     private long _receiverUserId;
185 }