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 JournalFolderWrapper implements JournalFolder,
038 ModelWrapper<JournalFolder> {
039 public JournalFolderWrapper(JournalFolder journalFolder) {
040 _journalFolder = journalFolder;
041 }
042
043 @Override
044 public Class<?> getModelClass() {
045 return JournalFolder.class;
046 }
047
048 @Override
049 public String getModelClassName() {
050 return JournalFolder.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("folderId", getFolderId());
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("parentFolderId", getParentFolderId());
066 attributes.put("treePath", getTreePath());
067 attributes.put("name", getName());
068 attributes.put("description", getDescription());
069 attributes.put("status", getStatus());
070 attributes.put("statusByUserId", getStatusByUserId());
071 attributes.put("statusByUserName", getStatusByUserName());
072 attributes.put("statusDate", getStatusDate());
073
074 return attributes;
075 }
076
077 @Override
078 public void setModelAttributes(Map<String, Object> attributes) {
079 String uuid = (String)attributes.get("uuid");
080
081 if (uuid != null) {
082 setUuid(uuid);
083 }
084
085 Long folderId = (Long)attributes.get("folderId");
086
087 if (folderId != null) {
088 setFolderId(folderId);
089 }
090
091 Long groupId = (Long)attributes.get("groupId");
092
093 if (groupId != null) {
094 setGroupId(groupId);
095 }
096
097 Long companyId = (Long)attributes.get("companyId");
098
099 if (companyId != null) {
100 setCompanyId(companyId);
101 }
102
103 Long userId = (Long)attributes.get("userId");
104
105 if (userId != null) {
106 setUserId(userId);
107 }
108
109 String userName = (String)attributes.get("userName");
110
111 if (userName != null) {
112 setUserName(userName);
113 }
114
115 Date createDate = (Date)attributes.get("createDate");
116
117 if (createDate != null) {
118 setCreateDate(createDate);
119 }
120
121 Date modifiedDate = (Date)attributes.get("modifiedDate");
122
123 if (modifiedDate != null) {
124 setModifiedDate(modifiedDate);
125 }
126
127 Long parentFolderId = (Long)attributes.get("parentFolderId");
128
129 if (parentFolderId != null) {
130 setParentFolderId(parentFolderId);
131 }
132
133 String treePath = (String)attributes.get("treePath");
134
135 if (treePath != null) {
136 setTreePath(treePath);
137 }
138
139 String name = (String)attributes.get("name");
140
141 if (name != null) {
142 setName(name);
143 }
144
145 String description = (String)attributes.get("description");
146
147 if (description != null) {
148 setDescription(description);
149 }
150
151 Integer status = (Integer)attributes.get("status");
152
153 if (status != null) {
154 setStatus(status);
155 }
156
157 Long statusByUserId = (Long)attributes.get("statusByUserId");
158
159 if (statusByUserId != null) {
160 setStatusByUserId(statusByUserId);
161 }
162
163 String statusByUserName = (String)attributes.get("statusByUserName");
164
165 if (statusByUserName != null) {
166 setStatusByUserName(statusByUserName);
167 }
168
169 Date statusDate = (Date)attributes.get("statusDate");
170
171 if (statusDate != null) {
172 setStatusDate(statusDate);
173 }
174 }
175
176
181 @Override
182 public long getPrimaryKey() {
183 return _journalFolder.getPrimaryKey();
184 }
185
186
191 @Override
192 public void setPrimaryKey(long primaryKey) {
193 _journalFolder.setPrimaryKey(primaryKey);
194 }
195
196
201 @Override
202 public java.lang.String getUuid() {
203 return _journalFolder.getUuid();
204 }
205
206
211 @Override
212 public void setUuid(java.lang.String uuid) {
213 _journalFolder.setUuid(uuid);
214 }
215
216
221 @Override
222 public long getFolderId() {
223 return _journalFolder.getFolderId();
224 }
225
226
231 @Override
232 public void setFolderId(long folderId) {
233 _journalFolder.setFolderId(folderId);
234 }
235
236
241 @Override
242 public long getGroupId() {
243 return _journalFolder.getGroupId();
244 }
245
246
251 @Override
252 public void setGroupId(long groupId) {
253 _journalFolder.setGroupId(groupId);
254 }
255
256
261 @Override
262 public long getCompanyId() {
263 return _journalFolder.getCompanyId();
264 }
265
266
271 @Override
272 public void setCompanyId(long companyId) {
273 _journalFolder.setCompanyId(companyId);
274 }
275
276
281 @Override
282 public long getUserId() {
283 return _journalFolder.getUserId();
284 }
285
286
291 @Override
292 public void setUserId(long userId) {
293 _journalFolder.setUserId(userId);
294 }
295
296
302 @Override
303 public java.lang.String getUserUuid()
304 throws com.liferay.portal.kernel.exception.SystemException {
305 return _journalFolder.getUserUuid();
306 }
307
308
313 @Override
314 public void setUserUuid(java.lang.String userUuid) {
315 _journalFolder.setUserUuid(userUuid);
316 }
317
318
323 @Override
324 public java.lang.String getUserName() {
325 return _journalFolder.getUserName();
326 }
327
328
333 @Override
334 public void setUserName(java.lang.String userName) {
335 _journalFolder.setUserName(userName);
336 }
337
338
343 @Override
344 public java.util.Date getCreateDate() {
345 return _journalFolder.getCreateDate();
346 }
347
348
353 @Override
354 public void setCreateDate(java.util.Date createDate) {
355 _journalFolder.setCreateDate(createDate);
356 }
357
358
363 @Override
364 public java.util.Date getModifiedDate() {
365 return _journalFolder.getModifiedDate();
366 }
367
368
373 @Override
374 public void setModifiedDate(java.util.Date modifiedDate) {
375 _journalFolder.setModifiedDate(modifiedDate);
376 }
377
378
383 @Override
384 public long getParentFolderId() {
385 return _journalFolder.getParentFolderId();
386 }
387
388
393 @Override
394 public void setParentFolderId(long parentFolderId) {
395 _journalFolder.setParentFolderId(parentFolderId);
396 }
397
398
403 @Override
404 public java.lang.String getTreePath() {
405 return _journalFolder.getTreePath();
406 }
407
408
413 @Override
414 public void setTreePath(java.lang.String treePath) {
415 _journalFolder.setTreePath(treePath);
416 }
417
418
423 @Override
424 public java.lang.String getName() {
425 return _journalFolder.getName();
426 }
427
428
433 @Override
434 public void setName(java.lang.String name) {
435 _journalFolder.setName(name);
436 }
437
438
443 @Override
444 public java.lang.String getDescription() {
445 return _journalFolder.getDescription();
446 }
447
448
453 @Override
454 public void setDescription(java.lang.String description) {
455 _journalFolder.setDescription(description);
456 }
457
458
463 @Override
464 public int getStatus() {
465 return _journalFolder.getStatus();
466 }
467
468
473 @Override
474 public void setStatus(int status) {
475 _journalFolder.setStatus(status);
476 }
477
478
483 @Override
484 public long getStatusByUserId() {
485 return _journalFolder.getStatusByUserId();
486 }
487
488
493 @Override
494 public void setStatusByUserId(long statusByUserId) {
495 _journalFolder.setStatusByUserId(statusByUserId);
496 }
497
498
504 @Override
505 public java.lang.String getStatusByUserUuid()
506 throws com.liferay.portal.kernel.exception.SystemException {
507 return _journalFolder.getStatusByUserUuid();
508 }
509
510
515 @Override
516 public void setStatusByUserUuid(java.lang.String statusByUserUuid) {
517 _journalFolder.setStatusByUserUuid(statusByUserUuid);
518 }
519
520
525 @Override
526 public java.lang.String getStatusByUserName() {
527 return _journalFolder.getStatusByUserName();
528 }
529
530
535 @Override
536 public void setStatusByUserName(java.lang.String statusByUserName) {
537 _journalFolder.setStatusByUserName(statusByUserName);
538 }
539
540
545 @Override
546 public java.util.Date getStatusDate() {
547 return _journalFolder.getStatusDate();
548 }
549
550
555 @Override
556 public void setStatusDate(java.util.Date statusDate) {
557 _journalFolder.setStatusDate(statusDate);
558 }
559
560
566 @Override
567 public com.liferay.portlet.trash.model.TrashEntry getTrashEntry()
568 throws com.liferay.portal.kernel.exception.PortalException,
569 com.liferay.portal.kernel.exception.SystemException {
570 return _journalFolder.getTrashEntry();
571 }
572
573
578 @Override
579 public long getTrashEntryClassPK() {
580 return _journalFolder.getTrashEntryClassPK();
581 }
582
583
588 @Override
589 public com.liferay.portal.kernel.trash.TrashHandler getTrashHandler() {
590 return _journalFolder.getTrashHandler();
591 }
592
593
598 @Override
599 public boolean isInTrash() {
600 return _journalFolder.isInTrash();
601 }
602
603
609 @Override
610 public boolean isInTrashContainer() {
611 return _journalFolder.isInTrashContainer();
612 }
613
614
617 @Override
618 public boolean getApproved() {
619 return _journalFolder.getApproved();
620 }
621
622
627 @Override
628 public boolean isApproved() {
629 return _journalFolder.isApproved();
630 }
631
632
637 @Override
638 public boolean isDenied() {
639 return _journalFolder.isDenied();
640 }
641
642
647 @Override
648 public boolean isDraft() {
649 return _journalFolder.isDraft();
650 }
651
652
657 @Override
658 public boolean isExpired() {
659 return _journalFolder.isExpired();
660 }
661
662
667 @Override
668 public boolean isInactive() {
669 return _journalFolder.isInactive();
670 }
671
672
677 @Override
678 public boolean isIncomplete() {
679 return _journalFolder.isIncomplete();
680 }
681
682
687 @Override
688 public boolean isPending() {
689 return _journalFolder.isPending();
690 }
691
692
697 @Override
698 public boolean isScheduled() {
699 return _journalFolder.isScheduled();
700 }
701
702
707 @Override
708 public long getContainerModelId() {
709 return _journalFolder.getContainerModelId();
710 }
711
712
717 @Override
718 public void setContainerModelId(long containerModelId) {
719 _journalFolder.setContainerModelId(containerModelId);
720 }
721
722
727 @Override
728 public java.lang.String getContainerModelName() {
729 return _journalFolder.getContainerModelName();
730 }
731
732
737 @Override
738 public long getParentContainerModelId() {
739 return _journalFolder.getParentContainerModelId();
740 }
741
742
747 @Override
748 public void setParentContainerModelId(long parentContainerModelId) {
749 _journalFolder.setParentContainerModelId(parentContainerModelId);
750 }
751
752 @Override
753 public boolean isNew() {
754 return _journalFolder.isNew();
755 }
756
757 @Override
758 public void setNew(boolean n) {
759 _journalFolder.setNew(n);
760 }
761
762 @Override
763 public boolean isCachedModel() {
764 return _journalFolder.isCachedModel();
765 }
766
767 @Override
768 public void setCachedModel(boolean cachedModel) {
769 _journalFolder.setCachedModel(cachedModel);
770 }
771
772 @Override
773 public boolean isEscapedModel() {
774 return _journalFolder.isEscapedModel();
775 }
776
777 @Override
778 public java.io.Serializable getPrimaryKeyObj() {
779 return _journalFolder.getPrimaryKeyObj();
780 }
781
782 @Override
783 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
784 _journalFolder.setPrimaryKeyObj(primaryKeyObj);
785 }
786
787 @Override
788 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
789 return _journalFolder.getExpandoBridge();
790 }
791
792 @Override
793 public void setExpandoBridgeAttributes(
794 com.liferay.portal.model.BaseModel<?> baseModel) {
795 _journalFolder.setExpandoBridgeAttributes(baseModel);
796 }
797
798 @Override
799 public void setExpandoBridgeAttributes(
800 com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
801 _journalFolder.setExpandoBridgeAttributes(expandoBridge);
802 }
803
804 @Override
805 public void setExpandoBridgeAttributes(
806 com.liferay.portal.service.ServiceContext serviceContext) {
807 _journalFolder.setExpandoBridgeAttributes(serviceContext);
808 }
809
810 @Override
811 public java.lang.Object clone() {
812 return new JournalFolderWrapper((JournalFolder)_journalFolder.clone());
813 }
814
815 @Override
816 public int compareTo(
817 com.liferay.portlet.journal.model.JournalFolder journalFolder) {
818 return _journalFolder.compareTo(journalFolder);
819 }
820
821 @Override
822 public int hashCode() {
823 return _journalFolder.hashCode();
824 }
825
826 @Override
827 public com.liferay.portal.model.CacheModel<com.liferay.portlet.journal.model.JournalFolder> toCacheModel() {
828 return _journalFolder.toCacheModel();
829 }
830
831 @Override
832 public com.liferay.portlet.journal.model.JournalFolder toEscapedModel() {
833 return new JournalFolderWrapper(_journalFolder.toEscapedModel());
834 }
835
836 @Override
837 public com.liferay.portlet.journal.model.JournalFolder toUnescapedModel() {
838 return new JournalFolderWrapper(_journalFolder.toUnescapedModel());
839 }
840
841 @Override
842 public java.lang.String toString() {
843 return _journalFolder.toString();
844 }
845
846 @Override
847 public java.lang.String toXmlString() {
848 return _journalFolder.toXmlString();
849 }
850
851 @Override
852 public void persist()
853 throws com.liferay.portal.kernel.exception.SystemException {
854 _journalFolder.persist();
855 }
856
857 @Override
858 public java.lang.String buildTreePath()
859 throws com.liferay.portal.kernel.exception.PortalException,
860 com.liferay.portal.kernel.exception.SystemException {
861 return _journalFolder.buildTreePath();
862 }
863
864 @Override
865 public void updateTreePath(java.lang.String treePath)
866 throws com.liferay.portal.kernel.exception.SystemException {
867 _journalFolder.updateTreePath(treePath);
868 }
869
870 @Override
871 public java.util.List<java.lang.Long> getAncestorFolderIds()
872 throws com.liferay.portal.kernel.exception.PortalException,
873 com.liferay.portal.kernel.exception.SystemException {
874 return _journalFolder.getAncestorFolderIds();
875 }
876
877 @Override
878 public java.util.List<com.liferay.portlet.journal.model.JournalFolder> getAncestors()
879 throws com.liferay.portal.kernel.exception.PortalException,
880 com.liferay.portal.kernel.exception.SystemException {
881 return _journalFolder.getAncestors();
882 }
883
884 @Override
885 public com.liferay.portlet.journal.model.JournalFolder getParentFolder()
886 throws com.liferay.portal.kernel.exception.PortalException,
887 com.liferay.portal.kernel.exception.SystemException {
888 return _journalFolder.getParentFolder();
889 }
890
891 @Override
892 public boolean isInTrashExplicitly()
893 throws com.liferay.portal.kernel.exception.SystemException {
894 return _journalFolder.isInTrashExplicitly();
895 }
896
897 @Override
898 public boolean isRoot() {
899 return _journalFolder.isRoot();
900 }
901
902 @Override
903 public boolean equals(Object obj) {
904 if (this == obj) {
905 return true;
906 }
907
908 if (!(obj instanceof JournalFolderWrapper)) {
909 return false;
910 }
911
912 JournalFolderWrapper journalFolderWrapper = (JournalFolderWrapper)obj;
913
914 if (Validator.equals(_journalFolder, journalFolderWrapper._journalFolder)) {
915 return true;
916 }
917
918 return false;
919 }
920
921 @Override
922 public StagedModelType getStagedModelType() {
923 return _journalFolder.getStagedModelType();
924 }
925
926
929 public JournalFolder getWrappedJournalFolder() {
930 return _journalFolder;
931 }
932
933 @Override
934 public JournalFolder getWrappedModel() {
935 return _journalFolder;
936 }
937
938 @Override
939 public void resetOriginalValues() {
940 _journalFolder.resetOriginalValues();
941 }
942
943 private JournalFolder _journalFolder;
944 }