001
014
015 package com.liferay.portal.model;
016
017 import com.liferay.portal.kernel.util.Validator;
018
019 import java.util.HashMap;
020 import java.util.Map;
021
022
031 public class UserNotificationEventWrapper implements UserNotificationEvent,
032 ModelWrapper<UserNotificationEvent> {
033 public UserNotificationEventWrapper(
034 UserNotificationEvent userNotificationEvent) {
035 _userNotificationEvent = userNotificationEvent;
036 }
037
038 public Class<?> getModelClass() {
039 return UserNotificationEvent.class;
040 }
041
042 public String getModelClassName() {
043 return UserNotificationEvent.class.getName();
044 }
045
046 public Map<String, Object> getModelAttributes() {
047 Map<String, Object> attributes = new HashMap<String, Object>();
048
049 attributes.put("uuid", getUuid());
050 attributes.put("userNotificationEventId", getUserNotificationEventId());
051 attributes.put("companyId", getCompanyId());
052 attributes.put("userId", getUserId());
053 attributes.put("type", getType());
054 attributes.put("timestamp", getTimestamp());
055 attributes.put("deliverBy", getDeliverBy());
056 attributes.put("payload", getPayload());
057 attributes.put("archived", getArchived());
058
059 return attributes;
060 }
061
062 public void setModelAttributes(Map<String, Object> attributes) {
063 String uuid = (String)attributes.get("uuid");
064
065 if (uuid != null) {
066 setUuid(uuid);
067 }
068
069 Long userNotificationEventId = (Long)attributes.get(
070 "userNotificationEventId");
071
072 if (userNotificationEventId != null) {
073 setUserNotificationEventId(userNotificationEventId);
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 String type = (String)attributes.get("type");
089
090 if (type != null) {
091 setType(type);
092 }
093
094 Long timestamp = (Long)attributes.get("timestamp");
095
096 if (timestamp != null) {
097 setTimestamp(timestamp);
098 }
099
100 Long deliverBy = (Long)attributes.get("deliverBy");
101
102 if (deliverBy != null) {
103 setDeliverBy(deliverBy);
104 }
105
106 String payload = (String)attributes.get("payload");
107
108 if (payload != null) {
109 setPayload(payload);
110 }
111
112 Boolean archived = (Boolean)attributes.get("archived");
113
114 if (archived != null) {
115 setArchived(archived);
116 }
117 }
118
119
124 public long getPrimaryKey() {
125 return _userNotificationEvent.getPrimaryKey();
126 }
127
128
133 public void setPrimaryKey(long primaryKey) {
134 _userNotificationEvent.setPrimaryKey(primaryKey);
135 }
136
137
142 public java.lang.String getUuid() {
143 return _userNotificationEvent.getUuid();
144 }
145
146
151 public void setUuid(java.lang.String uuid) {
152 _userNotificationEvent.setUuid(uuid);
153 }
154
155
160 public long getUserNotificationEventId() {
161 return _userNotificationEvent.getUserNotificationEventId();
162 }
163
164
169 public void setUserNotificationEventId(long userNotificationEventId) {
170 _userNotificationEvent.setUserNotificationEventId(userNotificationEventId);
171 }
172
173
178 public long getCompanyId() {
179 return _userNotificationEvent.getCompanyId();
180 }
181
182
187 public void setCompanyId(long companyId) {
188 _userNotificationEvent.setCompanyId(companyId);
189 }
190
191
196 public long getUserId() {
197 return _userNotificationEvent.getUserId();
198 }
199
200
205 public void setUserId(long userId) {
206 _userNotificationEvent.setUserId(userId);
207 }
208
209
215 public java.lang.String getUserUuid()
216 throws com.liferay.portal.kernel.exception.SystemException {
217 return _userNotificationEvent.getUserUuid();
218 }
219
220
225 public void setUserUuid(java.lang.String userUuid) {
226 _userNotificationEvent.setUserUuid(userUuid);
227 }
228
229
234 public java.lang.String getType() {
235 return _userNotificationEvent.getType();
236 }
237
238
243 public void setType(java.lang.String type) {
244 _userNotificationEvent.setType(type);
245 }
246
247
252 public long getTimestamp() {
253 return _userNotificationEvent.getTimestamp();
254 }
255
256
261 public void setTimestamp(long timestamp) {
262 _userNotificationEvent.setTimestamp(timestamp);
263 }
264
265
270 public long getDeliverBy() {
271 return _userNotificationEvent.getDeliverBy();
272 }
273
274
279 public void setDeliverBy(long deliverBy) {
280 _userNotificationEvent.setDeliverBy(deliverBy);
281 }
282
283
288 public java.lang.String getPayload() {
289 return _userNotificationEvent.getPayload();
290 }
291
292
297 public void setPayload(java.lang.String payload) {
298 _userNotificationEvent.setPayload(payload);
299 }
300
301
306 public boolean getArchived() {
307 return _userNotificationEvent.getArchived();
308 }
309
310
315 public boolean isArchived() {
316 return _userNotificationEvent.isArchived();
317 }
318
319
324 public void setArchived(boolean archived) {
325 _userNotificationEvent.setArchived(archived);
326 }
327
328 public boolean isNew() {
329 return _userNotificationEvent.isNew();
330 }
331
332 public void setNew(boolean n) {
333 _userNotificationEvent.setNew(n);
334 }
335
336 public boolean isCachedModel() {
337 return _userNotificationEvent.isCachedModel();
338 }
339
340 public void setCachedModel(boolean cachedModel) {
341 _userNotificationEvent.setCachedModel(cachedModel);
342 }
343
344 public boolean isEscapedModel() {
345 return _userNotificationEvent.isEscapedModel();
346 }
347
348 public java.io.Serializable getPrimaryKeyObj() {
349 return _userNotificationEvent.getPrimaryKeyObj();
350 }
351
352 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
353 _userNotificationEvent.setPrimaryKeyObj(primaryKeyObj);
354 }
355
356 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
357 return _userNotificationEvent.getExpandoBridge();
358 }
359
360 public void setExpandoBridgeAttributes(
361 com.liferay.portal.service.ServiceContext serviceContext) {
362 _userNotificationEvent.setExpandoBridgeAttributes(serviceContext);
363 }
364
365 @Override
366 public java.lang.Object clone() {
367 return new UserNotificationEventWrapper((UserNotificationEvent)_userNotificationEvent.clone());
368 }
369
370 public int compareTo(
371 com.liferay.portal.model.UserNotificationEvent userNotificationEvent) {
372 return _userNotificationEvent.compareTo(userNotificationEvent);
373 }
374
375 @Override
376 public int hashCode() {
377 return _userNotificationEvent.hashCode();
378 }
379
380 public com.liferay.portal.model.CacheModel<com.liferay.portal.model.UserNotificationEvent> toCacheModel() {
381 return _userNotificationEvent.toCacheModel();
382 }
383
384 public com.liferay.portal.model.UserNotificationEvent toEscapedModel() {
385 return new UserNotificationEventWrapper(_userNotificationEvent.toEscapedModel());
386 }
387
388 public com.liferay.portal.model.UserNotificationEvent toUnescapedModel() {
389 return new UserNotificationEventWrapper(_userNotificationEvent.toUnescapedModel());
390 }
391
392 @Override
393 public java.lang.String toString() {
394 return _userNotificationEvent.toString();
395 }
396
397 public java.lang.String toXmlString() {
398 return _userNotificationEvent.toXmlString();
399 }
400
401 public void persist()
402 throws com.liferay.portal.kernel.exception.SystemException {
403 _userNotificationEvent.persist();
404 }
405
406 @Override
407 public boolean equals(Object obj) {
408 if (this == obj) {
409 return true;
410 }
411
412 if (!(obj instanceof UserNotificationEventWrapper)) {
413 return false;
414 }
415
416 UserNotificationEventWrapper userNotificationEventWrapper = (UserNotificationEventWrapper)obj;
417
418 if (Validator.equals(_userNotificationEvent,
419 userNotificationEventWrapper._userNotificationEvent)) {
420 return true;
421 }
422
423 return false;
424 }
425
426
429 public UserNotificationEvent getWrappedUserNotificationEvent() {
430 return _userNotificationEvent;
431 }
432
433 public UserNotificationEvent getWrappedModel() {
434 return _userNotificationEvent;
435 }
436
437 public void resetOriginalValues() {
438 _userNotificationEvent.resetOriginalValues();
439 }
440
441 private UserNotificationEvent _userNotificationEvent;
442 }