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 com.liferay.portal.model.ModelWrapper;
018    
019    import java.util.HashMap;
020    import java.util.Map;
021    
022    /**
023     * <p>
024     * This class is a wrapper for {@link SocialActivity}.
025     * </p>
026     *
027     * @author    Brian Wing Shun Chan
028     * @see       SocialActivity
029     * @generated
030     */
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            /**
139            * Returns the primary key of this social activity.
140            *
141            * @return the primary key of this social activity
142            */
143            public long getPrimaryKey() {
144                    return _socialActivity.getPrimaryKey();
145            }
146    
147            /**
148            * Sets the primary key of this social activity.
149            *
150            * @param primaryKey the primary key of this social activity
151            */
152            public void setPrimaryKey(long primaryKey) {
153                    _socialActivity.setPrimaryKey(primaryKey);
154            }
155    
156            /**
157            * Returns the activity ID of this social activity.
158            *
159            * @return the activity ID of this social activity
160            */
161            public long getActivityId() {
162                    return _socialActivity.getActivityId();
163            }
164    
165            /**
166            * Sets the activity ID of this social activity.
167            *
168            * @param activityId the activity ID of this social activity
169            */
170            public void setActivityId(long activityId) {
171                    _socialActivity.setActivityId(activityId);
172            }
173    
174            /**
175            * Returns the group ID of this social activity.
176            *
177            * @return the group ID of this social activity
178            */
179            public long getGroupId() {
180                    return _socialActivity.getGroupId();
181            }
182    
183            /**
184            * Sets the group ID of this social activity.
185            *
186            * @param groupId the group ID of this social activity
187            */
188            public void setGroupId(long groupId) {
189                    _socialActivity.setGroupId(groupId);
190            }
191    
192            /**
193            * Returns the company ID of this social activity.
194            *
195            * @return the company ID of this social activity
196            */
197            public long getCompanyId() {
198                    return _socialActivity.getCompanyId();
199            }
200    
201            /**
202            * Sets the company ID of this social activity.
203            *
204            * @param companyId the company ID of this social activity
205            */
206            public void setCompanyId(long companyId) {
207                    _socialActivity.setCompanyId(companyId);
208            }
209    
210            /**
211            * Returns the user ID of this social activity.
212            *
213            * @return the user ID of this social activity
214            */
215            public long getUserId() {
216                    return _socialActivity.getUserId();
217            }
218    
219            /**
220            * Sets the user ID of this social activity.
221            *
222            * @param userId the user ID of this social activity
223            */
224            public void setUserId(long userId) {
225                    _socialActivity.setUserId(userId);
226            }
227    
228            /**
229            * Returns the user uuid of this social activity.
230            *
231            * @return the user uuid of this social activity
232            * @throws SystemException if a system exception occurred
233            */
234            public java.lang.String getUserUuid()
235                    throws com.liferay.portal.kernel.exception.SystemException {
236                    return _socialActivity.getUserUuid();
237            }
238    
239            /**
240            * Sets the user uuid of this social activity.
241            *
242            * @param userUuid the user uuid of this social activity
243            */
244            public void setUserUuid(java.lang.String userUuid) {
245                    _socialActivity.setUserUuid(userUuid);
246            }
247    
248            /**
249            * Returns the create date of this social activity.
250            *
251            * @return the create date of this social activity
252            */
253            public long getCreateDate() {
254                    return _socialActivity.getCreateDate();
255            }
256    
257            /**
258            * Sets the create date of this social activity.
259            *
260            * @param createDate the create date of this social activity
261            */
262            public void setCreateDate(long createDate) {
263                    _socialActivity.setCreateDate(createDate);
264            }
265    
266            /**
267            * Returns the activity set ID of this social activity.
268            *
269            * @return the activity set ID of this social activity
270            */
271            public long getActivitySetId() {
272                    return _socialActivity.getActivitySetId();
273            }
274    
275            /**
276            * Sets the activity set ID of this social activity.
277            *
278            * @param activitySetId the activity set ID of this social activity
279            */
280            public void setActivitySetId(long activitySetId) {
281                    _socialActivity.setActivitySetId(activitySetId);
282            }
283    
284            /**
285            * Returns the mirror activity ID of this social activity.
286            *
287            * @return the mirror activity ID of this social activity
288            */
289            public long getMirrorActivityId() {
290                    return _socialActivity.getMirrorActivityId();
291            }
292    
293            /**
294            * Sets the mirror activity ID of this social activity.
295            *
296            * @param mirrorActivityId the mirror activity ID of this social activity
297            */
298            public void setMirrorActivityId(long mirrorActivityId) {
299                    _socialActivity.setMirrorActivityId(mirrorActivityId);
300            }
301    
302            /**
303            * Returns the fully qualified class name of this social activity.
304            *
305            * @return the fully qualified class name of this social activity
306            */
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            /**
316            * Returns the class name ID of this social activity.
317            *
318            * @return the class name ID of this social activity
319            */
320            public long getClassNameId() {
321                    return _socialActivity.getClassNameId();
322            }
323    
324            /**
325            * Sets the class name ID of this social activity.
326            *
327            * @param classNameId the class name ID of this social activity
328            */
329            public void setClassNameId(long classNameId) {
330                    _socialActivity.setClassNameId(classNameId);
331            }
332    
333            /**
334            * Returns the class p k of this social activity.
335            *
336            * @return the class p k of this social activity
337            */
338            public long getClassPK() {
339                    return _socialActivity.getClassPK();
340            }
341    
342            /**
343            * Sets the class p k of this social activity.
344            *
345            * @param classPK the class p k of this social activity
346            */
347            public void setClassPK(long classPK) {
348                    _socialActivity.setClassPK(classPK);
349            }
350    
351            /**
352            * Returns the type of this social activity.
353            *
354            * @return the type of this social activity
355            */
356            public int getType() {
357                    return _socialActivity.getType();
358            }
359    
360            /**
361            * Sets the type of this social activity.
362            *
363            * @param type the type of this social activity
364            */
365            public void setType(int type) {
366                    _socialActivity.setType(type);
367            }
368    
369            /**
370            * Returns the extra data of this social activity.
371            *
372            * @return the extra data of this social activity
373            */
374            public java.lang.String getExtraData() {
375                    return _socialActivity.getExtraData();
376            }
377    
378            /**
379            * Sets the extra data of this social activity.
380            *
381            * @param extraData the extra data of this social activity
382            */
383            public void setExtraData(java.lang.String extraData) {
384                    _socialActivity.setExtraData(extraData);
385            }
386    
387            /**
388            * Returns the receiver user ID of this social activity.
389            *
390            * @return the receiver user ID of this social activity
391            */
392            public long getReceiverUserId() {
393                    return _socialActivity.getReceiverUserId();
394            }
395    
396            /**
397            * Sets the receiver user ID of this social activity.
398            *
399            * @param receiverUserId the receiver user ID of this social activity
400            */
401            public void setReceiverUserId(long receiverUserId) {
402                    _socialActivity.setReceiverUserId(receiverUserId);
403            }
404    
405            /**
406            * Returns the receiver user uuid of this social activity.
407            *
408            * @return the receiver user uuid of this social activity
409            * @throws SystemException if a system exception occurred
410            */
411            public java.lang.String getReceiverUserUuid()
412                    throws com.liferay.portal.kernel.exception.SystemException {
413                    return _socialActivity.getReceiverUserUuid();
414            }
415    
416            /**
417            * Sets the receiver user uuid of this social activity.
418            *
419            * @param receiverUserUuid the receiver user uuid of this social activity
420            */
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.service.ServiceContext serviceContext) {
459                    _socialActivity.setExpandoBridgeAttributes(serviceContext);
460            }
461    
462            @Override
463            public java.lang.Object clone() {
464                    return new SocialActivityWrapper((SocialActivity)_socialActivity.clone());
465            }
466    
467            public int compareTo(
468                    com.liferay.portlet.social.model.SocialActivity socialActivity) {
469                    return _socialActivity.compareTo(socialActivity);
470            }
471    
472            @Override
473            public int hashCode() {
474                    return _socialActivity.hashCode();
475            }
476    
477            public com.liferay.portal.model.CacheModel<com.liferay.portlet.social.model.SocialActivity> toCacheModel() {
478                    return _socialActivity.toCacheModel();
479            }
480    
481            public com.liferay.portlet.social.model.SocialActivity toEscapedModel() {
482                    return new SocialActivityWrapper(_socialActivity.toEscapedModel());
483            }
484    
485            public com.liferay.portlet.social.model.SocialActivity toUnescapedModel() {
486                    return new SocialActivityWrapper(_socialActivity.toUnescapedModel());
487            }
488    
489            @Override
490            public java.lang.String toString() {
491                    return _socialActivity.toString();
492            }
493    
494            public java.lang.String toXmlString() {
495                    return _socialActivity.toXmlString();
496            }
497    
498            public void persist()
499                    throws com.liferay.portal.kernel.exception.SystemException {
500                    _socialActivity.persist();
501            }
502    
503            public com.liferay.portlet.asset.model.AssetEntry getAssetEntry()
504                    throws com.liferay.portal.kernel.exception.SystemException {
505                    return _socialActivity.getAssetEntry();
506            }
507    
508            public void setAssetEntry(
509                    com.liferay.portlet.asset.model.AssetEntry assetEntry) {
510                    _socialActivity.setAssetEntry(assetEntry);
511            }
512    
513            /**
514             * @deprecated Renamed to {@link #getWrappedModel}
515             */
516            public SocialActivity getWrappedSocialActivity() {
517                    return _socialActivity;
518            }
519    
520            public SocialActivity getWrappedModel() {
521                    return _socialActivity;
522            }
523    
524            public void resetOriginalValues() {
525                    _socialActivity.resetOriginalValues();
526            }
527    
528            private SocialActivity _socialActivity;
529    }