001
014
015 package com.liferay.portlet.wiki.model;
016
017 import com.liferay.portal.model.ModelWrapper;
018
019 import java.util.Date;
020 import java.util.HashMap;
021 import java.util.Map;
022
023
032 public class WikiPageWrapper implements WikiPage, ModelWrapper<WikiPage> {
033 public WikiPageWrapper(WikiPage wikiPage) {
034 _wikiPage = wikiPage;
035 }
036
037 public Class<?> getModelClass() {
038 return WikiPage.class;
039 }
040
041 public String getModelClassName() {
042 return WikiPage.class.getName();
043 }
044
045 public Map<String, Object> getModelAttributes() {
046 Map<String, Object> attributes = new HashMap<String, Object>();
047
048 attributes.put("uuid", getUuid());
049 attributes.put("pageId", getPageId());
050 attributes.put("resourcePrimKey", getResourcePrimKey());
051 attributes.put("groupId", getGroupId());
052 attributes.put("companyId", getCompanyId());
053 attributes.put("userId", getUserId());
054 attributes.put("userName", getUserName());
055 attributes.put("createDate", getCreateDate());
056 attributes.put("modifiedDate", getModifiedDate());
057 attributes.put("nodeId", getNodeId());
058 attributes.put("title", getTitle());
059 attributes.put("version", getVersion());
060 attributes.put("minorEdit", getMinorEdit());
061 attributes.put("content", getContent());
062 attributes.put("summary", getSummary());
063 attributes.put("format", getFormat());
064 attributes.put("head", getHead());
065 attributes.put("parentTitle", getParentTitle());
066 attributes.put("redirectTitle", getRedirectTitle());
067 attributes.put("status", getStatus());
068 attributes.put("statusByUserId", getStatusByUserId());
069 attributes.put("statusByUserName", getStatusByUserName());
070 attributes.put("statusDate", getStatusDate());
071
072 return attributes;
073 }
074
075 public void setModelAttributes(Map<String, Object> attributes) {
076 String uuid = (String)attributes.get("uuid");
077
078 if (uuid != null) {
079 setUuid(uuid);
080 }
081
082 Long pageId = (Long)attributes.get("pageId");
083
084 if (pageId != null) {
085 setPageId(pageId);
086 }
087
088 Long resourcePrimKey = (Long)attributes.get("resourcePrimKey");
089
090 if (resourcePrimKey != null) {
091 setResourcePrimKey(resourcePrimKey);
092 }
093
094 Long groupId = (Long)attributes.get("groupId");
095
096 if (groupId != null) {
097 setGroupId(groupId);
098 }
099
100 Long companyId = (Long)attributes.get("companyId");
101
102 if (companyId != null) {
103 setCompanyId(companyId);
104 }
105
106 Long userId = (Long)attributes.get("userId");
107
108 if (userId != null) {
109 setUserId(userId);
110 }
111
112 String userName = (String)attributes.get("userName");
113
114 if (userName != null) {
115 setUserName(userName);
116 }
117
118 Date createDate = (Date)attributes.get("createDate");
119
120 if (createDate != null) {
121 setCreateDate(createDate);
122 }
123
124 Date modifiedDate = (Date)attributes.get("modifiedDate");
125
126 if (modifiedDate != null) {
127 setModifiedDate(modifiedDate);
128 }
129
130 Long nodeId = (Long)attributes.get("nodeId");
131
132 if (nodeId != null) {
133 setNodeId(nodeId);
134 }
135
136 String title = (String)attributes.get("title");
137
138 if (title != null) {
139 setTitle(title);
140 }
141
142 Double version = (Double)attributes.get("version");
143
144 if (version != null) {
145 setVersion(version);
146 }
147
148 Boolean minorEdit = (Boolean)attributes.get("minorEdit");
149
150 if (minorEdit != null) {
151 setMinorEdit(minorEdit);
152 }
153
154 String content = (String)attributes.get("content");
155
156 if (content != null) {
157 setContent(content);
158 }
159
160 String summary = (String)attributes.get("summary");
161
162 if (summary != null) {
163 setSummary(summary);
164 }
165
166 String format = (String)attributes.get("format");
167
168 if (format != null) {
169 setFormat(format);
170 }
171
172 Boolean head = (Boolean)attributes.get("head");
173
174 if (head != null) {
175 setHead(head);
176 }
177
178 String parentTitle = (String)attributes.get("parentTitle");
179
180 if (parentTitle != null) {
181 setParentTitle(parentTitle);
182 }
183
184 String redirectTitle = (String)attributes.get("redirectTitle");
185
186 if (redirectTitle != null) {
187 setRedirectTitle(redirectTitle);
188 }
189
190 Integer status = (Integer)attributes.get("status");
191
192 if (status != null) {
193 setStatus(status);
194 }
195
196 Long statusByUserId = (Long)attributes.get("statusByUserId");
197
198 if (statusByUserId != null) {
199 setStatusByUserId(statusByUserId);
200 }
201
202 String statusByUserName = (String)attributes.get("statusByUserName");
203
204 if (statusByUserName != null) {
205 setStatusByUserName(statusByUserName);
206 }
207
208 Date statusDate = (Date)attributes.get("statusDate");
209
210 if (statusDate != null) {
211 setStatusDate(statusDate);
212 }
213 }
214
215
220 public long getPrimaryKey() {
221 return _wikiPage.getPrimaryKey();
222 }
223
224
229 public void setPrimaryKey(long primaryKey) {
230 _wikiPage.setPrimaryKey(primaryKey);
231 }
232
233
238 public java.lang.String getUuid() {
239 return _wikiPage.getUuid();
240 }
241
242
247 public void setUuid(java.lang.String uuid) {
248 _wikiPage.setUuid(uuid);
249 }
250
251
256 public long getPageId() {
257 return _wikiPage.getPageId();
258 }
259
260
265 public void setPageId(long pageId) {
266 _wikiPage.setPageId(pageId);
267 }
268
269
274 public long getResourcePrimKey() {
275 return _wikiPage.getResourcePrimKey();
276 }
277
278
283 public void setResourcePrimKey(long resourcePrimKey) {
284 _wikiPage.setResourcePrimKey(resourcePrimKey);
285 }
286
287 public boolean isResourceMain() {
288 return _wikiPage.isResourceMain();
289 }
290
291
296 public long getGroupId() {
297 return _wikiPage.getGroupId();
298 }
299
300
305 public void setGroupId(long groupId) {
306 _wikiPage.setGroupId(groupId);
307 }
308
309
314 public long getCompanyId() {
315 return _wikiPage.getCompanyId();
316 }
317
318
323 public void setCompanyId(long companyId) {
324 _wikiPage.setCompanyId(companyId);
325 }
326
327
332 public long getUserId() {
333 return _wikiPage.getUserId();
334 }
335
336
341 public void setUserId(long userId) {
342 _wikiPage.setUserId(userId);
343 }
344
345
351 public java.lang.String getUserUuid()
352 throws com.liferay.portal.kernel.exception.SystemException {
353 return _wikiPage.getUserUuid();
354 }
355
356
361 public void setUserUuid(java.lang.String userUuid) {
362 _wikiPage.setUserUuid(userUuid);
363 }
364
365
370 public java.lang.String getUserName() {
371 return _wikiPage.getUserName();
372 }
373
374
379 public void setUserName(java.lang.String userName) {
380 _wikiPage.setUserName(userName);
381 }
382
383
388 public java.util.Date getCreateDate() {
389 return _wikiPage.getCreateDate();
390 }
391
392
397 public void setCreateDate(java.util.Date createDate) {
398 _wikiPage.setCreateDate(createDate);
399 }
400
401
406 public java.util.Date getModifiedDate() {
407 return _wikiPage.getModifiedDate();
408 }
409
410
415 public void setModifiedDate(java.util.Date modifiedDate) {
416 _wikiPage.setModifiedDate(modifiedDate);
417 }
418
419
424 public long getNodeId() {
425 return _wikiPage.getNodeId();
426 }
427
428
433 public void setNodeId(long nodeId) {
434 _wikiPage.setNodeId(nodeId);
435 }
436
437
442 public java.lang.String getTitle() {
443 return _wikiPage.getTitle();
444 }
445
446
451 public void setTitle(java.lang.String title) {
452 _wikiPage.setTitle(title);
453 }
454
455
460 public double getVersion() {
461 return _wikiPage.getVersion();
462 }
463
464
469 public void setVersion(double version) {
470 _wikiPage.setVersion(version);
471 }
472
473
478 public boolean getMinorEdit() {
479 return _wikiPage.getMinorEdit();
480 }
481
482
487 public boolean isMinorEdit() {
488 return _wikiPage.isMinorEdit();
489 }
490
491
496 public void setMinorEdit(boolean minorEdit) {
497 _wikiPage.setMinorEdit(minorEdit);
498 }
499
500
505 public java.lang.String getContent() {
506 return _wikiPage.getContent();
507 }
508
509
514 public void setContent(java.lang.String content) {
515 _wikiPage.setContent(content);
516 }
517
518
523 public java.lang.String getSummary() {
524 return _wikiPage.getSummary();
525 }
526
527
532 public void setSummary(java.lang.String summary) {
533 _wikiPage.setSummary(summary);
534 }
535
536
541 public java.lang.String getFormat() {
542 return _wikiPage.getFormat();
543 }
544
545
550 public void setFormat(java.lang.String format) {
551 _wikiPage.setFormat(format);
552 }
553
554
559 public boolean getHead() {
560 return _wikiPage.getHead();
561 }
562
563
568 public boolean isHead() {
569 return _wikiPage.isHead();
570 }
571
572
577 public void setHead(boolean head) {
578 _wikiPage.setHead(head);
579 }
580
581
586 public java.lang.String getParentTitle() {
587 return _wikiPage.getParentTitle();
588 }
589
590
595 public void setParentTitle(java.lang.String parentTitle) {
596 _wikiPage.setParentTitle(parentTitle);
597 }
598
599
604 public java.lang.String getRedirectTitle() {
605 return _wikiPage.getRedirectTitle();
606 }
607
608
613 public void setRedirectTitle(java.lang.String redirectTitle) {
614 _wikiPage.setRedirectTitle(redirectTitle);
615 }
616
617
622 public int getStatus() {
623 return _wikiPage.getStatus();
624 }
625
626
631 public void setStatus(int status) {
632 _wikiPage.setStatus(status);
633 }
634
635
640 public long getStatusByUserId() {
641 return _wikiPage.getStatusByUserId();
642 }
643
644
649 public void setStatusByUserId(long statusByUserId) {
650 _wikiPage.setStatusByUserId(statusByUserId);
651 }
652
653
659 public java.lang.String getStatusByUserUuid()
660 throws com.liferay.portal.kernel.exception.SystemException {
661 return _wikiPage.getStatusByUserUuid();
662 }
663
664
669 public void setStatusByUserUuid(java.lang.String statusByUserUuid) {
670 _wikiPage.setStatusByUserUuid(statusByUserUuid);
671 }
672
673
678 public java.lang.String getStatusByUserName() {
679 return _wikiPage.getStatusByUserName();
680 }
681
682
687 public void setStatusByUserName(java.lang.String statusByUserName) {
688 _wikiPage.setStatusByUserName(statusByUserName);
689 }
690
691
696 public java.util.Date getStatusDate() {
697 return _wikiPage.getStatusDate();
698 }
699
700
705 public void setStatusDate(java.util.Date statusDate) {
706 _wikiPage.setStatusDate(statusDate);
707 }
708
709
712 public boolean getApproved() {
713 return _wikiPage.getApproved();
714 }
715
716
721 public boolean isApproved() {
722 return _wikiPage.isApproved();
723 }
724
725
730 public boolean isDenied() {
731 return _wikiPage.isDenied();
732 }
733
734
739 public boolean isDraft() {
740 return _wikiPage.isDraft();
741 }
742
743
748 public boolean isExpired() {
749 return _wikiPage.isExpired();
750 }
751
752
757 public boolean isInactive() {
758 return _wikiPage.isInactive();
759 }
760
761
766 public boolean isIncomplete() {
767 return _wikiPage.isIncomplete();
768 }
769
770
775 public boolean isInTrash() {
776 return _wikiPage.isInTrash();
777 }
778
779
784 public boolean isPending() {
785 return _wikiPage.isPending();
786 }
787
788
793 public boolean isScheduled() {
794 return _wikiPage.isScheduled();
795 }
796
797 public boolean isNew() {
798 return _wikiPage.isNew();
799 }
800
801 public void setNew(boolean n) {
802 _wikiPage.setNew(n);
803 }
804
805 public boolean isCachedModel() {
806 return _wikiPage.isCachedModel();
807 }
808
809 public void setCachedModel(boolean cachedModel) {
810 _wikiPage.setCachedModel(cachedModel);
811 }
812
813 public boolean isEscapedModel() {
814 return _wikiPage.isEscapedModel();
815 }
816
817 public java.io.Serializable getPrimaryKeyObj() {
818 return _wikiPage.getPrimaryKeyObj();
819 }
820
821 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
822 _wikiPage.setPrimaryKeyObj(primaryKeyObj);
823 }
824
825 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
826 return _wikiPage.getExpandoBridge();
827 }
828
829 public void setExpandoBridgeAttributes(
830 com.liferay.portal.model.BaseModel<?> baseModel) {
831 _wikiPage.setExpandoBridgeAttributes(baseModel);
832 }
833
834 public void setExpandoBridgeAttributes(
835 com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
836 _wikiPage.setExpandoBridgeAttributes(expandoBridge);
837 }
838
839 public void setExpandoBridgeAttributes(
840 com.liferay.portal.service.ServiceContext serviceContext) {
841 _wikiPage.setExpandoBridgeAttributes(serviceContext);
842 }
843
844 @Override
845 public java.lang.Object clone() {
846 return new WikiPageWrapper((WikiPage)_wikiPage.clone());
847 }
848
849 public int compareTo(com.liferay.portlet.wiki.model.WikiPage wikiPage) {
850 return _wikiPage.compareTo(wikiPage);
851 }
852
853 @Override
854 public int hashCode() {
855 return _wikiPage.hashCode();
856 }
857
858 public com.liferay.portal.model.CacheModel<com.liferay.portlet.wiki.model.WikiPage> toCacheModel() {
859 return _wikiPage.toCacheModel();
860 }
861
862 public com.liferay.portlet.wiki.model.WikiPage toEscapedModel() {
863 return new WikiPageWrapper(_wikiPage.toEscapedModel());
864 }
865
866 public com.liferay.portlet.wiki.model.WikiPage toUnescapedModel() {
867 return new WikiPageWrapper(_wikiPage.toUnescapedModel());
868 }
869
870 @Override
871 public java.lang.String toString() {
872 return _wikiPage.toString();
873 }
874
875 public java.lang.String toXmlString() {
876 return _wikiPage.toXmlString();
877 }
878
879 public void persist()
880 throws com.liferay.portal.kernel.exception.SystemException {
881 _wikiPage.persist();
882 }
883
884 public com.liferay.portal.kernel.repository.model.Folder addAttachmentsFolder()
885 throws com.liferay.portal.kernel.exception.PortalException,
886 com.liferay.portal.kernel.exception.SystemException {
887 return _wikiPage.addAttachmentsFolder();
888 }
889
890 public java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getAttachmentsFileEntries()
891 throws com.liferay.portal.kernel.exception.SystemException {
892 return _wikiPage.getAttachmentsFileEntries();
893 }
894
895 public java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getAttachmentsFileEntries(
896 int start, int end)
897 throws com.liferay.portal.kernel.exception.SystemException {
898 return _wikiPage.getAttachmentsFileEntries(start, end);
899 }
900
901 public int getAttachmentsFileEntriesCount()
902 throws com.liferay.portal.kernel.exception.SystemException {
903 return _wikiPage.getAttachmentsFileEntriesCount();
904 }
905
906 public long getAttachmentsFolderId()
907 throws com.liferay.portal.kernel.exception.SystemException {
908 return _wikiPage.getAttachmentsFolderId();
909 }
910
911 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getChildPages() {
912 return _wikiPage.getChildPages();
913 }
914
915 public java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getDeletedAttachmentsFileEntries()
916 throws com.liferay.portal.kernel.exception.SystemException {
917 return _wikiPage.getDeletedAttachmentsFileEntries();
918 }
919
920 public java.util.List<com.liferay.portal.kernel.repository.model.FileEntry> getDeletedAttachmentsFileEntries(
921 int start, int end)
922 throws com.liferay.portal.kernel.exception.SystemException {
923 return _wikiPage.getDeletedAttachmentsFileEntries(start, end);
924 }
925
926 public int getDeletedAttachmentsFileEntriesCount()
927 throws com.liferay.portal.kernel.exception.SystemException {
928 return _wikiPage.getDeletedAttachmentsFileEntriesCount();
929 }
930
931 public com.liferay.portlet.wiki.model.WikiNode getNode() {
932 return _wikiPage.getNode();
933 }
934
935 public long getNodeAttachmentsFolderId()
936 throws com.liferay.portal.kernel.exception.SystemException {
937 return _wikiPage.getNodeAttachmentsFolderId();
938 }
939
940 public com.liferay.portlet.wiki.model.WikiPage getParentPage() {
941 return _wikiPage.getParentPage();
942 }
943
944 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getParentPages() {
945 return _wikiPage.getParentPages();
946 }
947
948 public com.liferay.portlet.wiki.model.WikiPage getRedirectPage() {
949 return _wikiPage.getRedirectPage();
950 }
951
952 public com.liferay.portlet.wiki.model.WikiNode getTrashContainer() {
953 return _wikiPage.getTrashContainer();
954 }
955
956 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getViewableChildPages() {
957 return _wikiPage.getViewableChildPages();
958 }
959
960 public com.liferay.portlet.wiki.model.WikiPage getViewableParentPage() {
961 return _wikiPage.getViewableParentPage();
962 }
963
964 public java.util.List<com.liferay.portlet.wiki.model.WikiPage> getViewableParentPages() {
965 return _wikiPage.getViewableParentPages();
966 }
967
968 public boolean isInTrashContainer() {
969 return _wikiPage.isInTrashContainer();
970 }
971
972 public void setAttachmentsFolderId(long attachmentsFolderId) {
973 _wikiPage.setAttachmentsFolderId(attachmentsFolderId);
974 }
975
976
979 public WikiPage getWrappedWikiPage() {
980 return _wikiPage;
981 }
982
983 public WikiPage getWrappedModel() {
984 return _wikiPage;
985 }
986
987 public void resetOriginalValues() {
988 _wikiPage.resetOriginalValues();
989 }
990
991 private WikiPage _wikiPage;
992 }