001
014
015 package com.liferay.portlet.social.model;
016
017 import com.liferay.portal.kernel.util.Validator;
018 import com.liferay.portal.model.ModelWrapper;
019
020 import java.util.HashMap;
021 import java.util.Map;
022
023
032 public class SocialActivitySettingWrapper implements SocialActivitySetting,
033 ModelWrapper<SocialActivitySetting> {
034 public SocialActivitySettingWrapper(
035 SocialActivitySetting socialActivitySetting) {
036 _socialActivitySetting = socialActivitySetting;
037 }
038
039 public Class<?> getModelClass() {
040 return SocialActivitySetting.class;
041 }
042
043 public String getModelClassName() {
044 return SocialActivitySetting.class.getName();
045 }
046
047 public Map<String, Object> getModelAttributes() {
048 Map<String, Object> attributes = new HashMap<String, Object>();
049
050 attributes.put("activitySettingId", getActivitySettingId());
051 attributes.put("groupId", getGroupId());
052 attributes.put("companyId", getCompanyId());
053 attributes.put("classNameId", getClassNameId());
054 attributes.put("activityType", getActivityType());
055 attributes.put("name", getName());
056 attributes.put("value", getValue());
057
058 return attributes;
059 }
060
061 public void setModelAttributes(Map<String, Object> attributes) {
062 Long activitySettingId = (Long)attributes.get("activitySettingId");
063
064 if (activitySettingId != null) {
065 setActivitySettingId(activitySettingId);
066 }
067
068 Long groupId = (Long)attributes.get("groupId");
069
070 if (groupId != null) {
071 setGroupId(groupId);
072 }
073
074 Long companyId = (Long)attributes.get("companyId");
075
076 if (companyId != null) {
077 setCompanyId(companyId);
078 }
079
080 Long classNameId = (Long)attributes.get("classNameId");
081
082 if (classNameId != null) {
083 setClassNameId(classNameId);
084 }
085
086 Integer activityType = (Integer)attributes.get("activityType");
087
088 if (activityType != null) {
089 setActivityType(activityType);
090 }
091
092 String name = (String)attributes.get("name");
093
094 if (name != null) {
095 setName(name);
096 }
097
098 String value = (String)attributes.get("value");
099
100 if (value != null) {
101 setValue(value);
102 }
103 }
104
105
110 public long getPrimaryKey() {
111 return _socialActivitySetting.getPrimaryKey();
112 }
113
114
119 public void setPrimaryKey(long primaryKey) {
120 _socialActivitySetting.setPrimaryKey(primaryKey);
121 }
122
123
128 public long getActivitySettingId() {
129 return _socialActivitySetting.getActivitySettingId();
130 }
131
132
137 public void setActivitySettingId(long activitySettingId) {
138 _socialActivitySetting.setActivitySettingId(activitySettingId);
139 }
140
141
146 public long getGroupId() {
147 return _socialActivitySetting.getGroupId();
148 }
149
150
155 public void setGroupId(long groupId) {
156 _socialActivitySetting.setGroupId(groupId);
157 }
158
159
164 public long getCompanyId() {
165 return _socialActivitySetting.getCompanyId();
166 }
167
168
173 public void setCompanyId(long companyId) {
174 _socialActivitySetting.setCompanyId(companyId);
175 }
176
177
182 public java.lang.String getClassName() {
183 return _socialActivitySetting.getClassName();
184 }
185
186 public void setClassName(java.lang.String className) {
187 _socialActivitySetting.setClassName(className);
188 }
189
190
195 public long getClassNameId() {
196 return _socialActivitySetting.getClassNameId();
197 }
198
199
204 public void setClassNameId(long classNameId) {
205 _socialActivitySetting.setClassNameId(classNameId);
206 }
207
208
213 public int getActivityType() {
214 return _socialActivitySetting.getActivityType();
215 }
216
217
222 public void setActivityType(int activityType) {
223 _socialActivitySetting.setActivityType(activityType);
224 }
225
226
231 public java.lang.String getName() {
232 return _socialActivitySetting.getName();
233 }
234
235
240 public void setName(java.lang.String name) {
241 _socialActivitySetting.setName(name);
242 }
243
244
249 public java.lang.String getValue() {
250 return _socialActivitySetting.getValue();
251 }
252
253
258 public void setValue(java.lang.String value) {
259 _socialActivitySetting.setValue(value);
260 }
261
262 public boolean isNew() {
263 return _socialActivitySetting.isNew();
264 }
265
266 public void setNew(boolean n) {
267 _socialActivitySetting.setNew(n);
268 }
269
270 public boolean isCachedModel() {
271 return _socialActivitySetting.isCachedModel();
272 }
273
274 public void setCachedModel(boolean cachedModel) {
275 _socialActivitySetting.setCachedModel(cachedModel);
276 }
277
278 public boolean isEscapedModel() {
279 return _socialActivitySetting.isEscapedModel();
280 }
281
282 public java.io.Serializable getPrimaryKeyObj() {
283 return _socialActivitySetting.getPrimaryKeyObj();
284 }
285
286 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
287 _socialActivitySetting.setPrimaryKeyObj(primaryKeyObj);
288 }
289
290 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
291 return _socialActivitySetting.getExpandoBridge();
292 }
293
294 public void setExpandoBridgeAttributes(
295 com.liferay.portal.service.ServiceContext serviceContext) {
296 _socialActivitySetting.setExpandoBridgeAttributes(serviceContext);
297 }
298
299 @Override
300 public java.lang.Object clone() {
301 return new SocialActivitySettingWrapper((SocialActivitySetting)_socialActivitySetting.clone());
302 }
303
304 public int compareTo(
305 com.liferay.portlet.social.model.SocialActivitySetting socialActivitySetting) {
306 return _socialActivitySetting.compareTo(socialActivitySetting);
307 }
308
309 @Override
310 public int hashCode() {
311 return _socialActivitySetting.hashCode();
312 }
313
314 public com.liferay.portal.model.CacheModel<com.liferay.portlet.social.model.SocialActivitySetting> toCacheModel() {
315 return _socialActivitySetting.toCacheModel();
316 }
317
318 public com.liferay.portlet.social.model.SocialActivitySetting toEscapedModel() {
319 return new SocialActivitySettingWrapper(_socialActivitySetting.toEscapedModel());
320 }
321
322 public com.liferay.portlet.social.model.SocialActivitySetting toUnescapedModel() {
323 return new SocialActivitySettingWrapper(_socialActivitySetting.toUnescapedModel());
324 }
325
326 @Override
327 public java.lang.String toString() {
328 return _socialActivitySetting.toString();
329 }
330
331 public java.lang.String toXmlString() {
332 return _socialActivitySetting.toXmlString();
333 }
334
335 public void persist()
336 throws com.liferay.portal.kernel.exception.SystemException {
337 _socialActivitySetting.persist();
338 }
339
340 @Override
341 public boolean equals(Object obj) {
342 if (this == obj) {
343 return true;
344 }
345
346 if (!(obj instanceof SocialActivitySettingWrapper)) {
347 return false;
348 }
349
350 SocialActivitySettingWrapper socialActivitySettingWrapper = (SocialActivitySettingWrapper)obj;
351
352 if (Validator.equals(_socialActivitySetting,
353 socialActivitySettingWrapper._socialActivitySetting)) {
354 return true;
355 }
356
357 return false;
358 }
359
360
363 public SocialActivitySetting getWrappedSocialActivitySetting() {
364 return _socialActivitySetting;
365 }
366
367 public SocialActivitySetting getWrappedModel() {
368 return _socialActivitySetting;
369 }
370
371 public void resetOriginalValues() {
372 _socialActivitySetting.resetOriginalValues();
373 }
374
375 private SocialActivitySetting _socialActivitySetting;
376 }