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 BookmarksEntryWrapper implements BookmarksEntry,
038 ModelWrapper<BookmarksEntry> {
039 public BookmarksEntryWrapper(BookmarksEntry bookmarksEntry) {
040 _bookmarksEntry = bookmarksEntry;
041 }
042
043 @Override
044 public Class<?> getModelClass() {
045 return BookmarksEntry.class;
046 }
047
048 @Override
049 public String getModelClassName() {
050 return BookmarksEntry.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("entryId", getEntryId());
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("folderId", getFolderId());
067 attributes.put("treePath", getTreePath());
068 attributes.put("name", getName());
069 attributes.put("url", getUrl());
070 attributes.put("description", getDescription());
071 attributes.put("visits", getVisits());
072 attributes.put("priority", getPriority());
073 attributes.put("status", getStatus());
074 attributes.put("statusByUserId", getStatusByUserId());
075 attributes.put("statusByUserName", getStatusByUserName());
076 attributes.put("statusDate", getStatusDate());
077
078 return attributes;
079 }
080
081 @Override
082 public void setModelAttributes(Map<String, Object> attributes) {
083 String uuid = (String)attributes.get("uuid");
084
085 if (uuid != null) {
086 setUuid(uuid);
087 }
088
089 Long entryId = (Long)attributes.get("entryId");
090
091 if (entryId != null) {
092 setEntryId(entryId);
093 }
094
095 Long groupId = (Long)attributes.get("groupId");
096
097 if (groupId != null) {
098 setGroupId(groupId);
099 }
100
101 Long companyId = (Long)attributes.get("companyId");
102
103 if (companyId != null) {
104 setCompanyId(companyId);
105 }
106
107 Long userId = (Long)attributes.get("userId");
108
109 if (userId != null) {
110 setUserId(userId);
111 }
112
113 String userName = (String)attributes.get("userName");
114
115 if (userName != null) {
116 setUserName(userName);
117 }
118
119 Date createDate = (Date)attributes.get("createDate");
120
121 if (createDate != null) {
122 setCreateDate(createDate);
123 }
124
125 Date modifiedDate = (Date)attributes.get("modifiedDate");
126
127 if (modifiedDate != null) {
128 setModifiedDate(modifiedDate);
129 }
130
131 Long resourceBlockId = (Long)attributes.get("resourceBlockId");
132
133 if (resourceBlockId != null) {
134 setResourceBlockId(resourceBlockId);
135 }
136
137 Long folderId = (Long)attributes.get("folderId");
138
139 if (folderId != null) {
140 setFolderId(folderId);
141 }
142
143 String treePath = (String)attributes.get("treePath");
144
145 if (treePath != null) {
146 setTreePath(treePath);
147 }
148
149 String name = (String)attributes.get("name");
150
151 if (name != null) {
152 setName(name);
153 }
154
155 String url = (String)attributes.get("url");
156
157 if (url != null) {
158 setUrl(url);
159 }
160
161 String description = (String)attributes.get("description");
162
163 if (description != null) {
164 setDescription(description);
165 }
166
167 Integer visits = (Integer)attributes.get("visits");
168
169 if (visits != null) {
170 setVisits(visits);
171 }
172
173 Integer priority = (Integer)attributes.get("priority");
174
175 if (priority != null) {
176 setPriority(priority);
177 }
178
179 Integer status = (Integer)attributes.get("status");
180
181 if (status != null) {
182 setStatus(status);
183 }
184
185 Long statusByUserId = (Long)attributes.get("statusByUserId");
186
187 if (statusByUserId != null) {
188 setStatusByUserId(statusByUserId);
189 }
190
191 String statusByUserName = (String)attributes.get("statusByUserName");
192
193 if (statusByUserName != null) {
194 setStatusByUserName(statusByUserName);
195 }
196
197 Date statusDate = (Date)attributes.get("statusDate");
198
199 if (statusDate != null) {
200 setStatusDate(statusDate);
201 }
202 }
203
204
209 @Override
210 public long getPrimaryKey() {
211 return _bookmarksEntry.getPrimaryKey();
212 }
213
214
219 @Override
220 public void setPrimaryKey(long primaryKey) {
221 _bookmarksEntry.setPrimaryKey(primaryKey);
222 }
223
224
229 @Override
230 public java.lang.String getUuid() {
231 return _bookmarksEntry.getUuid();
232 }
233
234
239 @Override
240 public void setUuid(java.lang.String uuid) {
241 _bookmarksEntry.setUuid(uuid);
242 }
243
244
249 @Override
250 public long getEntryId() {
251 return _bookmarksEntry.getEntryId();
252 }
253
254
259 @Override
260 public void setEntryId(long entryId) {
261 _bookmarksEntry.setEntryId(entryId);
262 }
263
264
269 @Override
270 public long getGroupId() {
271 return _bookmarksEntry.getGroupId();
272 }
273
274
279 @Override
280 public void setGroupId(long groupId) {
281 _bookmarksEntry.setGroupId(groupId);
282 }
283
284
289 @Override
290 public long getCompanyId() {
291 return _bookmarksEntry.getCompanyId();
292 }
293
294
299 @Override
300 public void setCompanyId(long companyId) {
301 _bookmarksEntry.setCompanyId(companyId);
302 }
303
304
309 @Override
310 public long getUserId() {
311 return _bookmarksEntry.getUserId();
312 }
313
314
319 @Override
320 public void setUserId(long userId) {
321 _bookmarksEntry.setUserId(userId);
322 }
323
324
330 @Override
331 public java.lang.String getUserUuid()
332 throws com.liferay.portal.kernel.exception.SystemException {
333 return _bookmarksEntry.getUserUuid();
334 }
335
336
341 @Override
342 public void setUserUuid(java.lang.String userUuid) {
343 _bookmarksEntry.setUserUuid(userUuid);
344 }
345
346
351 @Override
352 public java.lang.String getUserName() {
353 return _bookmarksEntry.getUserName();
354 }
355
356
361 @Override
362 public void setUserName(java.lang.String userName) {
363 _bookmarksEntry.setUserName(userName);
364 }
365
366
371 @Override
372 public java.util.Date getCreateDate() {
373 return _bookmarksEntry.getCreateDate();
374 }
375
376
381 @Override
382 public void setCreateDate(java.util.Date createDate) {
383 _bookmarksEntry.setCreateDate(createDate);
384 }
385
386
391 @Override
392 public java.util.Date getModifiedDate() {
393 return _bookmarksEntry.getModifiedDate();
394 }
395
396
401 @Override
402 public void setModifiedDate(java.util.Date modifiedDate) {
403 _bookmarksEntry.setModifiedDate(modifiedDate);
404 }
405
406
411 @Override
412 public long getResourceBlockId() {
413 return _bookmarksEntry.getResourceBlockId();
414 }
415
416
421 @Override
422 public void setResourceBlockId(long resourceBlockId) {
423 _bookmarksEntry.setResourceBlockId(resourceBlockId);
424 }
425
426
431 @Override
432 public long getFolderId() {
433 return _bookmarksEntry.getFolderId();
434 }
435
436
441 @Override
442 public void setFolderId(long folderId) {
443 _bookmarksEntry.setFolderId(folderId);
444 }
445
446
451 @Override
452 public java.lang.String getTreePath() {
453 return _bookmarksEntry.getTreePath();
454 }
455
456
461 @Override
462 public void setTreePath(java.lang.String treePath) {
463 _bookmarksEntry.setTreePath(treePath);
464 }
465
466
471 @Override
472 public java.lang.String getName() {
473 return _bookmarksEntry.getName();
474 }
475
476
481 @Override
482 public void setName(java.lang.String name) {
483 _bookmarksEntry.setName(name);
484 }
485
486
491 @Override
492 public java.lang.String getUrl() {
493 return _bookmarksEntry.getUrl();
494 }
495
496
501 @Override
502 public void setUrl(java.lang.String url) {
503 _bookmarksEntry.setUrl(url);
504 }
505
506
511 @Override
512 public java.lang.String getDescription() {
513 return _bookmarksEntry.getDescription();
514 }
515
516
521 @Override
522 public void setDescription(java.lang.String description) {
523 _bookmarksEntry.setDescription(description);
524 }
525
526
531 @Override
532 public int getVisits() {
533 return _bookmarksEntry.getVisits();
534 }
535
536
541 @Override
542 public void setVisits(int visits) {
543 _bookmarksEntry.setVisits(visits);
544 }
545
546
551 @Override
552 public int getPriority() {
553 return _bookmarksEntry.getPriority();
554 }
555
556
561 @Override
562 public void setPriority(int priority) {
563 _bookmarksEntry.setPriority(priority);
564 }
565
566
571 @Override
572 public int getStatus() {
573 return _bookmarksEntry.getStatus();
574 }
575
576
581 @Override
582 public void setStatus(int status) {
583 _bookmarksEntry.setStatus(status);
584 }
585
586
591 @Override
592 public long getStatusByUserId() {
593 return _bookmarksEntry.getStatusByUserId();
594 }
595
596
601 @Override
602 public void setStatusByUserId(long statusByUserId) {
603 _bookmarksEntry.setStatusByUserId(statusByUserId);
604 }
605
606
612 @Override
613 public java.lang.String getStatusByUserUuid()
614 throws com.liferay.portal.kernel.exception.SystemException {
615 return _bookmarksEntry.getStatusByUserUuid();
616 }
617
618
623 @Override
624 public void setStatusByUserUuid(java.lang.String statusByUserUuid) {
625 _bookmarksEntry.setStatusByUserUuid(statusByUserUuid);
626 }
627
628
633 @Override
634 public java.lang.String getStatusByUserName() {
635 return _bookmarksEntry.getStatusByUserName();
636 }
637
638
643 @Override
644 public void setStatusByUserName(java.lang.String statusByUserName) {
645 _bookmarksEntry.setStatusByUserName(statusByUserName);
646 }
647
648
653 @Override
654 public java.util.Date getStatusDate() {
655 return _bookmarksEntry.getStatusDate();
656 }
657
658
663 @Override
664 public void setStatusDate(java.util.Date statusDate) {
665 _bookmarksEntry.setStatusDate(statusDate);
666 }
667
668
674 @Override
675 public com.liferay.portlet.trash.model.TrashEntry getTrashEntry()
676 throws com.liferay.portal.kernel.exception.PortalException,
677 com.liferay.portal.kernel.exception.SystemException {
678 return _bookmarksEntry.getTrashEntry();
679 }
680
681
686 @Override
687 public long getTrashEntryClassPK() {
688 return _bookmarksEntry.getTrashEntryClassPK();
689 }
690
691
696 @Override
697 public com.liferay.portal.kernel.trash.TrashHandler getTrashHandler() {
698 return _bookmarksEntry.getTrashHandler();
699 }
700
701
706 @Override
707 public boolean isInTrash() {
708 return _bookmarksEntry.isInTrash();
709 }
710
711
717 @Override
718 public boolean isInTrashContainer() {
719 return _bookmarksEntry.isInTrashContainer();
720 }
721
722
725 @Override
726 public boolean getApproved() {
727 return _bookmarksEntry.getApproved();
728 }
729
730
735 @Override
736 public boolean isApproved() {
737 return _bookmarksEntry.isApproved();
738 }
739
740
745 @Override
746 public boolean isDenied() {
747 return _bookmarksEntry.isDenied();
748 }
749
750
755 @Override
756 public boolean isDraft() {
757 return _bookmarksEntry.isDraft();
758 }
759
760
765 @Override
766 public boolean isExpired() {
767 return _bookmarksEntry.isExpired();
768 }
769
770
775 @Override
776 public boolean isInactive() {
777 return _bookmarksEntry.isInactive();
778 }
779
780
785 @Override
786 public boolean isIncomplete() {
787 return _bookmarksEntry.isIncomplete();
788 }
789
790
795 @Override
796 public boolean isPending() {
797 return _bookmarksEntry.isPending();
798 }
799
800
805 @Override
806 public boolean isScheduled() {
807 return _bookmarksEntry.isScheduled();
808 }
809
810 @Override
811 public boolean isNew() {
812 return _bookmarksEntry.isNew();
813 }
814
815 @Override
816 public void setNew(boolean n) {
817 _bookmarksEntry.setNew(n);
818 }
819
820 @Override
821 public boolean isCachedModel() {
822 return _bookmarksEntry.isCachedModel();
823 }
824
825 @Override
826 public void setCachedModel(boolean cachedModel) {
827 _bookmarksEntry.setCachedModel(cachedModel);
828 }
829
830 @Override
831 public boolean isEscapedModel() {
832 return _bookmarksEntry.isEscapedModel();
833 }
834
835 @Override
836 public java.io.Serializable getPrimaryKeyObj() {
837 return _bookmarksEntry.getPrimaryKeyObj();
838 }
839
840 @Override
841 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
842 _bookmarksEntry.setPrimaryKeyObj(primaryKeyObj);
843 }
844
845 @Override
846 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
847 return _bookmarksEntry.getExpandoBridge();
848 }
849
850 @Override
851 public void setExpandoBridgeAttributes(
852 com.liferay.portal.model.BaseModel<?> baseModel) {
853 _bookmarksEntry.setExpandoBridgeAttributes(baseModel);
854 }
855
856 @Override
857 public void setExpandoBridgeAttributes(
858 com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
859 _bookmarksEntry.setExpandoBridgeAttributes(expandoBridge);
860 }
861
862 @Override
863 public void setExpandoBridgeAttributes(
864 com.liferay.portal.service.ServiceContext serviceContext) {
865 _bookmarksEntry.setExpandoBridgeAttributes(serviceContext);
866 }
867
868 @Override
869 public java.lang.Object clone() {
870 return new BookmarksEntryWrapper((BookmarksEntry)_bookmarksEntry.clone());
871 }
872
873 @Override
874 public int compareTo(
875 com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry) {
876 return _bookmarksEntry.compareTo(bookmarksEntry);
877 }
878
879 @Override
880 public int hashCode() {
881 return _bookmarksEntry.hashCode();
882 }
883
884 @Override
885 public com.liferay.portal.model.CacheModel<com.liferay.portlet.bookmarks.model.BookmarksEntry> toCacheModel() {
886 return _bookmarksEntry.toCacheModel();
887 }
888
889 @Override
890 public com.liferay.portlet.bookmarks.model.BookmarksEntry toEscapedModel() {
891 return new BookmarksEntryWrapper(_bookmarksEntry.toEscapedModel());
892 }
893
894 @Override
895 public com.liferay.portlet.bookmarks.model.BookmarksEntry toUnescapedModel() {
896 return new BookmarksEntryWrapper(_bookmarksEntry.toUnescapedModel());
897 }
898
899 @Override
900 public java.lang.String toString() {
901 return _bookmarksEntry.toString();
902 }
903
904 @Override
905 public java.lang.String toXmlString() {
906 return _bookmarksEntry.toXmlString();
907 }
908
909 @Override
910 public void persist()
911 throws com.liferay.portal.kernel.exception.SystemException {
912 _bookmarksEntry.persist();
913 }
914
915 @Override
916 public void updateTreePath(java.lang.String treePath)
917 throws com.liferay.portal.kernel.exception.SystemException {
918 _bookmarksEntry.updateTreePath(treePath);
919 }
920
921 @Override
922 public java.lang.String buildTreePath()
923 throws com.liferay.portal.kernel.exception.PortalException,
924 com.liferay.portal.kernel.exception.SystemException {
925 return _bookmarksEntry.buildTreePath();
926 }
927
928 @Override
929 public com.liferay.portlet.bookmarks.model.BookmarksFolder getFolder()
930 throws com.liferay.portal.kernel.exception.PortalException,
931 com.liferay.portal.kernel.exception.SystemException {
932 return _bookmarksEntry.getFolder();
933 }
934
935 @Override
936 public boolean isInTrashExplicitly()
937 throws com.liferay.portal.kernel.exception.SystemException {
938 return _bookmarksEntry.isInTrashExplicitly();
939 }
940
941 @Override
942 public boolean equals(Object obj) {
943 if (this == obj) {
944 return true;
945 }
946
947 if (!(obj instanceof BookmarksEntryWrapper)) {
948 return false;
949 }
950
951 BookmarksEntryWrapper bookmarksEntryWrapper = (BookmarksEntryWrapper)obj;
952
953 if (Validator.equals(_bookmarksEntry,
954 bookmarksEntryWrapper._bookmarksEntry)) {
955 return true;
956 }
957
958 return false;
959 }
960
961 @Override
962 public StagedModelType getStagedModelType() {
963 return _bookmarksEntry.getStagedModelType();
964 }
965
966
969 public BookmarksEntry getWrappedBookmarksEntry() {
970 return _bookmarksEntry;
971 }
972
973 @Override
974 public BookmarksEntry getWrappedModel() {
975 return _bookmarksEntry;
976 }
977
978 @Override
979 public void resetOriginalValues() {
980 _bookmarksEntry.resetOriginalValues();
981 }
982
983 private BookmarksEntry _bookmarksEntry;
984 }