001
014
015 package com.liferay.portlet.bookmarks.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 BookmarksFolderWrapper implements BookmarksFolder,
038 ModelWrapper<BookmarksFolder> {
039 public BookmarksFolderWrapper(BookmarksFolder bookmarksFolder) {
040 _bookmarksFolder = bookmarksFolder;
041 }
042
043 @Override
044 public Class<?> getModelClass() {
045 return BookmarksFolder.class;
046 }
047
048 @Override
049 public String getModelClassName() {
050 return BookmarksFolder.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("resourceBlockId", getResourceBlockId());
066 attributes.put("parentFolderId", getParentFolderId());
067 attributes.put("treePath", getTreePath());
068 attributes.put("name", getName());
069 attributes.put("description", getDescription());
070 attributes.put("status", getStatus());
071 attributes.put("statusByUserId", getStatusByUserId());
072 attributes.put("statusByUserName", getStatusByUserName());
073 attributes.put("statusDate", getStatusDate());
074
075 return attributes;
076 }
077
078 @Override
079 public void setModelAttributes(Map<String, Object> attributes) {
080 String uuid = (String)attributes.get("uuid");
081
082 if (uuid != null) {
083 setUuid(uuid);
084 }
085
086 Long folderId = (Long)attributes.get("folderId");
087
088 if (folderId != null) {
089 setFolderId(folderId);
090 }
091
092 Long groupId = (Long)attributes.get("groupId");
093
094 if (groupId != null) {
095 setGroupId(groupId);
096 }
097
098 Long companyId = (Long)attributes.get("companyId");
099
100 if (companyId != null) {
101 setCompanyId(companyId);
102 }
103
104 Long userId = (Long)attributes.get("userId");
105
106 if (userId != null) {
107 setUserId(userId);
108 }
109
110 String userName = (String)attributes.get("userName");
111
112 if (userName != null) {
113 setUserName(userName);
114 }
115
116 Date createDate = (Date)attributes.get("createDate");
117
118 if (createDate != null) {
119 setCreateDate(createDate);
120 }
121
122 Date modifiedDate = (Date)attributes.get("modifiedDate");
123
124 if (modifiedDate != null) {
125 setModifiedDate(modifiedDate);
126 }
127
128 Long resourceBlockId = (Long)attributes.get("resourceBlockId");
129
130 if (resourceBlockId != null) {
131 setResourceBlockId(resourceBlockId);
132 }
133
134 Long parentFolderId = (Long)attributes.get("parentFolderId");
135
136 if (parentFolderId != null) {
137 setParentFolderId(parentFolderId);
138 }
139
140 String treePath = (String)attributes.get("treePath");
141
142 if (treePath != null) {
143 setTreePath(treePath);
144 }
145
146 String name = (String)attributes.get("name");
147
148 if (name != null) {
149 setName(name);
150 }
151
152 String description = (String)attributes.get("description");
153
154 if (description != null) {
155 setDescription(description);
156 }
157
158 Integer status = (Integer)attributes.get("status");
159
160 if (status != null) {
161 setStatus(status);
162 }
163
164 Long statusByUserId = (Long)attributes.get("statusByUserId");
165
166 if (statusByUserId != null) {
167 setStatusByUserId(statusByUserId);
168 }
169
170 String statusByUserName = (String)attributes.get("statusByUserName");
171
172 if (statusByUserName != null) {
173 setStatusByUserName(statusByUserName);
174 }
175
176 Date statusDate = (Date)attributes.get("statusDate");
177
178 if (statusDate != null) {
179 setStatusDate(statusDate);
180 }
181 }
182
183
188 @Override
189 public long getPrimaryKey() {
190 return _bookmarksFolder.getPrimaryKey();
191 }
192
193
198 @Override
199 public void setPrimaryKey(long primaryKey) {
200 _bookmarksFolder.setPrimaryKey(primaryKey);
201 }
202
203
208 @Override
209 public java.lang.String getUuid() {
210 return _bookmarksFolder.getUuid();
211 }
212
213
218 @Override
219 public void setUuid(java.lang.String uuid) {
220 _bookmarksFolder.setUuid(uuid);
221 }
222
223
228 @Override
229 public long getFolderId() {
230 return _bookmarksFolder.getFolderId();
231 }
232
233
238 @Override
239 public void setFolderId(long folderId) {
240 _bookmarksFolder.setFolderId(folderId);
241 }
242
243
248 @Override
249 public long getGroupId() {
250 return _bookmarksFolder.getGroupId();
251 }
252
253
258 @Override
259 public void setGroupId(long groupId) {
260 _bookmarksFolder.setGroupId(groupId);
261 }
262
263
268 @Override
269 public long getCompanyId() {
270 return _bookmarksFolder.getCompanyId();
271 }
272
273
278 @Override
279 public void setCompanyId(long companyId) {
280 _bookmarksFolder.setCompanyId(companyId);
281 }
282
283
288 @Override
289 public long getUserId() {
290 return _bookmarksFolder.getUserId();
291 }
292
293
298 @Override
299 public void setUserId(long userId) {
300 _bookmarksFolder.setUserId(userId);
301 }
302
303
309 @Override
310 public java.lang.String getUserUuid()
311 throws com.liferay.portal.kernel.exception.SystemException {
312 return _bookmarksFolder.getUserUuid();
313 }
314
315
320 @Override
321 public void setUserUuid(java.lang.String userUuid) {
322 _bookmarksFolder.setUserUuid(userUuid);
323 }
324
325
330 @Override
331 public java.lang.String getUserName() {
332 return _bookmarksFolder.getUserName();
333 }
334
335
340 @Override
341 public void setUserName(java.lang.String userName) {
342 _bookmarksFolder.setUserName(userName);
343 }
344
345
350 @Override
351 public java.util.Date getCreateDate() {
352 return _bookmarksFolder.getCreateDate();
353 }
354
355
360 @Override
361 public void setCreateDate(java.util.Date createDate) {
362 _bookmarksFolder.setCreateDate(createDate);
363 }
364
365
370 @Override
371 public java.util.Date getModifiedDate() {
372 return _bookmarksFolder.getModifiedDate();
373 }
374
375
380 @Override
381 public void setModifiedDate(java.util.Date modifiedDate) {
382 _bookmarksFolder.setModifiedDate(modifiedDate);
383 }
384
385
390 @Override
391 public long getResourceBlockId() {
392 return _bookmarksFolder.getResourceBlockId();
393 }
394
395
400 @Override
401 public void setResourceBlockId(long resourceBlockId) {
402 _bookmarksFolder.setResourceBlockId(resourceBlockId);
403 }
404
405
410 @Override
411 public long getParentFolderId() {
412 return _bookmarksFolder.getParentFolderId();
413 }
414
415
420 @Override
421 public void setParentFolderId(long parentFolderId) {
422 _bookmarksFolder.setParentFolderId(parentFolderId);
423 }
424
425
430 @Override
431 public java.lang.String getTreePath() {
432 return _bookmarksFolder.getTreePath();
433 }
434
435
440 @Override
441 public void setTreePath(java.lang.String treePath) {
442 _bookmarksFolder.setTreePath(treePath);
443 }
444
445
450 @Override
451 public java.lang.String getName() {
452 return _bookmarksFolder.getName();
453 }
454
455
460 @Override
461 public void setName(java.lang.String name) {
462 _bookmarksFolder.setName(name);
463 }
464
465
470 @Override
471 public java.lang.String getDescription() {
472 return _bookmarksFolder.getDescription();
473 }
474
475
480 @Override
481 public void setDescription(java.lang.String description) {
482 _bookmarksFolder.setDescription(description);
483 }
484
485
490 @Override
491 public int getStatus() {
492 return _bookmarksFolder.getStatus();
493 }
494
495
500 @Override
501 public void setStatus(int status) {
502 _bookmarksFolder.setStatus(status);
503 }
504
505
510 @Override
511 public long getStatusByUserId() {
512 return _bookmarksFolder.getStatusByUserId();
513 }
514
515
520 @Override
521 public void setStatusByUserId(long statusByUserId) {
522 _bookmarksFolder.setStatusByUserId(statusByUserId);
523 }
524
525
531 @Override
532 public java.lang.String getStatusByUserUuid()
533 throws com.liferay.portal.kernel.exception.SystemException {
534 return _bookmarksFolder.getStatusByUserUuid();
535 }
536
537
542 @Override
543 public void setStatusByUserUuid(java.lang.String statusByUserUuid) {
544 _bookmarksFolder.setStatusByUserUuid(statusByUserUuid);
545 }
546
547
552 @Override
553 public java.lang.String getStatusByUserName() {
554 return _bookmarksFolder.getStatusByUserName();
555 }
556
557
562 @Override
563 public void setStatusByUserName(java.lang.String statusByUserName) {
564 _bookmarksFolder.setStatusByUserName(statusByUserName);
565 }
566
567
572 @Override
573 public java.util.Date getStatusDate() {
574 return _bookmarksFolder.getStatusDate();
575 }
576
577
582 @Override
583 public void setStatusDate(java.util.Date statusDate) {
584 _bookmarksFolder.setStatusDate(statusDate);
585 }
586
587
593 @Override
594 public com.liferay.portlet.trash.model.TrashEntry getTrashEntry()
595 throws com.liferay.portal.kernel.exception.PortalException,
596 com.liferay.portal.kernel.exception.SystemException {
597 return _bookmarksFolder.getTrashEntry();
598 }
599
600
605 @Override
606 public long getTrashEntryClassPK() {
607 return _bookmarksFolder.getTrashEntryClassPK();
608 }
609
610
615 @Override
616 public com.liferay.portal.kernel.trash.TrashHandler getTrashHandler() {
617 return _bookmarksFolder.getTrashHandler();
618 }
619
620
625 @Override
626 public boolean isInTrash() {
627 return _bookmarksFolder.isInTrash();
628 }
629
630
636 @Override
637 public boolean isInTrashContainer() {
638 return _bookmarksFolder.isInTrashContainer();
639 }
640
641
644 @Override
645 public boolean getApproved() {
646 return _bookmarksFolder.getApproved();
647 }
648
649
654 @Override
655 public boolean isApproved() {
656 return _bookmarksFolder.isApproved();
657 }
658
659
664 @Override
665 public boolean isDenied() {
666 return _bookmarksFolder.isDenied();
667 }
668
669
674 @Override
675 public boolean isDraft() {
676 return _bookmarksFolder.isDraft();
677 }
678
679
684 @Override
685 public boolean isExpired() {
686 return _bookmarksFolder.isExpired();
687 }
688
689
694 @Override
695 public boolean isInactive() {
696 return _bookmarksFolder.isInactive();
697 }
698
699
704 @Override
705 public boolean isIncomplete() {
706 return _bookmarksFolder.isIncomplete();
707 }
708
709
714 @Override
715 public boolean isPending() {
716 return _bookmarksFolder.isPending();
717 }
718
719
724 @Override
725 public boolean isScheduled() {
726 return _bookmarksFolder.isScheduled();
727 }
728
729
734 @Override
735 public long getContainerModelId() {
736 return _bookmarksFolder.getContainerModelId();
737 }
738
739
744 @Override
745 public void setContainerModelId(long containerModelId) {
746 _bookmarksFolder.setContainerModelId(containerModelId);
747 }
748
749
754 @Override
755 public java.lang.String getContainerModelName() {
756 return _bookmarksFolder.getContainerModelName();
757 }
758
759
764 @Override
765 public long getParentContainerModelId() {
766 return _bookmarksFolder.getParentContainerModelId();
767 }
768
769
774 @Override
775 public void setParentContainerModelId(long parentContainerModelId) {
776 _bookmarksFolder.setParentContainerModelId(parentContainerModelId);
777 }
778
779 @Override
780 public boolean isNew() {
781 return _bookmarksFolder.isNew();
782 }
783
784 @Override
785 public void setNew(boolean n) {
786 _bookmarksFolder.setNew(n);
787 }
788
789 @Override
790 public boolean isCachedModel() {
791 return _bookmarksFolder.isCachedModel();
792 }
793
794 @Override
795 public void setCachedModel(boolean cachedModel) {
796 _bookmarksFolder.setCachedModel(cachedModel);
797 }
798
799 @Override
800 public boolean isEscapedModel() {
801 return _bookmarksFolder.isEscapedModel();
802 }
803
804 @Override
805 public java.io.Serializable getPrimaryKeyObj() {
806 return _bookmarksFolder.getPrimaryKeyObj();
807 }
808
809 @Override
810 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
811 _bookmarksFolder.setPrimaryKeyObj(primaryKeyObj);
812 }
813
814 @Override
815 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
816 return _bookmarksFolder.getExpandoBridge();
817 }
818
819 @Override
820 public void setExpandoBridgeAttributes(
821 com.liferay.portal.model.BaseModel<?> baseModel) {
822 _bookmarksFolder.setExpandoBridgeAttributes(baseModel);
823 }
824
825 @Override
826 public void setExpandoBridgeAttributes(
827 com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
828 _bookmarksFolder.setExpandoBridgeAttributes(expandoBridge);
829 }
830
831 @Override
832 public void setExpandoBridgeAttributes(
833 com.liferay.portal.service.ServiceContext serviceContext) {
834 _bookmarksFolder.setExpandoBridgeAttributes(serviceContext);
835 }
836
837 @Override
838 public java.lang.Object clone() {
839 return new BookmarksFolderWrapper((BookmarksFolder)_bookmarksFolder.clone());
840 }
841
842 @Override
843 public int compareTo(
844 com.liferay.portlet.bookmarks.model.BookmarksFolder bookmarksFolder) {
845 return _bookmarksFolder.compareTo(bookmarksFolder);
846 }
847
848 @Override
849 public int hashCode() {
850 return _bookmarksFolder.hashCode();
851 }
852
853 @Override
854 public com.liferay.portal.model.CacheModel<com.liferay.portlet.bookmarks.model.BookmarksFolder> toCacheModel() {
855 return _bookmarksFolder.toCacheModel();
856 }
857
858 @Override
859 public com.liferay.portlet.bookmarks.model.BookmarksFolder toEscapedModel() {
860 return new BookmarksFolderWrapper(_bookmarksFolder.toEscapedModel());
861 }
862
863 @Override
864 public com.liferay.portlet.bookmarks.model.BookmarksFolder toUnescapedModel() {
865 return new BookmarksFolderWrapper(_bookmarksFolder.toUnescapedModel());
866 }
867
868 @Override
869 public java.lang.String toString() {
870 return _bookmarksFolder.toString();
871 }
872
873 @Override
874 public java.lang.String toXmlString() {
875 return _bookmarksFolder.toXmlString();
876 }
877
878 @Override
879 public void persist()
880 throws com.liferay.portal.kernel.exception.SystemException {
881 _bookmarksFolder.persist();
882 }
883
884 @Override
885 public java.lang.String buildTreePath()
886 throws com.liferay.portal.kernel.exception.PortalException,
887 com.liferay.portal.kernel.exception.SystemException {
888 return _bookmarksFolder.buildTreePath();
889 }
890
891 @Override
892 public void updateTreePath(java.lang.String treePath)
893 throws com.liferay.portal.kernel.exception.SystemException {
894 _bookmarksFolder.updateTreePath(treePath);
895 }
896
897 @Override
898 public java.util.List<java.lang.Long> getAncestorFolderIds()
899 throws com.liferay.portal.kernel.exception.PortalException,
900 com.liferay.portal.kernel.exception.SystemException {
901 return _bookmarksFolder.getAncestorFolderIds();
902 }
903
904 @Override
905 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getAncestors()
906 throws com.liferay.portal.kernel.exception.PortalException,
907 com.liferay.portal.kernel.exception.SystemException {
908 return _bookmarksFolder.getAncestors();
909 }
910
911 @Override
912 public com.liferay.portlet.bookmarks.model.BookmarksFolder getParentFolder()
913 throws com.liferay.portal.kernel.exception.PortalException,
914 com.liferay.portal.kernel.exception.SystemException {
915 return _bookmarksFolder.getParentFolder();
916 }
917
918 @Override
919 public boolean isInTrashExplicitly()
920 throws com.liferay.portal.kernel.exception.SystemException {
921 return _bookmarksFolder.isInTrashExplicitly();
922 }
923
924 @Override
925 public boolean isRoot() {
926 return _bookmarksFolder.isRoot();
927 }
928
929 @Override
930 public boolean equals(Object obj) {
931 if (this == obj) {
932 return true;
933 }
934
935 if (!(obj instanceof BookmarksFolderWrapper)) {
936 return false;
937 }
938
939 BookmarksFolderWrapper bookmarksFolderWrapper = (BookmarksFolderWrapper)obj;
940
941 if (Validator.equals(_bookmarksFolder,
942 bookmarksFolderWrapper._bookmarksFolder)) {
943 return true;
944 }
945
946 return false;
947 }
948
949 @Override
950 public StagedModelType getStagedModelType() {
951 return _bookmarksFolder.getStagedModelType();
952 }
953
954
957 public BookmarksFolder getWrappedBookmarksFolder() {
958 return _bookmarksFolder;
959 }
960
961 @Override
962 public BookmarksFolder getWrappedModel() {
963 return _bookmarksFolder;
964 }
965
966 @Override
967 public void resetOriginalValues() {
968 _bookmarksFolder.resetOriginalValues();
969 }
970
971 private BookmarksFolder _bookmarksFolder;
972 }