001
014
015 package com.liferay.portal.model;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.util.Validator;
020 import com.liferay.portal.service.ServiceContext;
021
022 import com.liferay.portlet.expando.model.ExpandoBridge;
023
024 import java.io.Serializable;
025
026 import java.util.HashMap;
027 import java.util.Map;
028
029
038 @ProviderType
039 public class UserNotificationEventWrapper implements UserNotificationEvent,
040 ModelWrapper<UserNotificationEvent> {
041 public UserNotificationEventWrapper(
042 UserNotificationEvent userNotificationEvent) {
043 _userNotificationEvent = userNotificationEvent;
044 }
045
046 @Override
047 public Class<?> getModelClass() {
048 return UserNotificationEvent.class;
049 }
050
051 @Override
052 public String getModelClassName() {
053 return UserNotificationEvent.class.getName();
054 }
055
056 @Override
057 public Map<String, Object> getModelAttributes() {
058 Map<String, Object> attributes = new HashMap<String, Object>();
059
060 attributes.put("mvccVersion", getMvccVersion());
061 attributes.put("uuid", getUuid());
062 attributes.put("userNotificationEventId", getUserNotificationEventId());
063 attributes.put("companyId", getCompanyId());
064 attributes.put("userId", getUserId());
065 attributes.put("type", getType());
066 attributes.put("timestamp", getTimestamp());
067 attributes.put("deliveryType", getDeliveryType());
068 attributes.put("deliverBy", getDeliverBy());
069 attributes.put("delivered", getDelivered());
070 attributes.put("payload", getPayload());
071 attributes.put("actionRequired", getActionRequired());
072 attributes.put("archived", getArchived());
073
074 return attributes;
075 }
076
077 @Override
078 public void setModelAttributes(Map<String, Object> attributes) {
079 Long mvccVersion = (Long)attributes.get("mvccVersion");
080
081 if (mvccVersion != null) {
082 setMvccVersion(mvccVersion);
083 }
084
085 String uuid = (String)attributes.get("uuid");
086
087 if (uuid != null) {
088 setUuid(uuid);
089 }
090
091 Long userNotificationEventId = (Long)attributes.get(
092 "userNotificationEventId");
093
094 if (userNotificationEventId != null) {
095 setUserNotificationEventId(userNotificationEventId);
096 }
097
098 Long companyId = (Long)attributes.get("companyId");
099
100 if (companyId != null) {
101 setCompanyId(companyId);
102 }
103
104 Long userId = (Long)attributes.get("userId");
105
106 if (userId != null) {
107 setUserId(userId);
108 }
109
110 String type = (String)attributes.get("type");
111
112 if (type != null) {
113 setType(type);
114 }
115
116 Long timestamp = (Long)attributes.get("timestamp");
117
118 if (timestamp != null) {
119 setTimestamp(timestamp);
120 }
121
122 Integer deliveryType = (Integer)attributes.get("deliveryType");
123
124 if (deliveryType != null) {
125 setDeliveryType(deliveryType);
126 }
127
128 Long deliverBy = (Long)attributes.get("deliverBy");
129
130 if (deliverBy != null) {
131 setDeliverBy(deliverBy);
132 }
133
134 Boolean delivered = (Boolean)attributes.get("delivered");
135
136 if (delivered != null) {
137 setDelivered(delivered);
138 }
139
140 String payload = (String)attributes.get("payload");
141
142 if (payload != null) {
143 setPayload(payload);
144 }
145
146 Boolean actionRequired = (Boolean)attributes.get("actionRequired");
147
148 if (actionRequired != null) {
149 setActionRequired(actionRequired);
150 }
151
152 Boolean archived = (Boolean)attributes.get("archived");
153
154 if (archived != null) {
155 setArchived(archived);
156 }
157 }
158
159 @Override
160 public java.lang.Object clone() {
161 return new UserNotificationEventWrapper((UserNotificationEvent)_userNotificationEvent.clone());
162 }
163
164 @Override
165 public int compareTo(
166 com.liferay.portal.model.UserNotificationEvent userNotificationEvent) {
167 return _userNotificationEvent.compareTo(userNotificationEvent);
168 }
169
170
175 @Override
176 public boolean getActionRequired() {
177 return _userNotificationEvent.getActionRequired();
178 }
179
180
185 @Override
186 public boolean getArchived() {
187 return _userNotificationEvent.getArchived();
188 }
189
190
195 @Override
196 public long getCompanyId() {
197 return _userNotificationEvent.getCompanyId();
198 }
199
200
205 @Override
206 public long getDeliverBy() {
207 return _userNotificationEvent.getDeliverBy();
208 }
209
210
215 @Override
216 public boolean getDelivered() {
217 return _userNotificationEvent.getDelivered();
218 }
219
220
225 @Override
226 public int getDeliveryType() {
227 return _userNotificationEvent.getDeliveryType();
228 }
229
230 @Override
231 public ExpandoBridge getExpandoBridge() {
232 return _userNotificationEvent.getExpandoBridge();
233 }
234
235
240 @Override
241 public long getMvccVersion() {
242 return _userNotificationEvent.getMvccVersion();
243 }
244
245
250 @Override
251 public java.lang.String getPayload() {
252 return _userNotificationEvent.getPayload();
253 }
254
255
260 @Override
261 public long getPrimaryKey() {
262 return _userNotificationEvent.getPrimaryKey();
263 }
264
265 @Override
266 public Serializable getPrimaryKeyObj() {
267 return _userNotificationEvent.getPrimaryKeyObj();
268 }
269
270
275 @Override
276 public long getTimestamp() {
277 return _userNotificationEvent.getTimestamp();
278 }
279
280
285 @Override
286 public java.lang.String getType() {
287 return _userNotificationEvent.getType();
288 }
289
290
295 @Override
296 public long getUserId() {
297 return _userNotificationEvent.getUserId();
298 }
299
300
305 @Override
306 public long getUserNotificationEventId() {
307 return _userNotificationEvent.getUserNotificationEventId();
308 }
309
310
315 @Override
316 public java.lang.String getUserUuid() {
317 return _userNotificationEvent.getUserUuid();
318 }
319
320
325 @Override
326 public java.lang.String getUuid() {
327 return _userNotificationEvent.getUuid();
328 }
329
330 @Override
331 public int hashCode() {
332 return _userNotificationEvent.hashCode();
333 }
334
335
340 @Override
341 public boolean isActionRequired() {
342 return _userNotificationEvent.isActionRequired();
343 }
344
345
350 @Override
351 public boolean isArchived() {
352 return _userNotificationEvent.isArchived();
353 }
354
355 @Override
356 public boolean isCachedModel() {
357 return _userNotificationEvent.isCachedModel();
358 }
359
360
365 @Override
366 public boolean isDelivered() {
367 return _userNotificationEvent.isDelivered();
368 }
369
370 @Override
371 public boolean isEscapedModel() {
372 return _userNotificationEvent.isEscapedModel();
373 }
374
375 @Override
376 public boolean isNew() {
377 return _userNotificationEvent.isNew();
378 }
379
380 @Override
381 public void persist() {
382 _userNotificationEvent.persist();
383 }
384
385
390 @Override
391 public void setActionRequired(boolean actionRequired) {
392 _userNotificationEvent.setActionRequired(actionRequired);
393 }
394
395
400 @Override
401 public void setArchived(boolean archived) {
402 _userNotificationEvent.setArchived(archived);
403 }
404
405 @Override
406 public void setCachedModel(boolean cachedModel) {
407 _userNotificationEvent.setCachedModel(cachedModel);
408 }
409
410
415 @Override
416 public void setCompanyId(long companyId) {
417 _userNotificationEvent.setCompanyId(companyId);
418 }
419
420
425 @Override
426 public void setDeliverBy(long deliverBy) {
427 _userNotificationEvent.setDeliverBy(deliverBy);
428 }
429
430
435 @Override
436 public void setDelivered(boolean delivered) {
437 _userNotificationEvent.setDelivered(delivered);
438 }
439
440
445 @Override
446 public void setDeliveryType(int deliveryType) {
447 _userNotificationEvent.setDeliveryType(deliveryType);
448 }
449
450 @Override
451 public void setExpandoBridgeAttributes(BaseModel<?> baseModel) {
452 _userNotificationEvent.setExpandoBridgeAttributes(baseModel);
453 }
454
455 @Override
456 public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge) {
457 _userNotificationEvent.setExpandoBridgeAttributes(expandoBridge);
458 }
459
460 @Override
461 public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
462 _userNotificationEvent.setExpandoBridgeAttributes(serviceContext);
463 }
464
465
470 @Override
471 public void setMvccVersion(long mvccVersion) {
472 _userNotificationEvent.setMvccVersion(mvccVersion);
473 }
474
475 @Override
476 public void setNew(boolean n) {
477 _userNotificationEvent.setNew(n);
478 }
479
480
485 @Override
486 public void setPayload(java.lang.String payload) {
487 _userNotificationEvent.setPayload(payload);
488 }
489
490
495 @Override
496 public void setPrimaryKey(long primaryKey) {
497 _userNotificationEvent.setPrimaryKey(primaryKey);
498 }
499
500 @Override
501 public void setPrimaryKeyObj(Serializable primaryKeyObj) {
502 _userNotificationEvent.setPrimaryKeyObj(primaryKeyObj);
503 }
504
505
510 @Override
511 public void setTimestamp(long timestamp) {
512 _userNotificationEvent.setTimestamp(timestamp);
513 }
514
515
520 @Override
521 public void setType(java.lang.String type) {
522 _userNotificationEvent.setType(type);
523 }
524
525
530 @Override
531 public void setUserId(long userId) {
532 _userNotificationEvent.setUserId(userId);
533 }
534
535
540 @Override
541 public void setUserNotificationEventId(long userNotificationEventId) {
542 _userNotificationEvent.setUserNotificationEventId(userNotificationEventId);
543 }
544
545
550 @Override
551 public void setUserUuid(java.lang.String userUuid) {
552 _userNotificationEvent.setUserUuid(userUuid);
553 }
554
555
560 @Override
561 public void setUuid(java.lang.String uuid) {
562 _userNotificationEvent.setUuid(uuid);
563 }
564
565 @Override
566 public CacheModel<com.liferay.portal.model.UserNotificationEvent> toCacheModel() {
567 return _userNotificationEvent.toCacheModel();
568 }
569
570 @Override
571 public com.liferay.portal.model.UserNotificationEvent toEscapedModel() {
572 return new UserNotificationEventWrapper(_userNotificationEvent.toEscapedModel());
573 }
574
575 @Override
576 public java.lang.String toString() {
577 return _userNotificationEvent.toString();
578 }
579
580 @Override
581 public com.liferay.portal.model.UserNotificationEvent toUnescapedModel() {
582 return new UserNotificationEventWrapper(_userNotificationEvent.toUnescapedModel());
583 }
584
585 @Override
586 public java.lang.String toXmlString() {
587 return _userNotificationEvent.toXmlString();
588 }
589
590 @Override
591 public boolean equals(Object obj) {
592 if (this == obj) {
593 return true;
594 }
595
596 if (!(obj instanceof UserNotificationEventWrapper)) {
597 return false;
598 }
599
600 UserNotificationEventWrapper userNotificationEventWrapper = (UserNotificationEventWrapper)obj;
601
602 if (Validator.equals(_userNotificationEvent,
603 userNotificationEventWrapper._userNotificationEvent)) {
604 return true;
605 }
606
607 return false;
608 }
609
610 @Override
611 public UserNotificationEvent getWrappedModel() {
612 return _userNotificationEvent;
613 }
614
615 @Override
616 public boolean isEntityCacheEnabled() {
617 return _userNotificationEvent.isEntityCacheEnabled();
618 }
619
620 @Override
621 public boolean isFinderCacheEnabled() {
622 return _userNotificationEvent.isFinderCacheEnabled();
623 }
624
625 @Override
626 public void resetOriginalValues() {
627 _userNotificationEvent.resetOriginalValues();
628 }
629
630 private final UserNotificationEvent _userNotificationEvent;
631 }