001
014
015 package com.liferay.portlet.wiki.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 WikiPageWrapper implements WikiPage, ModelWrapper<WikiPage> {
038 public WikiPageWrapper(WikiPage wikiPage) {
039 _wikiPage = wikiPage;
040 }
041
042 @Override
043 public Class<?> getModelClass() {
044 return WikiPage.class;
045 }
046
047 @Override
048 public String getModelClassName() {
049 return WikiPage.class.getName();
050 }
051
052 @Override
053 public Map<String, Object> getModelAttributes() {
054 Map<String, Object> attributes = new HashMap<String, Object>();
055
056 attributes.put("uuid", getUuid());
057 attributes.put("pageId", getPageId());
058 attributes.put("resourcePrimKey", getResourcePrimKey());
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("nodeId", getNodeId());
066 attributes.put("title", getTitle());
067 attributes.put("version", getVersion());
068 attributes.put("minorEdit", getMinorEdit());
069 attributes.put("content", getContent());
070 attributes.put("summary", getSummary());
071 attributes.put("format", getFormat());
072 attributes.put("head", getHead());
073 attributes.put("parentTitle", getParentTitle());
074 attributes.put("redirectTitle", getRedirectTitle());
075 attributes.put("status", getStatus());
076 attributes.put("statusByUserId", getStatusByUserId());
077 attributes.put("statusByUserName", getStatusByUserName());
078 attributes.put("statusDate", getStatusDate());
079
080 return attributes;
081 }
082
083 @Override
084 public void setModelAttributes(Map<String, Object> attributes) {
085 String uuid = (String)attributes.get("uuid");
086
087 if (uuid != null) {
088 setUuid(uuid);
089 }
090
091 Long pageId = (Long)attributes.get("pageId");
092
093 if (pageId != null) {
094 setPageId(pageId);
095 }
096
097 Long resourcePrimKey = (Long)attributes.get("resourcePrimKey");
098
099 if (resourcePrimKey != null) {
100 setResourcePrimKey(resourcePrimKey);
101 }
102
103 Long groupId = (Long)attributes.get("groupId");
104
105 if (groupId != null) {
106 setGroupId(groupId);
107 }
108
109 Long companyId = (Long)attributes.get("companyId");
110
111 if (companyId != null) {
112 setCompanyId(companyId);
113 }
114
115 Long userId = (Long)attributes.get("userId");
116
117 if (userId != null) {
118 setUserId(userId);
119 }
120
121 String userName = (String)attributes.get("userName");
122
123 if (userName != null) {
124 setUserName(userName);
125 }
126
127 Date createDate = (Date)attributes.get("createDate");
128
129 if (createDate != null) {
130 setCreateDate(createDate);
131 }
132
133 Date modifiedDate = (Date)attributes.get("modifiedDate");
134
135 if (modifiedDate != null) {
136 setModifiedDate(modifiedDate);
137 }
138
139 Long nodeId = (Long)attributes.get("nodeId");
140
141 if (nodeId != null) {
142 setNodeId(nodeId);
143 }
144
145 String title = (String)attributes.get("title");
146
147 if (title != null) {
148 setTitle(title);
149 }
150
151 Double version = (Double)attributes.get("version");
152
153 if (version != null) {
154 setVersion(version);
155 }
156
157 Boolean minorEdit = (Boolean)attributes.get("minorEdit");
158
159 if (minorEdit != null) {
160 setMinorEdit(minorEdit);
161 }
162
163 String content = (String)attributes.get("content");
164
165 if (content != null) {
166 setContent(content);
167 }
168
169 String summary = (String)attributes.get("summary");
170
171 if (summary != null) {
172 setSummary(summary);
173 }
174
175 String format = (String)attributes.get("format");
176
177 if (format != null) {
178 setFormat(format);
179 }
180
181 Boolean head = (Boolean)attributes.get("head");
182
183 if (head != null) {
184 setHead(head);
185 }
186
187 String parentTitle = (String)attributes.get("parentTitle");
188
189 if (parentTitle != null) {
190 setParentTitle(parentTitle);
191 }
192
193 String redirectTitle = (String)attributes.get("redirectTitle");
194
195 if (redirectTitle != null) {
196 setRedirectTitle(redirectTitle);
197 }
198
199 Integer status = (Integer)attributes.get("status");
200
201 if (status != null) {
202 setStatus(status);
203 }
204
205 Long statusByUserId = (Long)attributes.get("statusByUserId");
206
207 if (statusByUserId != null) {
208 setStatusByUserId(statusByUserId);
209 }
210
211 String statusByUserName = (String)attributes.get("statusByUserName");
212
213 if (statusByUserName != null) {
214 setStatusByUserName(statusByUserName);
215 }
216
217 Date statusDate = (Date)attributes.get("statusDate");
218
219 if (statusDate != null) {
220 setStatusDate(statusDate);
221 }
222 }
223
224
229 @Override
230 public long getPrimaryKey() {
231 return _wikiPage.getPrimaryKey();
232 }
233
234
239 @Override
240 public void setPrimaryKey(long primaryKey) {
241 _wikiPage.setPrimaryKey(primaryKey);
242 }
243
244
249 @Override
250 public java.lang.String getUuid() {
251 return _wikiPage.getUuid();
252 }
253
254
259 @Override
260 public void setUuid(java.lang.String uuid) {
261 _wikiPage.setUuid(uuid);
262 }
263
264
269 @Override
270 public long getPageId() {
271 return _wikiPage.getPageId();
272 }
273
274
279 @Override
280 public void setPageId(long pageId) {
281 _wikiPage.setPageId(pageId);
282 }
283
284
289 @Override
290 public long getResourcePrimKey() {
291 return _wikiPage.getResourcePrimKey();
292 }
293
294
299 @Override
300 public void setResourcePrimKey(long resourcePrimKey) {
301 _wikiPage.setResourcePrimKey(resourcePrimKey);
302 }
303
304 @Override
305 public boolean isResourceMain() {
306 return _wikiPage.isResourceMain();
307 }
308
309
314 @Override
315 public long getGroupId() {
316 return _wikiPage.getGroupId();
317 }
318
319
324 @Override
325 public void setGroupId(long groupId) {
326 _wikiPage.setGroupId(groupId);
327 }
328
329
334 @Override
335 public long getCompanyId() {
336 return _wikiPage.getCompanyId();
337 }
338
339
344 @Override
345 public void setCompanyId(long companyId) {
346 _wikiPage.setCompanyId(companyId);
347 }
348
349
354 @Override
355 public long getUserId() {
356 return _wikiPage.getUserId();
357 }
358
359
364 @Override
365 public void setUserId(long userId) {
366 _wikiPage.setUserId(userId);
367 }
368
369
375 @Override
376 public java.lang.String getUserUuid()
377 throws com.liferay.portal.kernel.exception.SystemException {
378 return _wikiPage.getUserUuid();
379 }
380
381
386 @Override
387 public void setUserUuid(java.lang.String userUuid) {
388 _wikiPage.setUserUuid(userUuid);
389 }
390
391
396 @Override
397 public java.lang.String getUserName() {
398 return _wikiPage.getUserName();
399 }
400
401
406 @Override
407 public void setUserName(java.lang.String userName) {
408 _wikiPage.setUserName(userName);
409 }
410
411
416 @Override
417 public java.util.Date getCreateDate() {
418 return _wikiPage.getCreateDate();
419 }
420
421
426 @Override
427 public void setCreateDate(java.util.Date createDate) {
428 _wikiPage.setCreateDate(createDate);
429 }
430
431
436 @Override
437 public java.util.Date getModifiedDate() {
438 return _wikiPage.getModifiedDate();
439 }
440
441
446 @Override
447 public void setModifiedDate(java.util.Date modifiedDate) {
448 _wikiPage.setModifiedDate(modifiedDate);
449 }
450
451
456 @Override
457 public long getNodeId() {
458 return _wikiPage.getNodeId();
459 }
460
461
466 @Override
467 public void setNodeId(long nodeId) {
468 _wikiPage.setNodeId(nodeId);
469 }
470
471
476 @Override
477 public java.lang.String getTitle() {
478 return _wikiPage.getTitle();
479 }
480
481
486 @Override
487 public void setTitle(java.lang.String title) {
488 _wikiPage.setTitle(title);
489 }
490
491
496 @Override
497 public double getVersion() {
498 return _wikiPage.getVersion();
499 }
500
501
506 @Override
507 public void setVersion(double version) {
508 _wikiPage.setVersion(version);
509 }
510
511
516 @Override
517 public boolean getMinorEdit() {
518 return _wikiPage.getMinorEdit();
519 }
520
521
526 @Override
527 public boolean isMinorEdit() {
528 return _wikiPage.isMinorEdit();
529 }
530
531
536 @Override
537 public void setMinorEdit(boolean minorEdit) {
538 _wikiPage.setMinorEdit(minorEdit);
539 }
540
541
546 @Override
547 public java.lang.String getContent() {
548 return _wikiPage.getContent();
549 }
550
551
556 @Override
557 public void setContent(java.lang.String content) {
558 _wikiPage.setContent(content);
559 }
560
561
566 @Override
567 public java.lang.String getSummary() {
568 return _wikiPage.getSummary();
569 }
570
571
576 @Override
577 public void setSummary(java.lang.String summary) {
578 _wikiPage.setSummary(summary);
579 }
580
581
586 @Override
587 public java.lang.String getFormat() {
588 return _wikiPage.getFormat();
589 }
590
591
596 @Override
597 public void setFormat(java.lang.String format) {
598 _wikiPage.setFormat(format);
599 }
600
601
606 @Override
607 public boolean getHead() {
608 return _wikiPage.getHead();
609 }
610
611
616 @Override
617 public boolean isHead() {
618 return _wikiPage.isHead();
619 }
620
621
626 @Override
627 public void setHead(boolean head) {
628 _wikiPage.setHead(head);
629 }
630
631
636 @Override
637 public java.lang.String getParentTitle() {
638 return _wikiPage.getParentTitle();
639 }
640
641
646 @Override
647 public void setParentTitle(java.lang.String parentTitle) {
648 _wikiPage.setParentTitle(parentTitle);
649 }
650
651
656 @Override
657 public java.lang.String getRedirectTitle() {
658 return _wikiPage.getRedirectTitle();
659 }
660
661
666 @Override
667 public void setRedirectTitle(java.lang.String redirectTitle) {
668 _wikiPage.setRedirectTitle(redirectTitle);
669 }
670
671
676 @Override
677 public int getStatus() {
678 return _wikiPage.getStatus();
679 }
680
681
686 @Override
687 public void setStatus(int status) {
688 _wikiPage.setStatus(status);
689 }
690
691
696 @Override
697 public long getStatusByUserId() {
698 return _wikiPage.getStatusByUserId();
699 }
700
701
706 @Override
707 public void setStatusByUserId(long statusByUserId) {
708 _wikiPage.setStatusByUserId(statusByUserId);
709 }
710
711
717 @Override
718 public java.lang.String getStatusByUserUuid()
719 throws com.liferay.portal.kernel.exception.SystemException {
720 return _wikiPage.getStatusByUserUuid();
721 }
722
723
728 @Override
729 public void setStatusByUserUuid(java.lang.String statusByUserUuid) {
730 _wikiPage.setStatusByUserUuid(statusByUserUuid);
731 }
732
733
738 @Override
739 public java.lang.String getStatusByUserName() {
740 return _wikiPage.getStatusByUserName();
741 }
742
743
748 @Override
749 public void setStatusByUserName(java.lang.String statusByUserName) {
750 _wikiPage.setStatusByUserName(statusByUserName);
751 }
752
753
758 @Override
759 public java.util.Date getStatusDate() {
760 return _wikiPage.getStatusDate();
761 }
762
763
768 @Override
769 public void setStatusDate(java.util.Date statusDate) {
770 _wikiPage.setStatusDate(statusDate);
771 }
772
773
779 @Override
780 public com.liferay.portlet.trash.model.TrashEntry getTrashEntry()
781 throws com.liferay.portal.kernel.exception.PortalException,
782 com.liferay.portal.kernel.exception.SystemException {
783 return _wikiPage.getTrashEntry();
784 }
785
786
791 @Override
792 public long getTrashEntryClassPK() {
793 return _wikiPage.getTrashEntryClassPK();
794 }
795
796
801 @Override
802 public com.liferay.portal.kernel.trash.TrashHandler getTrashHandler() {
803 return _wikiPage.getTrashHandler();
804 }
805
806
811 @Override
812 public boolean isInTrash() {
813 return _wikiPage.isInTrash();
814 }
815
816
822 @Override
823 public boolean isInTrashContainer() {
824 return _wikiPage.isInTrashContainer();
825 }
826
827
830 @Override
831 public boolean getApproved() {
832 return _wikiPage.getApproved();
833 }
834
835
840 @Override
841 public boolean isApproved() {
842 return _wikiPage.isApproved();
843 }
844
845
850 @Override
851 public boolean isDenied() {
852 return _wikiPage.isDenied();
853 }
854
855
860 @Override
861 public boolean isDraft() {
862 return _wikiPage.isDraft();
863 }
864
865
870 @Override
871 public boolean isExpired() {
872 return _wikiPage.isExpired();
873 }
874
875
880 @Override
881 public boolean isInactive() {
882 return _wikiPage.isInactive();
883 }
884
885
890 @Override
891 public boolean isIncomplete() {
892 return _wikiPage.isIncomplete();
893 }
894
895
900 @Override
901 public boolean isPending() {
902 return _wikiPage.isPending();
903 }
904
905
910 @Override
911 public boolean isScheduled() {
912 return _wikiPage.isScheduled();
913 }
914
915 @Override
916 public boolean isNew() {
917 return _wikiPage.isNew();
918 }
919
920 @Override
921 public void setNew(boolean n) {
922 _wikiPage.setNew(n);
923 }
924
925 @Override
926 public boolean isCachedModel() {
927 return _wikiPage.isCachedModel();
928 }
929
930 @Override
931 public void setCachedModel(boolean cachedModel) {
932 _wikiPage.setCachedModel(cachedModel);
933 }
934
935 @Override
936 public boolean isEscapedModel() {
937 return _wikiPage.isEscapedModel();
938 }
939
940 @Override
941 public java.io.Serializable getPrimaryKeyObj() {
942 return _wikiPage.getPrimaryKeyObj();
943 }
944
945 @Override
946 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
947 _wikiPage.setPrimaryKeyObj(primaryKeyObj);
948 }
949
950 @Override
951 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
952 return _wikiPage.getExpandoBridge();
953 }
954
955 @Override
956 public void setExpandoBridgeAttributes(
957 com.liferay.portal.model.BaseModel<?> baseModel) {
958 _wikiPage.setExpandoBridgeAttributes(baseModel);
959 }
960
961 @Override
962 public void setExpandoBridgeAttributes(
963 com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
964 _wikiPage.setExpandoBridgeAttributes(expandoBridge);
965 }
966
967 @Override
968 public void setExpandoBridgeAttributes(
969 com.liferay.portal.service.ServiceContext serviceContext) {
970 _wikiPage.setExpandoBridgeAttributes(serviceContext);
971 }
972
973 @Override
974 public java.lang.Object clone() {
975 return new WikiPageWrapper((WikiPage)_wikiPage.clone());
976 }
977
978 @Override
979 public int compareTo(com.liferay.portlet.wiki.model.WikiPage wikiPage) {
980 return _wikiPage.compareTo(wikiPage);
981 }
982
983 @Override
984 public int hashCode() {
985 return _wikiPage.hashCode();
986 }
987
988 @Override
989 public com.liferay.portal.model.CacheModel<com.liferay.portlet.wiki.model.WikiPage> toCacheModel() {
990 return _wikiPage.toCacheModel();
991 }
992
993 @Override
994 public com.liferay.portlet.wiki.model.WikiPage toEscapedModel() {
995 return new WikiPageWrapper(_wikiPage.toEscapedModel());
996 }
997
998 @Override
999 public com.liferay.portlet.wiki.model.WikiPage toUnescapedModel() {
1000 return new WikiPageWrapper(_wikiPage.toUnescapedModel());
1001 }
1002
1003 @Override
1004 public java.lang.String toString() {
1005 return _wikiPage.toString();
1006 }
1007
1008 @Override
1009 public java.lang.String toXmlString() {
1010 return _wikiPage.toXmlString();
1011 }
1012
1013 @Override
1014 public void persist()
1015 throws com.liferay.portal.kernel.exception.SystemException {
1016 _wikiPage.persist();
1017 }
1018
1019 @Override
1020 public com.liferay.portal.kernel.repository.model.Folder addAttachmentsFolder()
1021 throws com.liferay.portal.kernel.exception.PortalException,
1022 com.liferay.portal.kernel.exception.SystemException {
1023 return _wikiPage.addAttachmentsFolder();
1024 }
1025
1026 @Override
1027 public com.liferay.portlet.wiki.model.WikiPage fetchParentPage()
1028 throws com.liferay.portal.kernel.exception.SystemException {
1029 return _wikiPage.fetchParentPage();
1030 }
1031
1032 @Override
1033 public com.liferay.portlet.wiki.model.WikiPage fetchRedirectPage()
1034 throws com.liferay.portal.kernel.exception.SystemException {
1035 return _wikiPage.fetchRedirectPage();
1036 }
1037
1038 @Override
1039 public java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getAttachmentsFileEntries()
1040 throws com.liferay.portal.kernel.exception.SystemException {
1041 return _wikiPage.getAttachmentsFileEntries();
1042 }
1043
1044 @Override
1045 public java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getAttachmentsFileEntries(
1046 int start, int end)
1047 throws com.liferay.portal.kernel.exception.SystemException {
1048 return _wikiPage.getAttachmentsFileEntries(start, end);
1049 }
1050
1051 @Override
1052 public int getAttachmentsFileEntriesCount()
1053 throws com.liferay.portal.kernel.exception.SystemException {
1054 return _wikiPage.getAttachmentsFileEntriesCount();
1055 }
1056
1057 @Override
1058 public long getAttachmentsFolderId()
1059 throws com.liferay.portal.kernel.exception.SystemException {
1060 return _wikiPage.getAttachmentsFolderId();
1061 }
1062
1063 @Override
1064 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getChildPages() {
1065 return _wikiPage.getChildPages();
1066 }
1067
1068 @Override
1069 public java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getDeletedAttachmentsFileEntries()
1070 throws com.liferay.portal.kernel.exception.SystemException {
1071 return _wikiPage.getDeletedAttachmentsFileEntries();
1072 }
1073
1074 @Override
1075 public java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getDeletedAttachmentsFileEntries(
1076 int start, int end)
1077 throws com.liferay.portal.kernel.exception.SystemException {
1078 return _wikiPage.getDeletedAttachmentsFileEntries(start, end);
1079 }
1080
1081 @Override
1082 public int getDeletedAttachmentsFileEntriesCount()
1083 throws com.liferay.portal.kernel.exception.SystemException {
1084 return _wikiPage.getDeletedAttachmentsFileEntriesCount();
1085 }
1086
1087 @Override
1088 public com.liferay.portlet.wiki.model.WikiNode getNode() {
1089 return _wikiPage.getNode();
1090 }
1091
1092 @Override
1093 public long getNodeAttachmentsFolderId()
1094 throws com.liferay.portal.kernel.exception.SystemException {
1095 return _wikiPage.getNodeAttachmentsFolderId();
1096 }
1097
1098 @Override
1099 public com.liferay.portlet.wiki.model.WikiPage getParentPage()
1100 throws com.liferay.portal.kernel.exception.PortalException,
1101 com.liferay.portal.kernel.exception.SystemException {
1102 return _wikiPage.getParentPage();
1103 }
1104
1105 @Override
1106 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getParentPages()
1107 throws com.liferay.portal.kernel.exception.SystemException {
1108 return _wikiPage.getParentPages();
1109 }
1110
1111 @Override
1112 public com.liferay.portlet.wiki.model.WikiPage getRedirectPage()
1113 throws com.liferay.portal.kernel.exception.PortalException,
1114 com.liferay.portal.kernel.exception.SystemException {
1115 return _wikiPage.getRedirectPage();
1116 }
1117
1118 @Override
1119 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getViewableChildPages() {
1120 return _wikiPage.getViewableChildPages();
1121 }
1122
1123 @Override
1124 public com.liferay.portlet.wiki.model.WikiPage getViewableParentPage() {
1125 return _wikiPage.getViewableParentPage();
1126 }
1127
1128 @Override
1129 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getViewableParentPages() {
1130 return _wikiPage.getViewableParentPages();
1131 }
1132
1133 @Override
1134 public boolean isInTrashExplicitly()
1135 throws com.liferay.portal.kernel.exception.SystemException {
1136 return _wikiPage.isInTrashExplicitly();
1137 }
1138
1139 @Override
1140 public void setAttachmentsFolderId(long attachmentsFolderId) {
1141 _wikiPage.setAttachmentsFolderId(attachmentsFolderId);
1142 }
1143
1144 @Override
1145 public boolean equals(Object obj) {
1146 if (this == obj) {
1147 return true;
1148 }
1149
1150 if (!(obj instanceof WikiPageWrapper)) {
1151 return false;
1152 }
1153
1154 WikiPageWrapper wikiPageWrapper = (WikiPageWrapper)obj;
1155
1156 if (Validator.equals(_wikiPage, wikiPageWrapper._wikiPage)) {
1157 return true;
1158 }
1159
1160 return false;
1161 }
1162
1163 @Override
1164 public StagedModelType getStagedModelType() {
1165 return _wikiPage.getStagedModelType();
1166 }
1167
1168
1171 public WikiPage getWrappedWikiPage() {
1172 return _wikiPage;
1173 }
1174
1175 @Override
1176 public WikiPage getWrappedModel() {
1177 return _wikiPage;
1178 }
1179
1180 @Override
1181 public void resetOriginalValues() {
1182 _wikiPage.resetOriginalValues();
1183 }
1184
1185 private WikiPage _wikiPage;
1186 }