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("activitySetId", getActivitySetId());
054 attributes.put("mirrorActivityId", getMirrorActivityId());
055 attributes.put("classNameId", getClassNameId());
056 attributes.put("classPK", getClassPK());
057 attributes.put("type", getType());
058 attributes.put("extraData", getExtraData());
059 attributes.put("receiverUserId", getReceiverUserId());
060
061 return attributes;
062 }
063
064 public void setModelAttributes(Map<String, Object> attributes) {
065 Long activityId = (Long)attributes.get("activityId");
066
067 if (activityId != null) {
068 setActivityId(activityId);
069 }
070
071 Long groupId = (Long)attributes.get("groupId");
072
073 if (groupId != null) {
074 setGroupId(groupId);
075 }
076
077 Long companyId = (Long)attributes.get("companyId");
078
079 if (companyId != null) {
080 setCompanyId(companyId);
081 }
082
083 Long userId = (Long)attributes.get("userId");
084
085 if (userId != null) {
086 setUserId(userId);
087 }
088
089 Long createDate = (Long)attributes.get("createDate");
090
091 if (createDate != null) {
092 setCreateDate(createDate);
093 }
094
095 Long activitySetId = (Long)attributes.get("activitySetId");
096
097 if (activitySetId != null) {
098 setActivitySetId(activitySetId);
099 }
100
101 Long mirrorActivityId = (Long)attributes.get("mirrorActivityId");
102
103 if (mirrorActivityId != null) {
104 setMirrorActivityId(mirrorActivityId);
105 }
106
107 Long classNameId = (Long)attributes.get("classNameId");
108
109 if (classNameId != null) {
110 setClassNameId(classNameId);
111 }
112
113 Long classPK = (Long)attributes.get("classPK");
114
115 if (classPK != null) {
116 setClassPK(classPK);
117 }
118
119 Integer type = (Integer)attributes.get("type");
120
121 if (type != null) {
122 setType(type);
123 }
124
125 String extraData = (String)attributes.get("extraData");
126
127 if (extraData != null) {
128 setExtraData(extraData);
129 }
130
131 Long receiverUserId = (Long)attributes.get("receiverUserId");
132
133 if (receiverUserId != null) {
134 setReceiverUserId(receiverUserId);
135 }
136 }
137
138
143 public long getPrimaryKey() {
144 return _socialActivity.getPrimaryKey();
145 }
146
147
152 public void setPrimaryKey(long primaryKey) {
153 _socialActivity.setPrimaryKey(primaryKey);
154 }
155
156
161 public long getActivityId() {
162 return _socialActivity.getActivityId();
163 }
164
165
170 public void setActivityId(long activityId) {
171 _socialActivity.setActivityId(activityId);
172 }
173
174
179 public long getGroupId() {
180 return _socialActivity.getGroupId();
181 }
182
183
188 public void setGroupId(long groupId) {
189 _socialActivity.setGroupId(groupId);
190 }
191
192
197 public long getCompanyId() {
198 return _socialActivity.getCompanyId();
199 }
200
201
206 public void setCompanyId(long companyId) {
207 _socialActivity.setCompanyId(companyId);
208 }
209
210
215 public long getUserId() {
216 return _socialActivity.getUserId();
217 }
218
219
224 public void setUserId(long userId) {
225 _socialActivity.setUserId(userId);
226 }
227
228
234 public java.lang.String getUserUuid()
235 throws com.liferay.portal.kernel.exception.SystemException {
236 return _socialActivity.getUserUuid();
237 }
238
239
244 public void setUserUuid(java.lang.String userUuid) {
245 _socialActivity.setUserUuid(userUuid);
246 }
247
248
253 public long getCreateDate() {
254 return _socialActivity.getCreateDate();
255 }
256
257
262 public void setCreateDate(long createDate) {
263 _socialActivity.setCreateDate(createDate);
264 }
265
266
271 public long getActivitySetId() {
272 return _socialActivity.getActivitySetId();
273 }
274
275
280 public void setActivitySetId(long activitySetId) {
281 _socialActivity.setActivitySetId(activitySetId);
282 }
283
284
289 public long getMirrorActivityId() {
290 return _socialActivity.getMirrorActivityId();
291 }
292
293
298 public void setMirrorActivityId(long mirrorActivityId) {
299 _socialActivity.setMirrorActivityId(mirrorActivityId);
300 }
301
302
307 public java.lang.String getClassName() {
308 return _socialActivity.getClassName();
309 }
310
311 public void setClassName(java.lang.String className) {
312 _socialActivity.setClassName(className);
313 }
314
315
320 public long getClassNameId() {
321 return _socialActivity.getClassNameId();
322 }
323
324
329 public void setClassNameId(long classNameId) {
330 _socialActivity.setClassNameId(classNameId);
331 }
332
333
338 public long getClassPK() {
339 return _socialActivity.getClassPK();
340 }
341
342
347 public void setClassPK(long classPK) {
348 _socialActivity.setClassPK(classPK);
349 }
350
351
356 public int getType() {
357 return _socialActivity.getType();
358 }
359
360
365 public void setType(int type) {
366 _socialActivity.setType(type);
367 }
368
369
374 public java.lang.String getExtraData() {
375 return _socialActivity.getExtraData();
376 }
377
378
383 public void setExtraData(java.lang.String extraData) {
384 _socialActivity.setExtraData(extraData);
385 }
386
387
392 public long getReceiverUserId() {
393 return _socialActivity.getReceiverUserId();
394 }
395
396
401 public void setReceiverUserId(long receiverUserId) {
402 _socialActivity.setReceiverUserId(receiverUserId);
403 }
404
405
411 public java.lang.String getReceiverUserUuid()
412 throws com.liferay.portal.kernel.exception.SystemException {
413 return _socialActivity.getReceiverUserUuid();
414 }
415
416
421 public void setReceiverUserUuid(java.lang.String receiverUserUuid) {
422 _socialActivity.setReceiverUserUuid(receiverUserUuid);
423 }
424
425 public boolean isNew() {
426 return _socialActivity.isNew();
427 }
428
429 public void setNew(boolean n) {
430 _socialActivity.setNew(n);
431 }
432
433 public boolean isCachedModel() {
434 return _socialActivity.isCachedModel();
435 }
436
437 public void setCachedModel(boolean cachedModel) {
438 _socialActivity.setCachedModel(cachedModel);
439 }
440
441 public boolean isEscapedModel() {
442 return _socialActivity.isEscapedModel();
443 }
444
445 public java.io.Serializable getPrimaryKeyObj() {
446 return _socialActivity.getPrimaryKeyObj();
447 }
448
449 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
450 _socialActivity.setPrimaryKeyObj(primaryKeyObj);
451 }
452
453 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
454 return _socialActivity.getExpandoBridge();
455 }
456
457 public void setExpandoBridgeAttributes(
458 com.liferay.portal.model.BaseModel<?> baseModel) {
459 _socialActivity.setExpandoBridgeAttributes(baseModel);
460 }
461
462 public void setExpandoBridgeAttributes(
463 com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
464 _socialActivity.setExpandoBridgeAttributes(expandoBridge);
465 }
466
467 public void setExpandoBridgeAttributes(
468 com.liferay.portal.service.ServiceContext serviceContext) {
469 _socialActivity.setExpandoBridgeAttributes(serviceContext);
470 }
471
472 @Override
473 public java.lang.Object clone() {
474 return new SocialActivityWrapper((SocialActivity)_socialActivity.clone());
475 }
476
477 public int compareTo(
478 com.liferay.portlet.social.model.SocialActivity socialActivity) {
479 return _socialActivity.compareTo(socialActivity);
480 }
481
482 @Override
483 public int hashCode() {
484 return _socialActivity.hashCode();
485 }
486
487 public com.liferay.portal.model.CacheModel<com.liferay.portlet.social.model.SocialActivity> toCacheModel() {
488 return _socialActivity.toCacheModel();
489 }
490
491 public com.liferay.portlet.social.model.SocialActivity toEscapedModel() {
492 return new SocialActivityWrapper(_socialActivity.toEscapedModel());
493 }
494
495 public com.liferay.portlet.social.model.SocialActivity toUnescapedModel() {
496 return new SocialActivityWrapper(_socialActivity.toUnescapedModel());
497 }
498
499 @Override
500 public java.lang.String toString() {
501 return _socialActivity.toString();
502 }
503
504 public java.lang.String toXmlString() {
505 return _socialActivity.toXmlString();
506 }
507
508 public void persist()
509 throws com.liferay.portal.kernel.exception.SystemException {
510 _socialActivity.persist();
511 }
512
513 public com.liferay.portlet.asset.model.AssetEntry getAssetEntry()
514 throws com.liferay.portal.kernel.exception.SystemException {
515 return _socialActivity.getAssetEntry();
516 }
517
518 public java.lang.String getExtraDataValue(java.lang.String key)
519 throws com.liferay.portal.kernel.json.JSONException {
520 return _socialActivity.getExtraDataValue(key);
521 }
522
523 public boolean isClassName(java.lang.String className) {
524 return _socialActivity.isClassName(className);
525 }
526
527 public void setAssetEntry(
528 com.liferay.portlet.asset.model.AssetEntry assetEntry) {
529 _socialActivity.setAssetEntry(assetEntry);
530 }
531
532
535 public SocialActivity getWrappedSocialActivity() {
536 return _socialActivity;
537 }
538
539 public SocialActivity getWrappedModel() {
540 return _socialActivity;
541 }
542
543 public void resetOriginalValues() {
544 _socialActivity.resetOriginalValues();
545 }
546
547 private SocialActivity _socialActivity;
548 }