001
014
015 package com.liferay.portlet.social.model;
016
017 import com.liferay.portal.model.ModelWrapper;
018
019 import java.util.HashMap;
020 import java.util.Map;
021
022
031 public class SocialActivityWrapper implements SocialActivity,
032 ModelWrapper<SocialActivity> {
033 public SocialActivityWrapper(SocialActivity socialActivity) {
034 _socialActivity = socialActivity;
035 }
036
037 public Class<?> getModelClass() {
038 return SocialActivity.class;
039 }
040
041 public String getModelClassName() {
042 return SocialActivity.class.getName();
043 }
044
045 public Map<String, Object> getModelAttributes() {
046 Map<String, Object> attributes = new HashMap<String, Object>();
047
048 attributes.put("activityId", getActivityId());
049 attributes.put("groupId", getGroupId());
050 attributes.put("companyId", getCompanyId());
051 attributes.put("userId", getUserId());
052 attributes.put("createDate", getCreateDate());
053 attributes.put("mirrorActivityId", getMirrorActivityId());
054 attributes.put("classNameId", getClassNameId());
055 attributes.put("classPK", getClassPK());
056 attributes.put("type", getType());
057 attributes.put("extraData", getExtraData());
058 attributes.put("receiverUserId", getReceiverUserId());
059
060 return attributes;
061 }
062
063 public void setModelAttributes(Map<String, Object> attributes) {
064 Long activityId = (Long)attributes.get("activityId");
065
066 if (activityId != null) {
067 setActivityId(activityId);
068 }
069
070 Long groupId = (Long)attributes.get("groupId");
071
072 if (groupId != null) {
073 setGroupId(groupId);
074 }
075
076 Long companyId = (Long)attributes.get("companyId");
077
078 if (companyId != null) {
079 setCompanyId(companyId);
080 }
081
082 Long userId = (Long)attributes.get("userId");
083
084 if (userId != null) {
085 setUserId(userId);
086 }
087
088 Long createDate = (Long)attributes.get("createDate");
089
090 if (createDate != null) {
091 setCreateDate(createDate);
092 }
093
094 Long mirrorActivityId = (Long)attributes.get("mirrorActivityId");
095
096 if (mirrorActivityId != null) {
097 setMirrorActivityId(mirrorActivityId);
098 }
099
100 Long classNameId = (Long)attributes.get("classNameId");
101
102 if (classNameId != null) {
103 setClassNameId(classNameId);
104 }
105
106 Long classPK = (Long)attributes.get("classPK");
107
108 if (classPK != null) {
109 setClassPK(classPK);
110 }
111
112 Integer type = (Integer)attributes.get("type");
113
114 if (type != null) {
115 setType(type);
116 }
117
118 String extraData = (String)attributes.get("extraData");
119
120 if (extraData != null) {
121 setExtraData(extraData);
122 }
123
124 Long receiverUserId = (Long)attributes.get("receiverUserId");
125
126 if (receiverUserId != null) {
127 setReceiverUserId(receiverUserId);
128 }
129 }
130
131
136 public long getPrimaryKey() {
137 return _socialActivity.getPrimaryKey();
138 }
139
140
145 public void setPrimaryKey(long primaryKey) {
146 _socialActivity.setPrimaryKey(primaryKey);
147 }
148
149
154 public long getActivityId() {
155 return _socialActivity.getActivityId();
156 }
157
158
163 public void setActivityId(long activityId) {
164 _socialActivity.setActivityId(activityId);
165 }
166
167
172 public long getGroupId() {
173 return _socialActivity.getGroupId();
174 }
175
176
181 public void setGroupId(long groupId) {
182 _socialActivity.setGroupId(groupId);
183 }
184
185
190 public long getCompanyId() {
191 return _socialActivity.getCompanyId();
192 }
193
194
199 public void setCompanyId(long companyId) {
200 _socialActivity.setCompanyId(companyId);
201 }
202
203
208 public long getUserId() {
209 return _socialActivity.getUserId();
210 }
211
212
217 public void setUserId(long userId) {
218 _socialActivity.setUserId(userId);
219 }
220
221
227 public java.lang.String getUserUuid()
228 throws com.liferay.portal.kernel.exception.SystemException {
229 return _socialActivity.getUserUuid();
230 }
231
232
237 public void setUserUuid(java.lang.String userUuid) {
238 _socialActivity.setUserUuid(userUuid);
239 }
240
241
246 public long getCreateDate() {
247 return _socialActivity.getCreateDate();
248 }
249
250
255 public void setCreateDate(long createDate) {
256 _socialActivity.setCreateDate(createDate);
257 }
258
259
264 public long getMirrorActivityId() {
265 return _socialActivity.getMirrorActivityId();
266 }
267
268
273 public void setMirrorActivityId(long mirrorActivityId) {
274 _socialActivity.setMirrorActivityId(mirrorActivityId);
275 }
276
277
282 public java.lang.String getClassName() {
283 return _socialActivity.getClassName();
284 }
285
286 public void setClassName(java.lang.String className) {
287 _socialActivity.setClassName(className);
288 }
289
290
295 public long getClassNameId() {
296 return _socialActivity.getClassNameId();
297 }
298
299
304 public void setClassNameId(long classNameId) {
305 _socialActivity.setClassNameId(classNameId);
306 }
307
308
313 public long getClassPK() {
314 return _socialActivity.getClassPK();
315 }
316
317
322 public void setClassPK(long classPK) {
323 _socialActivity.setClassPK(classPK);
324 }
325
326
331 public int getType() {
332 return _socialActivity.getType();
333 }
334
335
340 public void setType(int type) {
341 _socialActivity.setType(type);
342 }
343
344
349 public java.lang.String getExtraData() {
350 return _socialActivity.getExtraData();
351 }
352
353
358 public void setExtraData(java.lang.String extraData) {
359 _socialActivity.setExtraData(extraData);
360 }
361
362
367 public long getReceiverUserId() {
368 return _socialActivity.getReceiverUserId();
369 }
370
371
376 public void setReceiverUserId(long receiverUserId) {
377 _socialActivity.setReceiverUserId(receiverUserId);
378 }
379
380
386 public java.lang.String getReceiverUserUuid()
387 throws com.liferay.portal.kernel.exception.SystemException {
388 return _socialActivity.getReceiverUserUuid();
389 }
390
391
396 public void setReceiverUserUuid(java.lang.String receiverUserUuid) {
397 _socialActivity.setReceiverUserUuid(receiverUserUuid);
398 }
399
400 public boolean isNew() {
401 return _socialActivity.isNew();
402 }
403
404 public void setNew(boolean n) {
405 _socialActivity.setNew(n);
406 }
407
408 public boolean isCachedModel() {
409 return _socialActivity.isCachedModel();
410 }
411
412 public void setCachedModel(boolean cachedModel) {
413 _socialActivity.setCachedModel(cachedModel);
414 }
415
416 public boolean isEscapedModel() {
417 return _socialActivity.isEscapedModel();
418 }
419
420 public java.io.Serializable getPrimaryKeyObj() {
421 return _socialActivity.getPrimaryKeyObj();
422 }
423
424 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
425 _socialActivity.setPrimaryKeyObj(primaryKeyObj);
426 }
427
428 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
429 return _socialActivity.getExpandoBridge();
430 }
431
432 public void setExpandoBridgeAttributes(
433 com.liferay.portal.service.ServiceContext serviceContext) {
434 _socialActivity.setExpandoBridgeAttributes(serviceContext);
435 }
436
437 @Override
438 public java.lang.Object clone() {
439 return new SocialActivityWrapper((SocialActivity)_socialActivity.clone());
440 }
441
442 public int compareTo(
443 com.liferay.portlet.social.model.SocialActivity socialActivity) {
444 return _socialActivity.compareTo(socialActivity);
445 }
446
447 @Override
448 public int hashCode() {
449 return _socialActivity.hashCode();
450 }
451
452 public com.liferay.portal.model.CacheModel<com.liferay.portlet.social.model.SocialActivity> toCacheModel() {
453 return _socialActivity.toCacheModel();
454 }
455
456 public com.liferay.portlet.social.model.SocialActivity toEscapedModel() {
457 return new SocialActivityWrapper(_socialActivity.toEscapedModel());
458 }
459
460 public com.liferay.portlet.social.model.SocialActivity toUnescapedModel() {
461 return new SocialActivityWrapper(_socialActivity.toUnescapedModel());
462 }
463
464 @Override
465 public java.lang.String toString() {
466 return _socialActivity.toString();
467 }
468
469 public java.lang.String toXmlString() {
470 return _socialActivity.toXmlString();
471 }
472
473 public void persist()
474 throws com.liferay.portal.kernel.exception.SystemException {
475 _socialActivity.persist();
476 }
477
478 public com.liferay.portlet.asset.model.AssetEntry getAssetEntry()
479 throws com.liferay.portal.kernel.exception.SystemException {
480 return _socialActivity.getAssetEntry();
481 }
482
483 public void setAssetEntry(
484 com.liferay.portlet.asset.model.AssetEntry assetEntry) {
485 _socialActivity.setAssetEntry(assetEntry);
486 }
487
488
491 public SocialActivity getWrappedSocialActivity() {
492 return _socialActivity;
493 }
494
495 public SocialActivity getWrappedModel() {
496 return _socialActivity;
497 }
498
499 public void resetOriginalValues() {
500 _socialActivity.resetOriginalValues();
501 }
502
503 private SocialActivity _socialActivity;
504 }