001
014
015 package com.liferay.portlet.journal.model;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.lar.StagedModelType;
020 import com.liferay.portal.kernel.util.Validator;
021 import com.liferay.portal.model.ModelWrapper;
022
023 import java.util.Date;
024 import java.util.HashMap;
025 import java.util.Map;
026
027
036 @ProviderType
037 public class JournalFeedWrapper implements JournalFeed,
038 ModelWrapper<JournalFeed> {
039 public JournalFeedWrapper(JournalFeed journalFeed) {
040 _journalFeed = journalFeed;
041 }
042
043 @Override
044 public Class<?> getModelClass() {
045 return JournalFeed.class;
046 }
047
048 @Override
049 public String getModelClassName() {
050 return JournalFeed.class.getName();
051 }
052
053 @Override
054 public Map<String, Object> getModelAttributes() {
055 Map<String, Object> attributes = new HashMap<String, Object>();
056
057 attributes.put("uuid", getUuid());
058 attributes.put("id", getId());
059 attributes.put("groupId", getGroupId());
060 attributes.put("companyId", getCompanyId());
061 attributes.put("userId", getUserId());
062 attributes.put("userName", getUserName());
063 attributes.put("createDate", getCreateDate());
064 attributes.put("modifiedDate", getModifiedDate());
065 attributes.put("feedId", getFeedId());
066 attributes.put("name", getName());
067 attributes.put("description", getDescription());
068 attributes.put("type", getType());
069 attributes.put("structureId", getStructureId());
070 attributes.put("templateId", getTemplateId());
071 attributes.put("rendererTemplateId", getRendererTemplateId());
072 attributes.put("delta", getDelta());
073 attributes.put("orderByCol", getOrderByCol());
074 attributes.put("orderByType", getOrderByType());
075 attributes.put("targetLayoutFriendlyUrl", getTargetLayoutFriendlyUrl());
076 attributes.put("targetPortletId", getTargetPortletId());
077 attributes.put("contentField", getContentField());
078 attributes.put("feedFormat", getFeedFormat());
079 attributes.put("feedVersion", getFeedVersion());
080
081 return attributes;
082 }
083
084 @Override
085 public void setModelAttributes(Map<String, Object> attributes) {
086 String uuid = (String)attributes.get("uuid");
087
088 if (uuid != null) {
089 setUuid(uuid);
090 }
091
092 Long id = (Long)attributes.get("id");
093
094 if (id != null) {
095 setId(id);
096 }
097
098 Long groupId = (Long)attributes.get("groupId");
099
100 if (groupId != null) {
101 setGroupId(groupId);
102 }
103
104 Long companyId = (Long)attributes.get("companyId");
105
106 if (companyId != null) {
107 setCompanyId(companyId);
108 }
109
110 Long userId = (Long)attributes.get("userId");
111
112 if (userId != null) {
113 setUserId(userId);
114 }
115
116 String userName = (String)attributes.get("userName");
117
118 if (userName != null) {
119 setUserName(userName);
120 }
121
122 Date createDate = (Date)attributes.get("createDate");
123
124 if (createDate != null) {
125 setCreateDate(createDate);
126 }
127
128 Date modifiedDate = (Date)attributes.get("modifiedDate");
129
130 if (modifiedDate != null) {
131 setModifiedDate(modifiedDate);
132 }
133
134 String feedId = (String)attributes.get("feedId");
135
136 if (feedId != null) {
137 setFeedId(feedId);
138 }
139
140 String name = (String)attributes.get("name");
141
142 if (name != null) {
143 setName(name);
144 }
145
146 String description = (String)attributes.get("description");
147
148 if (description != null) {
149 setDescription(description);
150 }
151
152 String type = (String)attributes.get("type");
153
154 if (type != null) {
155 setType(type);
156 }
157
158 String structureId = (String)attributes.get("structureId");
159
160 if (structureId != null) {
161 setStructureId(structureId);
162 }
163
164 String templateId = (String)attributes.get("templateId");
165
166 if (templateId != null) {
167 setTemplateId(templateId);
168 }
169
170 String rendererTemplateId = (String)attributes.get("rendererTemplateId");
171
172 if (rendererTemplateId != null) {
173 setRendererTemplateId(rendererTemplateId);
174 }
175
176 Integer delta = (Integer)attributes.get("delta");
177
178 if (delta != null) {
179 setDelta(delta);
180 }
181
182 String orderByCol = (String)attributes.get("orderByCol");
183
184 if (orderByCol != null) {
185 setOrderByCol(orderByCol);
186 }
187
188 String orderByType = (String)attributes.get("orderByType");
189
190 if (orderByType != null) {
191 setOrderByType(orderByType);
192 }
193
194 String targetLayoutFriendlyUrl = (String)attributes.get(
195 "targetLayoutFriendlyUrl");
196
197 if (targetLayoutFriendlyUrl != null) {
198 setTargetLayoutFriendlyUrl(targetLayoutFriendlyUrl);
199 }
200
201 String targetPortletId = (String)attributes.get("targetPortletId");
202
203 if (targetPortletId != null) {
204 setTargetPortletId(targetPortletId);
205 }
206
207 String contentField = (String)attributes.get("contentField");
208
209 if (contentField != null) {
210 setContentField(contentField);
211 }
212
213 String feedFormat = (String)attributes.get("feedFormat");
214
215 if (feedFormat != null) {
216 setFeedFormat(feedFormat);
217 }
218
219 Double feedVersion = (Double)attributes.get("feedVersion");
220
221 if (feedVersion != null) {
222 setFeedVersion(feedVersion);
223 }
224 }
225
226
231 @Override
232 public long getPrimaryKey() {
233 return _journalFeed.getPrimaryKey();
234 }
235
236
241 @Override
242 public void setPrimaryKey(long primaryKey) {
243 _journalFeed.setPrimaryKey(primaryKey);
244 }
245
246
251 @Override
252 public java.lang.String getUuid() {
253 return _journalFeed.getUuid();
254 }
255
256
261 @Override
262 public void setUuid(java.lang.String uuid) {
263 _journalFeed.setUuid(uuid);
264 }
265
266
271 @Override
272 public long getId() {
273 return _journalFeed.getId();
274 }
275
276
281 @Override
282 public void setId(long id) {
283 _journalFeed.setId(id);
284 }
285
286
291 @Override
292 public long getGroupId() {
293 return _journalFeed.getGroupId();
294 }
295
296
301 @Override
302 public void setGroupId(long groupId) {
303 _journalFeed.setGroupId(groupId);
304 }
305
306
311 @Override
312 public long getCompanyId() {
313 return _journalFeed.getCompanyId();
314 }
315
316
321 @Override
322 public void setCompanyId(long companyId) {
323 _journalFeed.setCompanyId(companyId);
324 }
325
326
331 @Override
332 public long getUserId() {
333 return _journalFeed.getUserId();
334 }
335
336
341 @Override
342 public void setUserId(long userId) {
343 _journalFeed.setUserId(userId);
344 }
345
346
352 @Override
353 public java.lang.String getUserUuid()
354 throws com.liferay.portal.kernel.exception.SystemException {
355 return _journalFeed.getUserUuid();
356 }
357
358
363 @Override
364 public void setUserUuid(java.lang.String userUuid) {
365 _journalFeed.setUserUuid(userUuid);
366 }
367
368
373 @Override
374 public java.lang.String getUserName() {
375 return _journalFeed.getUserName();
376 }
377
378
383 @Override
384 public void setUserName(java.lang.String userName) {
385 _journalFeed.setUserName(userName);
386 }
387
388
393 @Override
394 public java.util.Date getCreateDate() {
395 return _journalFeed.getCreateDate();
396 }
397
398
403 @Override
404 public void setCreateDate(java.util.Date createDate) {
405 _journalFeed.setCreateDate(createDate);
406 }
407
408
413 @Override
414 public java.util.Date getModifiedDate() {
415 return _journalFeed.getModifiedDate();
416 }
417
418
423 @Override
424 public void setModifiedDate(java.util.Date modifiedDate) {
425 _journalFeed.setModifiedDate(modifiedDate);
426 }
427
428
433 @Override
434 public java.lang.String getFeedId() {
435 return _journalFeed.getFeedId();
436 }
437
438
443 @Override
444 public void setFeedId(java.lang.String feedId) {
445 _journalFeed.setFeedId(feedId);
446 }
447
448
453 @Override
454 public java.lang.String getName() {
455 return _journalFeed.getName();
456 }
457
458
463 @Override
464 public void setName(java.lang.String name) {
465 _journalFeed.setName(name);
466 }
467
468
473 @Override
474 public java.lang.String getDescription() {
475 return _journalFeed.getDescription();
476 }
477
478
483 @Override
484 public void setDescription(java.lang.String description) {
485 _journalFeed.setDescription(description);
486 }
487
488
493 @Override
494 public java.lang.String getType() {
495 return _journalFeed.getType();
496 }
497
498
503 @Override
504 public void setType(java.lang.String type) {
505 _journalFeed.setType(type);
506 }
507
508
513 @Override
514 public java.lang.String getStructureId() {
515 return _journalFeed.getStructureId();
516 }
517
518
523 @Override
524 public void setStructureId(java.lang.String structureId) {
525 _journalFeed.setStructureId(structureId);
526 }
527
528
533 @Override
534 public java.lang.String getTemplateId() {
535 return _journalFeed.getTemplateId();
536 }
537
538
543 @Override
544 public void setTemplateId(java.lang.String templateId) {
545 _journalFeed.setTemplateId(templateId);
546 }
547
548
553 @Override
554 public java.lang.String getRendererTemplateId() {
555 return _journalFeed.getRendererTemplateId();
556 }
557
558
563 @Override
564 public void setRendererTemplateId(java.lang.String rendererTemplateId) {
565 _journalFeed.setRendererTemplateId(rendererTemplateId);
566 }
567
568
573 @Override
574 public int getDelta() {
575 return _journalFeed.getDelta();
576 }
577
578
583 @Override
584 public void setDelta(int delta) {
585 _journalFeed.setDelta(delta);
586 }
587
588
593 @Override
594 public java.lang.String getOrderByCol() {
595 return _journalFeed.getOrderByCol();
596 }
597
598
603 @Override
604 public void setOrderByCol(java.lang.String orderByCol) {
605 _journalFeed.setOrderByCol(orderByCol);
606 }
607
608
613 @Override
614 public java.lang.String getOrderByType() {
615 return _journalFeed.getOrderByType();
616 }
617
618
623 @Override
624 public void setOrderByType(java.lang.String orderByType) {
625 _journalFeed.setOrderByType(orderByType);
626 }
627
628
633 @Override
634 public java.lang.String getTargetLayoutFriendlyUrl() {
635 return _journalFeed.getTargetLayoutFriendlyUrl();
636 }
637
638
643 @Override
644 public void setTargetLayoutFriendlyUrl(
645 java.lang.String targetLayoutFriendlyUrl) {
646 _journalFeed.setTargetLayoutFriendlyUrl(targetLayoutFriendlyUrl);
647 }
648
649
654 @Override
655 public java.lang.String getTargetPortletId() {
656 return _journalFeed.getTargetPortletId();
657 }
658
659
664 @Override
665 public void setTargetPortletId(java.lang.String targetPortletId) {
666 _journalFeed.setTargetPortletId(targetPortletId);
667 }
668
669
674 @Override
675 public java.lang.String getContentField() {
676 return _journalFeed.getContentField();
677 }
678
679
684 @Override
685 public void setContentField(java.lang.String contentField) {
686 _journalFeed.setContentField(contentField);
687 }
688
689
694 @Override
695 public java.lang.String getFeedFormat() {
696 return _journalFeed.getFeedFormat();
697 }
698
699
704 @Override
705 public void setFeedFormat(java.lang.String feedFormat) {
706 _journalFeed.setFeedFormat(feedFormat);
707 }
708
709
714 @Override
715 public double getFeedVersion() {
716 return _journalFeed.getFeedVersion();
717 }
718
719
724 @Override
725 public void setFeedVersion(double feedVersion) {
726 _journalFeed.setFeedVersion(feedVersion);
727 }
728
729 @Override
730 public boolean isNew() {
731 return _journalFeed.isNew();
732 }
733
734 @Override
735 public void setNew(boolean n) {
736 _journalFeed.setNew(n);
737 }
738
739 @Override
740 public boolean isCachedModel() {
741 return _journalFeed.isCachedModel();
742 }
743
744 @Override
745 public void setCachedModel(boolean cachedModel) {
746 _journalFeed.setCachedModel(cachedModel);
747 }
748
749 @Override
750 public boolean isEscapedModel() {
751 return _journalFeed.isEscapedModel();
752 }
753
754 @Override
755 public java.io.Serializable getPrimaryKeyObj() {
756 return _journalFeed.getPrimaryKeyObj();
757 }
758
759 @Override
760 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
761 _journalFeed.setPrimaryKeyObj(primaryKeyObj);
762 }
763
764 @Override
765 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
766 return _journalFeed.getExpandoBridge();
767 }
768
769 @Override
770 public void setExpandoBridgeAttributes(
771 com.liferay.portal.model.BaseModel<?> baseModel) {
772 _journalFeed.setExpandoBridgeAttributes(baseModel);
773 }
774
775 @Override
776 public void setExpandoBridgeAttributes(
777 com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
778 _journalFeed.setExpandoBridgeAttributes(expandoBridge);
779 }
780
781 @Override
782 public void setExpandoBridgeAttributes(
783 com.liferay.portal.service.ServiceContext serviceContext) {
784 _journalFeed.setExpandoBridgeAttributes(serviceContext);
785 }
786
787 @Override
788 public java.lang.Object clone() {
789 return new JournalFeedWrapper((JournalFeed)_journalFeed.clone());
790 }
791
792 @Override
793 public int compareTo(
794 com.liferay.portlet.journal.model.JournalFeed journalFeed) {
795 return _journalFeed.compareTo(journalFeed);
796 }
797
798 @Override
799 public int hashCode() {
800 return _journalFeed.hashCode();
801 }
802
803 @Override
804 public com.liferay.portal.model.CacheModel<com.liferay.portlet.journal.model.JournalFeed> toCacheModel() {
805 return _journalFeed.toCacheModel();
806 }
807
808 @Override
809 public com.liferay.portlet.journal.model.JournalFeed toEscapedModel() {
810 return new JournalFeedWrapper(_journalFeed.toEscapedModel());
811 }
812
813 @Override
814 public com.liferay.portlet.journal.model.JournalFeed toUnescapedModel() {
815 return new JournalFeedWrapper(_journalFeed.toUnescapedModel());
816 }
817
818 @Override
819 public java.lang.String toString() {
820 return _journalFeed.toString();
821 }
822
823 @Override
824 public java.lang.String toXmlString() {
825 return _journalFeed.toXmlString();
826 }
827
828 @Override
829 public void persist()
830 throws com.liferay.portal.kernel.exception.SystemException {
831 _journalFeed.persist();
832 }
833
834 @Override
835 public boolean equals(Object obj) {
836 if (this == obj) {
837 return true;
838 }
839
840 if (!(obj instanceof JournalFeedWrapper)) {
841 return false;
842 }
843
844 JournalFeedWrapper journalFeedWrapper = (JournalFeedWrapper)obj;
845
846 if (Validator.equals(_journalFeed, journalFeedWrapper._journalFeed)) {
847 return true;
848 }
849
850 return false;
851 }
852
853 @Override
854 public StagedModelType getStagedModelType() {
855 return _journalFeed.getStagedModelType();
856 }
857
858
861 public JournalFeed getWrappedJournalFeed() {
862 return _journalFeed;
863 }
864
865 @Override
866 public JournalFeed getWrappedModel() {
867 return _journalFeed;
868 }
869
870 @Override
871 public void resetOriginalValues() {
872 _journalFeed.resetOriginalValues();
873 }
874
875 private JournalFeed _journalFeed;
876 }