001
014
015 package com.liferay.portlet.journal.model;
016
017 import com.liferay.portal.kernel.util.Validator;
018 import com.liferay.portal.model.ModelWrapper;
019
020 import java.util.Date;
021 import java.util.HashMap;
022 import java.util.Map;
023
024
033 public class JournalFeedWrapper implements JournalFeed,
034 ModelWrapper<JournalFeed> {
035 public JournalFeedWrapper(JournalFeed journalFeed) {
036 _journalFeed = journalFeed;
037 }
038
039 public Class<?> getModelClass() {
040 return JournalFeed.class;
041 }
042
043 public String getModelClassName() {
044 return JournalFeed.class.getName();
045 }
046
047 public Map<String, Object> getModelAttributes() {
048 Map<String, Object> attributes = new HashMap<String, Object>();
049
050 attributes.put("uuid", getUuid());
051 attributes.put("id", getId());
052 attributes.put("groupId", getGroupId());
053 attributes.put("companyId", getCompanyId());
054 attributes.put("userId", getUserId());
055 attributes.put("userName", getUserName());
056 attributes.put("createDate", getCreateDate());
057 attributes.put("modifiedDate", getModifiedDate());
058 attributes.put("feedId", getFeedId());
059 attributes.put("name", getName());
060 attributes.put("description", getDescription());
061 attributes.put("type", getType());
062 attributes.put("structureId", getStructureId());
063 attributes.put("templateId", getTemplateId());
064 attributes.put("rendererTemplateId", getRendererTemplateId());
065 attributes.put("delta", getDelta());
066 attributes.put("orderByCol", getOrderByCol());
067 attributes.put("orderByType", getOrderByType());
068 attributes.put("targetLayoutFriendlyUrl", getTargetLayoutFriendlyUrl());
069 attributes.put("targetPortletId", getTargetPortletId());
070 attributes.put("contentField", getContentField());
071 attributes.put("feedType", getFeedType());
072 attributes.put("feedVersion", getFeedVersion());
073
074 return attributes;
075 }
076
077 public void setModelAttributes(Map<String, Object> attributes) {
078 String uuid = (String)attributes.get("uuid");
079
080 if (uuid != null) {
081 setUuid(uuid);
082 }
083
084 Long id = (Long)attributes.get("id");
085
086 if (id != null) {
087 setId(id);
088 }
089
090 Long groupId = (Long)attributes.get("groupId");
091
092 if (groupId != null) {
093 setGroupId(groupId);
094 }
095
096 Long companyId = (Long)attributes.get("companyId");
097
098 if (companyId != null) {
099 setCompanyId(companyId);
100 }
101
102 Long userId = (Long)attributes.get("userId");
103
104 if (userId != null) {
105 setUserId(userId);
106 }
107
108 String userName = (String)attributes.get("userName");
109
110 if (userName != null) {
111 setUserName(userName);
112 }
113
114 Date createDate = (Date)attributes.get("createDate");
115
116 if (createDate != null) {
117 setCreateDate(createDate);
118 }
119
120 Date modifiedDate = (Date)attributes.get("modifiedDate");
121
122 if (modifiedDate != null) {
123 setModifiedDate(modifiedDate);
124 }
125
126 String feedId = (String)attributes.get("feedId");
127
128 if (feedId != null) {
129 setFeedId(feedId);
130 }
131
132 String name = (String)attributes.get("name");
133
134 if (name != null) {
135 setName(name);
136 }
137
138 String description = (String)attributes.get("description");
139
140 if (description != null) {
141 setDescription(description);
142 }
143
144 String type = (String)attributes.get("type");
145
146 if (type != null) {
147 setType(type);
148 }
149
150 String structureId = (String)attributes.get("structureId");
151
152 if (structureId != null) {
153 setStructureId(structureId);
154 }
155
156 String templateId = (String)attributes.get("templateId");
157
158 if (templateId != null) {
159 setTemplateId(templateId);
160 }
161
162 String rendererTemplateId = (String)attributes.get("rendererTemplateId");
163
164 if (rendererTemplateId != null) {
165 setRendererTemplateId(rendererTemplateId);
166 }
167
168 Integer delta = (Integer)attributes.get("delta");
169
170 if (delta != null) {
171 setDelta(delta);
172 }
173
174 String orderByCol = (String)attributes.get("orderByCol");
175
176 if (orderByCol != null) {
177 setOrderByCol(orderByCol);
178 }
179
180 String orderByType = (String)attributes.get("orderByType");
181
182 if (orderByType != null) {
183 setOrderByType(orderByType);
184 }
185
186 String targetLayoutFriendlyUrl = (String)attributes.get(
187 "targetLayoutFriendlyUrl");
188
189 if (targetLayoutFriendlyUrl != null) {
190 setTargetLayoutFriendlyUrl(targetLayoutFriendlyUrl);
191 }
192
193 String targetPortletId = (String)attributes.get("targetPortletId");
194
195 if (targetPortletId != null) {
196 setTargetPortletId(targetPortletId);
197 }
198
199 String contentField = (String)attributes.get("contentField");
200
201 if (contentField != null) {
202 setContentField(contentField);
203 }
204
205 String feedType = (String)attributes.get("feedType");
206
207 if (feedType != null) {
208 setFeedType(feedType);
209 }
210
211 Double feedVersion = (Double)attributes.get("feedVersion");
212
213 if (feedVersion != null) {
214 setFeedVersion(feedVersion);
215 }
216 }
217
218
223 public long getPrimaryKey() {
224 return _journalFeed.getPrimaryKey();
225 }
226
227
232 public void setPrimaryKey(long primaryKey) {
233 _journalFeed.setPrimaryKey(primaryKey);
234 }
235
236
241 public java.lang.String getUuid() {
242 return _journalFeed.getUuid();
243 }
244
245
250 public void setUuid(java.lang.String uuid) {
251 _journalFeed.setUuid(uuid);
252 }
253
254
259 public long getId() {
260 return _journalFeed.getId();
261 }
262
263
268 public void setId(long id) {
269 _journalFeed.setId(id);
270 }
271
272
277 public long getGroupId() {
278 return _journalFeed.getGroupId();
279 }
280
281
286 public void setGroupId(long groupId) {
287 _journalFeed.setGroupId(groupId);
288 }
289
290
295 public long getCompanyId() {
296 return _journalFeed.getCompanyId();
297 }
298
299
304 public void setCompanyId(long companyId) {
305 _journalFeed.setCompanyId(companyId);
306 }
307
308
313 public long getUserId() {
314 return _journalFeed.getUserId();
315 }
316
317
322 public void setUserId(long userId) {
323 _journalFeed.setUserId(userId);
324 }
325
326
332 public java.lang.String getUserUuid()
333 throws com.liferay.portal.kernel.exception.SystemException {
334 return _journalFeed.getUserUuid();
335 }
336
337
342 public void setUserUuid(java.lang.String userUuid) {
343 _journalFeed.setUserUuid(userUuid);
344 }
345
346
351 public java.lang.String getUserName() {
352 return _journalFeed.getUserName();
353 }
354
355
360 public void setUserName(java.lang.String userName) {
361 _journalFeed.setUserName(userName);
362 }
363
364
369 public java.util.Date getCreateDate() {
370 return _journalFeed.getCreateDate();
371 }
372
373
378 public void setCreateDate(java.util.Date createDate) {
379 _journalFeed.setCreateDate(createDate);
380 }
381
382
387 public java.util.Date getModifiedDate() {
388 return _journalFeed.getModifiedDate();
389 }
390
391
396 public void setModifiedDate(java.util.Date modifiedDate) {
397 _journalFeed.setModifiedDate(modifiedDate);
398 }
399
400
405 public java.lang.String getFeedId() {
406 return _journalFeed.getFeedId();
407 }
408
409
414 public void setFeedId(java.lang.String feedId) {
415 _journalFeed.setFeedId(feedId);
416 }
417
418
423 public java.lang.String getName() {
424 return _journalFeed.getName();
425 }
426
427
432 public void setName(java.lang.String name) {
433 _journalFeed.setName(name);
434 }
435
436
441 public java.lang.String getDescription() {
442 return _journalFeed.getDescription();
443 }
444
445
450 public void setDescription(java.lang.String description) {
451 _journalFeed.setDescription(description);
452 }
453
454
459 public java.lang.String getType() {
460 return _journalFeed.getType();
461 }
462
463
468 public void setType(java.lang.String type) {
469 _journalFeed.setType(type);
470 }
471
472
477 public java.lang.String getStructureId() {
478 return _journalFeed.getStructureId();
479 }
480
481
486 public void setStructureId(java.lang.String structureId) {
487 _journalFeed.setStructureId(structureId);
488 }
489
490
495 public java.lang.String getTemplateId() {
496 return _journalFeed.getTemplateId();
497 }
498
499
504 public void setTemplateId(java.lang.String templateId) {
505 _journalFeed.setTemplateId(templateId);
506 }
507
508
513 public java.lang.String getRendererTemplateId() {
514 return _journalFeed.getRendererTemplateId();
515 }
516
517
522 public void setRendererTemplateId(java.lang.String rendererTemplateId) {
523 _journalFeed.setRendererTemplateId(rendererTemplateId);
524 }
525
526
531 public int getDelta() {
532 return _journalFeed.getDelta();
533 }
534
535
540 public void setDelta(int delta) {
541 _journalFeed.setDelta(delta);
542 }
543
544
549 public java.lang.String getOrderByCol() {
550 return _journalFeed.getOrderByCol();
551 }
552
553
558 public void setOrderByCol(java.lang.String orderByCol) {
559 _journalFeed.setOrderByCol(orderByCol);
560 }
561
562
567 public java.lang.String getOrderByType() {
568 return _journalFeed.getOrderByType();
569 }
570
571
576 public void setOrderByType(java.lang.String orderByType) {
577 _journalFeed.setOrderByType(orderByType);
578 }
579
580
585 public java.lang.String getTargetLayoutFriendlyUrl() {
586 return _journalFeed.getTargetLayoutFriendlyUrl();
587 }
588
589
594 public void setTargetLayoutFriendlyUrl(
595 java.lang.String targetLayoutFriendlyUrl) {
596 _journalFeed.setTargetLayoutFriendlyUrl(targetLayoutFriendlyUrl);
597 }
598
599
604 public java.lang.String getTargetPortletId() {
605 return _journalFeed.getTargetPortletId();
606 }
607
608
613 public void setTargetPortletId(java.lang.String targetPortletId) {
614 _journalFeed.setTargetPortletId(targetPortletId);
615 }
616
617
622 public java.lang.String getContentField() {
623 return _journalFeed.getContentField();
624 }
625
626
631 public void setContentField(java.lang.String contentField) {
632 _journalFeed.setContentField(contentField);
633 }
634
635
640 public java.lang.String getFeedType() {
641 return _journalFeed.getFeedType();
642 }
643
644
649 public void setFeedType(java.lang.String feedType) {
650 _journalFeed.setFeedType(feedType);
651 }
652
653
658 public double getFeedVersion() {
659 return _journalFeed.getFeedVersion();
660 }
661
662
667 public void setFeedVersion(double feedVersion) {
668 _journalFeed.setFeedVersion(feedVersion);
669 }
670
671 public boolean isNew() {
672 return _journalFeed.isNew();
673 }
674
675 public void setNew(boolean n) {
676 _journalFeed.setNew(n);
677 }
678
679 public boolean isCachedModel() {
680 return _journalFeed.isCachedModel();
681 }
682
683 public void setCachedModel(boolean cachedModel) {
684 _journalFeed.setCachedModel(cachedModel);
685 }
686
687 public boolean isEscapedModel() {
688 return _journalFeed.isEscapedModel();
689 }
690
691 public java.io.Serializable getPrimaryKeyObj() {
692 return _journalFeed.getPrimaryKeyObj();
693 }
694
695 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
696 _journalFeed.setPrimaryKeyObj(primaryKeyObj);
697 }
698
699 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
700 return _journalFeed.getExpandoBridge();
701 }
702
703 public void setExpandoBridgeAttributes(
704 com.liferay.portal.service.ServiceContext serviceContext) {
705 _journalFeed.setExpandoBridgeAttributes(serviceContext);
706 }
707
708 @Override
709 public java.lang.Object clone() {
710 return new JournalFeedWrapper((JournalFeed)_journalFeed.clone());
711 }
712
713 public int compareTo(
714 com.liferay.portlet.journal.model.JournalFeed journalFeed) {
715 return _journalFeed.compareTo(journalFeed);
716 }
717
718 @Override
719 public int hashCode() {
720 return _journalFeed.hashCode();
721 }
722
723 public com.liferay.portal.model.CacheModel<com.liferay.portlet.journal.model.JournalFeed> toCacheModel() {
724 return _journalFeed.toCacheModel();
725 }
726
727 public com.liferay.portlet.journal.model.JournalFeed toEscapedModel() {
728 return new JournalFeedWrapper(_journalFeed.toEscapedModel());
729 }
730
731 public com.liferay.portlet.journal.model.JournalFeed toUnescapedModel() {
732 return new JournalFeedWrapper(_journalFeed.toUnescapedModel());
733 }
734
735 @Override
736 public java.lang.String toString() {
737 return _journalFeed.toString();
738 }
739
740 public java.lang.String toXmlString() {
741 return _journalFeed.toXmlString();
742 }
743
744 public void persist()
745 throws com.liferay.portal.kernel.exception.SystemException {
746 _journalFeed.persist();
747 }
748
749 @Override
750 public boolean equals(Object obj) {
751 if (this == obj) {
752 return true;
753 }
754
755 if (!(obj instanceof JournalFeedWrapper)) {
756 return false;
757 }
758
759 JournalFeedWrapper journalFeedWrapper = (JournalFeedWrapper)obj;
760
761 if (Validator.equals(_journalFeed, journalFeedWrapper._journalFeed)) {
762 return true;
763 }
764
765 return false;
766 }
767
768
771 public JournalFeed getWrappedJournalFeed() {
772 return _journalFeed;
773 }
774
775 public JournalFeed getWrappedModel() {
776 return _journalFeed;
777 }
778
779 public void resetOriginalValues() {
780 _journalFeed.resetOriginalValues();
781 }
782
783 private JournalFeed _journalFeed;
784 }