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 @Override
205 public java.lang.String buildTreePath()
206 throws com.liferay.portal.kernel.exception.PortalException {
207 return _bookmarksEntry.buildTreePath();
208 }
209
210 @Override
211 public java.lang.Object clone() {
212 return new BookmarksEntryWrapper((BookmarksEntry)_bookmarksEntry.clone());
213 }
214
215 @Override
216 public int compareTo(
217 com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry) {
218 return _bookmarksEntry.compareTo(bookmarksEntry);
219 }
220
221
224 @Deprecated
225 @Override
226 public boolean getApproved() {
227 return _bookmarksEntry.getApproved();
228 }
229
230
235 @Override
236 public long getCompanyId() {
237 return _bookmarksEntry.getCompanyId();
238 }
239
240
245 @Override
246 public java.util.Date getCreateDate() {
247 return _bookmarksEntry.getCreateDate();
248 }
249
250
255 @Override
256 public java.lang.String getDescription() {
257 return _bookmarksEntry.getDescription();
258 }
259
260
265 @Override
266 public long getEntryId() {
267 return _bookmarksEntry.getEntryId();
268 }
269
270 @Override
271 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
272 return _bookmarksEntry.getExpandoBridge();
273 }
274
275 @Override
276 public com.liferay.portlet.bookmarks.model.BookmarksFolder getFolder()
277 throws com.liferay.portal.kernel.exception.PortalException {
278 return _bookmarksEntry.getFolder();
279 }
280
281
286 @Override
287 public long getFolderId() {
288 return _bookmarksEntry.getFolderId();
289 }
290
291
296 @Override
297 public long getGroupId() {
298 return _bookmarksEntry.getGroupId();
299 }
300
301
306 @Override
307 public java.util.Date getModifiedDate() {
308 return _bookmarksEntry.getModifiedDate();
309 }
310
311
316 @Override
317 public java.lang.String getName() {
318 return _bookmarksEntry.getName();
319 }
320
321
326 @Override
327 public long getPrimaryKey() {
328 return _bookmarksEntry.getPrimaryKey();
329 }
330
331 @Override
332 public java.io.Serializable getPrimaryKeyObj() {
333 return _bookmarksEntry.getPrimaryKeyObj();
334 }
335
336
341 @Override
342 public int getPriority() {
343 return _bookmarksEntry.getPriority();
344 }
345
346
351 @Override
352 public long getResourceBlockId() {
353 return _bookmarksEntry.getResourceBlockId();
354 }
355
356
361 @Override
362 public int getStatus() {
363 return _bookmarksEntry.getStatus();
364 }
365
366
371 @Override
372 public long getStatusByUserId() {
373 return _bookmarksEntry.getStatusByUserId();
374 }
375
376
381 @Override
382 public java.lang.String getStatusByUserName() {
383 return _bookmarksEntry.getStatusByUserName();
384 }
385
386
391 @Override
392 public java.lang.String getStatusByUserUuid() {
393 return _bookmarksEntry.getStatusByUserUuid();
394 }
395
396
401 @Override
402 public java.util.Date getStatusDate() {
403 return _bookmarksEntry.getStatusDate();
404 }
405
406
411 @Override
412 public com.liferay.portlet.trash.model.TrashEntry getTrashEntry()
413 throws com.liferay.portal.kernel.exception.PortalException {
414 return _bookmarksEntry.getTrashEntry();
415 }
416
417
422 @Override
423 public long getTrashEntryClassPK() {
424 return _bookmarksEntry.getTrashEntryClassPK();
425 }
426
427
432 @Override
433 public com.liferay.portal.kernel.trash.TrashHandler getTrashHandler() {
434 return _bookmarksEntry.getTrashHandler();
435 }
436
437
442 @Override
443 public java.lang.String getTreePath() {
444 return _bookmarksEntry.getTreePath();
445 }
446
447
452 @Override
453 public java.lang.String getUrl() {
454 return _bookmarksEntry.getUrl();
455 }
456
457
462 @Override
463 public long getUserId() {
464 return _bookmarksEntry.getUserId();
465 }
466
467
472 @Override
473 public java.lang.String getUserName() {
474 return _bookmarksEntry.getUserName();
475 }
476
477
482 @Override
483 public java.lang.String getUserUuid() {
484 return _bookmarksEntry.getUserUuid();
485 }
486
487
492 @Override
493 public java.lang.String getUuid() {
494 return _bookmarksEntry.getUuid();
495 }
496
497
502 @Override
503 public int getVisits() {
504 return _bookmarksEntry.getVisits();
505 }
506
507 @Override
508 public int hashCode() {
509 return _bookmarksEntry.hashCode();
510 }
511
512
517 @Override
518 public boolean isApproved() {
519 return _bookmarksEntry.isApproved();
520 }
521
522 @Override
523 public boolean isCachedModel() {
524 return _bookmarksEntry.isCachedModel();
525 }
526
527
532 @Override
533 public boolean isDenied() {
534 return _bookmarksEntry.isDenied();
535 }
536
537
542 @Override
543 public boolean isDraft() {
544 return _bookmarksEntry.isDraft();
545 }
546
547 @Override
548 public boolean isEscapedModel() {
549 return _bookmarksEntry.isEscapedModel();
550 }
551
552
557 @Override
558 public boolean isExpired() {
559 return _bookmarksEntry.isExpired();
560 }
561
562
567 @Override
568 public boolean isInTrash() {
569 return _bookmarksEntry.isInTrash();
570 }
571
572
577 @Override
578 public boolean isInTrashContainer() {
579 return _bookmarksEntry.isInTrashContainer();
580 }
581
582 @Override
583 public boolean isInTrashExplicitly() {
584 return _bookmarksEntry.isInTrashExplicitly();
585 }
586
587 @Override
588 public boolean isInTrashImplicitly() {
589 return _bookmarksEntry.isInTrashImplicitly();
590 }
591
592
597 @Override
598 public boolean isInactive() {
599 return _bookmarksEntry.isInactive();
600 }
601
602
607 @Override
608 public boolean isIncomplete() {
609 return _bookmarksEntry.isIncomplete();
610 }
611
612 @Override
613 public boolean isNew() {
614 return _bookmarksEntry.isNew();
615 }
616
617
622 @Override
623 public boolean isPending() {
624 return _bookmarksEntry.isPending();
625 }
626
627
632 @Override
633 public boolean isScheduled() {
634 return _bookmarksEntry.isScheduled();
635 }
636
637 @Override
638 public void persist() {
639 _bookmarksEntry.persist();
640 }
641
642 @Override
643 public void setCachedModel(boolean cachedModel) {
644 _bookmarksEntry.setCachedModel(cachedModel);
645 }
646
647
652 @Override
653 public void setCompanyId(long companyId) {
654 _bookmarksEntry.setCompanyId(companyId);
655 }
656
657
662 @Override
663 public void setCreateDate(java.util.Date createDate) {
664 _bookmarksEntry.setCreateDate(createDate);
665 }
666
667
672 @Override
673 public void setDescription(java.lang.String description) {
674 _bookmarksEntry.setDescription(description);
675 }
676
677
682 @Override
683 public void setEntryId(long entryId) {
684 _bookmarksEntry.setEntryId(entryId);
685 }
686
687 @Override
688 public void setExpandoBridgeAttributes(
689 com.liferay.portal.model.BaseModel<?> baseModel) {
690 _bookmarksEntry.setExpandoBridgeAttributes(baseModel);
691 }
692
693 @Override
694 public void setExpandoBridgeAttributes(
695 com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
696 _bookmarksEntry.setExpandoBridgeAttributes(expandoBridge);
697 }
698
699 @Override
700 public void setExpandoBridgeAttributes(
701 com.liferay.portal.service.ServiceContext serviceContext) {
702 _bookmarksEntry.setExpandoBridgeAttributes(serviceContext);
703 }
704
705
710 @Override
711 public void setFolderId(long folderId) {
712 _bookmarksEntry.setFolderId(folderId);
713 }
714
715
720 @Override
721 public void setGroupId(long groupId) {
722 _bookmarksEntry.setGroupId(groupId);
723 }
724
725
730 @Override
731 public void setModifiedDate(java.util.Date modifiedDate) {
732 _bookmarksEntry.setModifiedDate(modifiedDate);
733 }
734
735
740 @Override
741 public void setName(java.lang.String name) {
742 _bookmarksEntry.setName(name);
743 }
744
745 @Override
746 public void setNew(boolean n) {
747 _bookmarksEntry.setNew(n);
748 }
749
750
755 @Override
756 public void setPrimaryKey(long primaryKey) {
757 _bookmarksEntry.setPrimaryKey(primaryKey);
758 }
759
760 @Override
761 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
762 _bookmarksEntry.setPrimaryKeyObj(primaryKeyObj);
763 }
764
765
770 @Override
771 public void setPriority(int priority) {
772 _bookmarksEntry.setPriority(priority);
773 }
774
775
780 @Override
781 public void setResourceBlockId(long resourceBlockId) {
782 _bookmarksEntry.setResourceBlockId(resourceBlockId);
783 }
784
785
790 @Override
791 public void setStatus(int status) {
792 _bookmarksEntry.setStatus(status);
793 }
794
795
800 @Override
801 public void setStatusByUserId(long statusByUserId) {
802 _bookmarksEntry.setStatusByUserId(statusByUserId);
803 }
804
805
810 @Override
811 public void setStatusByUserName(java.lang.String statusByUserName) {
812 _bookmarksEntry.setStatusByUserName(statusByUserName);
813 }
814
815
820 @Override
821 public void setStatusByUserUuid(java.lang.String statusByUserUuid) {
822 _bookmarksEntry.setStatusByUserUuid(statusByUserUuid);
823 }
824
825
830 @Override
831 public void setStatusDate(java.util.Date statusDate) {
832 _bookmarksEntry.setStatusDate(statusDate);
833 }
834
835
840 @Override
841 public void setTreePath(java.lang.String treePath) {
842 _bookmarksEntry.setTreePath(treePath);
843 }
844
845
850 @Override
851 public void setUrl(java.lang.String url) {
852 _bookmarksEntry.setUrl(url);
853 }
854
855
860 @Override
861 public void setUserId(long userId) {
862 _bookmarksEntry.setUserId(userId);
863 }
864
865
870 @Override
871 public void setUserName(java.lang.String userName) {
872 _bookmarksEntry.setUserName(userName);
873 }
874
875
880 @Override
881 public void setUserUuid(java.lang.String userUuid) {
882 _bookmarksEntry.setUserUuid(userUuid);
883 }
884
885
890 @Override
891 public void setUuid(java.lang.String uuid) {
892 _bookmarksEntry.setUuid(uuid);
893 }
894
895
900 @Override
901 public void setVisits(int visits) {
902 _bookmarksEntry.setVisits(visits);
903 }
904
905 @Override
906 public com.liferay.portal.model.CacheModel<com.liferay.portlet.bookmarks.model.BookmarksEntry> toCacheModel() {
907 return _bookmarksEntry.toCacheModel();
908 }
909
910 @Override
911 public com.liferay.portlet.bookmarks.model.BookmarksEntry toEscapedModel() {
912 return new BookmarksEntryWrapper(_bookmarksEntry.toEscapedModel());
913 }
914
915 @Override
916 public java.lang.String toString() {
917 return _bookmarksEntry.toString();
918 }
919
920 @Override
921 public com.liferay.portlet.bookmarks.model.BookmarksEntry toUnescapedModel() {
922 return new BookmarksEntryWrapper(_bookmarksEntry.toUnescapedModel());
923 }
924
925 @Override
926 public java.lang.String toXmlString() {
927 return _bookmarksEntry.toXmlString();
928 }
929
930 @Override
931 public void updateTreePath(java.lang.String treePath) {
932 _bookmarksEntry.updateTreePath(treePath);
933 }
934
935 @Override
936 public boolean equals(Object obj) {
937 if (this == obj) {
938 return true;
939 }
940
941 if (!(obj instanceof BookmarksEntryWrapper)) {
942 return false;
943 }
944
945 BookmarksEntryWrapper bookmarksEntryWrapper = (BookmarksEntryWrapper)obj;
946
947 if (Validator.equals(_bookmarksEntry,
948 bookmarksEntryWrapper._bookmarksEntry)) {
949 return true;
950 }
951
952 return false;
953 }
954
955 @Override
956 public StagedModelType getStagedModelType() {
957 return _bookmarksEntry.getStagedModelType();
958 }
959
960
963 @Deprecated
964 public BookmarksEntry getWrappedBookmarksEntry() {
965 return _bookmarksEntry;
966 }
967
968 @Override
969 public BookmarksEntry getWrappedModel() {
970 return _bookmarksEntry;
971 }
972
973 @Override
974 public boolean isEntityCacheEnabled() {
975 return _bookmarksEntry.isEntityCacheEnabled();
976 }
977
978 @Override
979 public boolean isFinderCacheEnabled() {
980 return _bookmarksEntry.isFinderCacheEnabled();
981 }
982
983 @Override
984 public void resetOriginalValues() {
985 _bookmarksEntry.resetOriginalValues();
986 }
987
988 private final BookmarksEntry _bookmarksEntry;
989 }