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