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("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            /**
132            * Returns the primary key of this social activity.
133            *
134            * @return the primary key of this social activity
135            */
136            public long getPrimaryKey() {
137                    return _socialActivity.getPrimaryKey();
138            }
139    
140            /**
141            * Sets the primary key of this social activity.
142            *
143            * @param primaryKey the primary key of this social activity
144            */
145            public void setPrimaryKey(long primaryKey) {
146                    _socialActivity.setPrimaryKey(primaryKey);
147            }
148    
149            /**
150            * Returns the activity ID of this social activity.
151            *
152            * @return the activity ID of this social activity
153            */
154            public long getActivityId() {
155                    return _socialActivity.getActivityId();
156            }
157    
158            /**
159            * Sets the activity ID of this social activity.
160            *
161            * @param activityId the activity ID of this social activity
162            */
163            public void setActivityId(long activityId) {
164                    _socialActivity.setActivityId(activityId);
165            }
166    
167            /**
168            * Returns the group ID of this social activity.
169            *
170            * @return the group ID of this social activity
171            */
172            public long getGroupId() {
173                    return _socialActivity.getGroupId();
174            }
175    
176            /**
177            * Sets the group ID of this social activity.
178            *
179            * @param groupId the group ID of this social activity
180            */
181            public void setGroupId(long groupId) {
182                    _socialActivity.setGroupId(groupId);
183            }
184    
185            /**
186            * Returns the company ID of this social activity.
187            *
188            * @return the company ID of this social activity
189            */
190            public long getCompanyId() {
191                    return _socialActivity.getCompanyId();
192            }
193    
194            /**
195            * Sets the company ID of this social activity.
196            *
197            * @param companyId the company ID of this social activity
198            */
199            public void setCompanyId(long companyId) {
200                    _socialActivity.setCompanyId(companyId);
201            }
202    
203            /**
204            * Returns the user ID of this social activity.
205            *
206            * @return the user ID of this social activity
207            */
208            public long getUserId() {
209                    return _socialActivity.getUserId();
210            }
211    
212            /**
213            * Sets the user ID of this social activity.
214            *
215            * @param userId the user ID of this social activity
216            */
217            public void setUserId(long userId) {
218                    _socialActivity.setUserId(userId);
219            }
220    
221            /**
222            * Returns the user uuid of this social activity.
223            *
224            * @return the user uuid of this social activity
225            * @throws SystemException if a system exception occurred
226            */
227            public java.lang.String getUserUuid()
228                    throws com.liferay.portal.kernel.exception.SystemException {
229                    return _socialActivity.getUserUuid();
230            }
231    
232            /**
233            * Sets the user uuid of this social activity.
234            *
235            * @param userUuid the user uuid of this social activity
236            */
237            public void setUserUuid(java.lang.String userUuid) {
238                    _socialActivity.setUserUuid(userUuid);
239            }
240    
241            /**
242            * Returns the create date of this social activity.
243            *
244            * @return the create date of this social activity
245            */
246            public long getCreateDate() {
247                    return _socialActivity.getCreateDate();
248            }
249    
250            /**
251            * Sets the create date of this social activity.
252            *
253            * @param createDate the create date of this social activity
254            */
255            public void setCreateDate(long createDate) {
256                    _socialActivity.setCreateDate(createDate);
257            }
258    
259            /**
260            * Returns the mirror activity ID of this social activity.
261            *
262            * @return the mirror activity ID of this social activity
263            */
264            public long getMirrorActivityId() {
265                    return _socialActivity.getMirrorActivityId();
266            }
267    
268            /**
269            * Sets the mirror activity ID of this social activity.
270            *
271            * @param mirrorActivityId the mirror activity ID of this social activity
272            */
273            public void setMirrorActivityId(long mirrorActivityId) {
274                    _socialActivity.setMirrorActivityId(mirrorActivityId);
275            }
276    
277            /**
278            * Returns the fully qualified class name of this social activity.
279            *
280            * @return the fully qualified class name of this social activity
281            */
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            /**
291            * Returns the class name ID of this social activity.
292            *
293            * @return the class name ID of this social activity
294            */
295            public long getClassNameId() {
296                    return _socialActivity.getClassNameId();
297            }
298    
299            /**
300            * Sets the class name ID of this social activity.
301            *
302            * @param classNameId the class name ID of this social activity
303            */
304            public void setClassNameId(long classNameId) {
305                    _socialActivity.setClassNameId(classNameId);
306            }
307    
308            /**
309            * Returns the class p k of this social activity.
310            *
311            * @return the class p k of this social activity
312            */
313            public long getClassPK() {
314                    return _socialActivity.getClassPK();
315            }
316    
317            /**
318            * Sets the class p k of this social activity.
319            *
320            * @param classPK the class p k of this social activity
321            */
322            public void setClassPK(long classPK) {
323                    _socialActivity.setClassPK(classPK);
324            }
325    
326            /**
327            * Returns the type of this social activity.
328            *
329            * @return the type of this social activity
330            */
331            public int getType() {
332                    return _socialActivity.getType();
333            }
334    
335            /**
336            * Sets the type of this social activity.
337            *
338            * @param type the type of this social activity
339            */
340            public void setType(int type) {
341                    _socialActivity.setType(type);
342            }
343    
344            /**
345            * Returns the extra data of this social activity.
346            *
347            * @return the extra data of this social activity
348            */
349            public java.lang.String getExtraData() {
350                    return _socialActivity.getExtraData();
351            }
352    
353            /**
354            * Sets the extra data of this social activity.
355            *
356            * @param extraData the extra data of this social activity
357            */
358            public void setExtraData(java.lang.String extraData) {
359                    _socialActivity.setExtraData(extraData);
360            }
361    
362            /**
363            * Returns the receiver user ID of this social activity.
364            *
365            * @return the receiver user ID of this social activity
366            */
367            public long getReceiverUserId() {
368                    return _socialActivity.getReceiverUserId();
369            }
370    
371            /**
372            * Sets the receiver user ID of this social activity.
373            *
374            * @param receiverUserId the receiver user ID of this social activity
375            */
376            public void setReceiverUserId(long receiverUserId) {
377                    _socialActivity.setReceiverUserId(receiverUserId);
378            }
379    
380            /**
381            * Returns the receiver user uuid of this social activity.
382            *
383            * @return the receiver user uuid of this social activity
384            * @throws SystemException if a system exception occurred
385            */
386            public java.lang.String getReceiverUserUuid()
387                    throws com.liferay.portal.kernel.exception.SystemException {
388                    return _socialActivity.getReceiverUserUuid();
389            }
390    
391            /**
392            * Sets the receiver user uuid of this social activity.
393            *
394            * @param receiverUserUuid the receiver user uuid of this social activity
395            */
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            @Override
461            public java.lang.String toString() {
462                    return _socialActivity.toString();
463            }
464    
465            public java.lang.String toXmlString() {
466                    return _socialActivity.toXmlString();
467            }
468    
469            public void persist()
470                    throws com.liferay.portal.kernel.exception.SystemException {
471                    _socialActivity.persist();
472            }
473    
474            public com.liferay.portlet.asset.model.AssetEntry getAssetEntry()
475                    throws com.liferay.portal.kernel.exception.SystemException {
476                    return _socialActivity.getAssetEntry();
477            }
478    
479            public void setAssetEntry(
480                    com.liferay.portlet.asset.model.AssetEntry assetEntry) {
481                    _socialActivity.setAssetEntry(assetEntry);
482            }
483    
484            /**
485             * @deprecated Renamed to {@link #getWrappedModel}
486             */
487            public SocialActivity getWrappedSocialActivity() {
488                    return _socialActivity;
489            }
490    
491            public SocialActivity getWrappedModel() {
492                    return _socialActivity;
493            }
494    
495            public void resetOriginalValues() {
496                    _socialActivity.resetOriginalValues();
497            }
498    
499            private SocialActivity _socialActivity;
500    }