001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.social.model;
016    
017    import java.io.Serializable;
018    
019    import java.util.ArrayList;
020    import java.util.List;
021    
022    /**
023     * This class is used by SOAP remote services.
024     *
025     * @author    Brian Wing Shun Chan
026     * @generated
027     */
028    public class SocialActivitySoap implements Serializable {
029            public static SocialActivitySoap toSoapModel(SocialActivity model) {
030                    SocialActivitySoap soapModel = new SocialActivitySoap();
031    
032                    soapModel.setActivityId(model.getActivityId());
033                    soapModel.setGroupId(model.getGroupId());
034                    soapModel.setCompanyId(model.getCompanyId());
035                    soapModel.setUserId(model.getUserId());
036                    soapModel.setCreateDate(model.getCreateDate());
037                    soapModel.setActivitySetId(model.getActivitySetId());
038                    soapModel.setMirrorActivityId(model.getMirrorActivityId());
039                    soapModel.setClassNameId(model.getClassNameId());
040                    soapModel.setClassPK(model.getClassPK());
041                    soapModel.setType(model.getType());
042                    soapModel.setExtraData(model.getExtraData());
043                    soapModel.setReceiverUserId(model.getReceiverUserId());
044    
045                    return soapModel;
046            }
047    
048            public static SocialActivitySoap[] toSoapModels(SocialActivity[] models) {
049                    SocialActivitySoap[] soapModels = new SocialActivitySoap[models.length];
050    
051                    for (int i = 0; i < models.length; i++) {
052                            soapModels[i] = toSoapModel(models[i]);
053                    }
054    
055                    return soapModels;
056            }
057    
058            public static SocialActivitySoap[][] toSoapModels(SocialActivity[][] models) {
059                    SocialActivitySoap[][] soapModels = null;
060    
061                    if (models.length > 0) {
062                            soapModels = new SocialActivitySoap[models.length][models[0].length];
063                    }
064                    else {
065                            soapModels = new SocialActivitySoap[0][0];
066                    }
067    
068                    for (int i = 0; i < models.length; i++) {
069                            soapModels[i] = toSoapModels(models[i]);
070                    }
071    
072                    return soapModels;
073            }
074    
075            public static SocialActivitySoap[] toSoapModels(List<SocialActivity> models) {
076                    List<SocialActivitySoap> soapModels = new ArrayList<SocialActivitySoap>(models.size());
077    
078                    for (SocialActivity model : models) {
079                            soapModels.add(toSoapModel(model));
080                    }
081    
082                    return soapModels.toArray(new SocialActivitySoap[soapModels.size()]);
083            }
084    
085            public SocialActivitySoap() {
086            }
087    
088            public long getPrimaryKey() {
089                    return _activityId;
090            }
091    
092            public void setPrimaryKey(long pk) {
093                    setActivityId(pk);
094            }
095    
096            public long getActivityId() {
097                    return _activityId;
098            }
099    
100            public void setActivityId(long activityId) {
101                    _activityId = activityId;
102            }
103    
104            public long getGroupId() {
105                    return _groupId;
106            }
107    
108            public void setGroupId(long groupId) {
109                    _groupId = groupId;
110            }
111    
112            public long getCompanyId() {
113                    return _companyId;
114            }
115    
116            public void setCompanyId(long companyId) {
117                    _companyId = companyId;
118            }
119    
120            public long getUserId() {
121                    return _userId;
122            }
123    
124            public void setUserId(long userId) {
125                    _userId = userId;
126            }
127    
128            public long getCreateDate() {
129                    return _createDate;
130            }
131    
132            public void setCreateDate(long createDate) {
133                    _createDate = createDate;
134            }
135    
136            public long getActivitySetId() {
137                    return _activitySetId;
138            }
139    
140            public void setActivitySetId(long activitySetId) {
141                    _activitySetId = activitySetId;
142            }
143    
144            public long getMirrorActivityId() {
145                    return _mirrorActivityId;
146            }
147    
148            public void setMirrorActivityId(long mirrorActivityId) {
149                    _mirrorActivityId = mirrorActivityId;
150            }
151    
152            public long getClassNameId() {
153                    return _classNameId;
154            }
155    
156            public void setClassNameId(long classNameId) {
157                    _classNameId = classNameId;
158            }
159    
160            public long getClassPK() {
161                    return _classPK;
162            }
163    
164            public void setClassPK(long classPK) {
165                    _classPK = classPK;
166            }
167    
168            public int getType() {
169                    return _type;
170            }
171    
172            public void setType(int type) {
173                    _type = type;
174            }
175    
176            public String getExtraData() {
177                    return _extraData;
178            }
179    
180            public void setExtraData(String extraData) {
181                    _extraData = extraData;
182            }
183    
184            public long getReceiverUserId() {
185                    return _receiverUserId;
186            }
187    
188            public void setReceiverUserId(long receiverUserId) {
189                    _receiverUserId = receiverUserId;
190            }
191    
192            private long _activityId;
193            private long _groupId;
194            private long _companyId;
195            private long _userId;
196            private long _createDate;
197            private long _activitySetId;
198            private long _mirrorActivityId;
199            private long _classNameId;
200            private long _classPK;
201            private int _type;
202            private String _extraData;
203            private long _receiverUserId;
204    }