001    /**
002     * Copyright (c) 2000-present 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 aQute.bnd.annotation.ProviderType;
018    
019    import java.io.Serializable;
020    
021    import java.util.ArrayList;
022    import java.util.List;
023    
024    /**
025     * This class is used by SOAP remote services, specifically {@link com.liferay.portlet.social.service.http.SocialActivityServiceSoap}.
026     *
027     * @author Brian Wing Shun Chan
028     * @see com.liferay.portlet.social.service.http.SocialActivityServiceSoap
029     * @generated
030     */
031    @ProviderType
032    public class SocialActivitySoap implements Serializable {
033            public static SocialActivitySoap toSoapModel(SocialActivity model) {
034                    SocialActivitySoap soapModel = new SocialActivitySoap();
035    
036                    soapModel.setActivityId(model.getActivityId());
037                    soapModel.setGroupId(model.getGroupId());
038                    soapModel.setCompanyId(model.getCompanyId());
039                    soapModel.setUserId(model.getUserId());
040                    soapModel.setCreateDate(model.getCreateDate());
041                    soapModel.setActivitySetId(model.getActivitySetId());
042                    soapModel.setMirrorActivityId(model.getMirrorActivityId());
043                    soapModel.setClassNameId(model.getClassNameId());
044                    soapModel.setClassPK(model.getClassPK());
045                    soapModel.setParentClassNameId(model.getParentClassNameId());
046                    soapModel.setParentClassPK(model.getParentClassPK());
047                    soapModel.setType(model.getType());
048                    soapModel.setExtraData(model.getExtraData());
049                    soapModel.setReceiverUserId(model.getReceiverUserId());
050    
051                    return soapModel;
052            }
053    
054            public static SocialActivitySoap[] toSoapModels(SocialActivity[] models) {
055                    SocialActivitySoap[] soapModels = new SocialActivitySoap[models.length];
056    
057                    for (int i = 0; i < models.length; i++) {
058                            soapModels[i] = toSoapModel(models[i]);
059                    }
060    
061                    return soapModels;
062            }
063    
064            public static SocialActivitySoap[][] toSoapModels(SocialActivity[][] models) {
065                    SocialActivitySoap[][] soapModels = null;
066    
067                    if (models.length > 0) {
068                            soapModels = new SocialActivitySoap[models.length][models[0].length];
069                    }
070                    else {
071                            soapModels = new SocialActivitySoap[0][0];
072                    }
073    
074                    for (int i = 0; i < models.length; i++) {
075                            soapModels[i] = toSoapModels(models[i]);
076                    }
077    
078                    return soapModels;
079            }
080    
081            public static SocialActivitySoap[] toSoapModels(List<SocialActivity> models) {
082                    List<SocialActivitySoap> soapModels = new ArrayList<SocialActivitySoap>(models.size());
083    
084                    for (SocialActivity model : models) {
085                            soapModels.add(toSoapModel(model));
086                    }
087    
088                    return soapModels.toArray(new SocialActivitySoap[soapModels.size()]);
089            }
090    
091            public SocialActivitySoap() {
092            }
093    
094            public long getPrimaryKey() {
095                    return _activityId;
096            }
097    
098            public void setPrimaryKey(long pk) {
099                    setActivityId(pk);
100            }
101    
102            public long getActivityId() {
103                    return _activityId;
104            }
105    
106            public void setActivityId(long activityId) {
107                    _activityId = activityId;
108            }
109    
110            public long getGroupId() {
111                    return _groupId;
112            }
113    
114            public void setGroupId(long groupId) {
115                    _groupId = groupId;
116            }
117    
118            public long getCompanyId() {
119                    return _companyId;
120            }
121    
122            public void setCompanyId(long companyId) {
123                    _companyId = companyId;
124            }
125    
126            public long getUserId() {
127                    return _userId;
128            }
129    
130            public void setUserId(long userId) {
131                    _userId = userId;
132            }
133    
134            public long getCreateDate() {
135                    return _createDate;
136            }
137    
138            public void setCreateDate(long createDate) {
139                    _createDate = createDate;
140            }
141    
142            public long getActivitySetId() {
143                    return _activitySetId;
144            }
145    
146            public void setActivitySetId(long activitySetId) {
147                    _activitySetId = activitySetId;
148            }
149    
150            public long getMirrorActivityId() {
151                    return _mirrorActivityId;
152            }
153    
154            public void setMirrorActivityId(long mirrorActivityId) {
155                    _mirrorActivityId = mirrorActivityId;
156            }
157    
158            public long getClassNameId() {
159                    return _classNameId;
160            }
161    
162            public void setClassNameId(long classNameId) {
163                    _classNameId = classNameId;
164            }
165    
166            public long getClassPK() {
167                    return _classPK;
168            }
169    
170            public void setClassPK(long classPK) {
171                    _classPK = classPK;
172            }
173    
174            public long getParentClassNameId() {
175                    return _parentClassNameId;
176            }
177    
178            public void setParentClassNameId(long parentClassNameId) {
179                    _parentClassNameId = parentClassNameId;
180            }
181    
182            public long getParentClassPK() {
183                    return _parentClassPK;
184            }
185    
186            public void setParentClassPK(long parentClassPK) {
187                    _parentClassPK = parentClassPK;
188            }
189    
190            public int getType() {
191                    return _type;
192            }
193    
194            public void setType(int type) {
195                    _type = type;
196            }
197    
198            public String getExtraData() {
199                    return _extraData;
200            }
201    
202            public void setExtraData(String extraData) {
203                    _extraData = extraData;
204            }
205    
206            public long getReceiverUserId() {
207                    return _receiverUserId;
208            }
209    
210            public void setReceiverUserId(long receiverUserId) {
211                    _receiverUserId = receiverUserId;
212            }
213    
214            private long _activityId;
215            private long _groupId;
216            private long _companyId;
217            private long _userId;
218            private long _createDate;
219            private long _activitySetId;
220            private long _mirrorActivityId;
221            private long _classNameId;
222            private long _classPK;
223            private long _parentClassNameId;
224            private long _parentClassPK;
225            private int _type;
226            private String _extraData;
227            private long _receiverUserId;
228    }