001
014
015 package com.liferay.portlet.blogs.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 BlogsEntryWrapper implements BlogsEntry, ModelWrapper<BlogsEntry> {
038 public BlogsEntryWrapper(BlogsEntry blogsEntry) {
039 _blogsEntry = blogsEntry;
040 }
041
042 @Override
043 public Class<?> getModelClass() {
044 return BlogsEntry.class;
045 }
046
047 @Override
048 public String getModelClassName() {
049 return BlogsEntry.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("entryId", getEntryId());
058 attributes.put("groupId", getGroupId());
059 attributes.put("companyId", getCompanyId());
060 attributes.put("userId", getUserId());
061 attributes.put("userName", getUserName());
062 attributes.put("createDate", getCreateDate());
063 attributes.put("modifiedDate", getModifiedDate());
064 attributes.put("title", getTitle());
065 attributes.put("urlTitle", getUrlTitle());
066 attributes.put("description", getDescription());
067 attributes.put("content", getContent());
068 attributes.put("displayDate", getDisplayDate());
069 attributes.put("allowPingbacks", getAllowPingbacks());
070 attributes.put("allowTrackbacks", getAllowTrackbacks());
071 attributes.put("trackbacks", getTrackbacks());
072 attributes.put("smallImage", getSmallImage());
073 attributes.put("smallImageId", getSmallImageId());
074 attributes.put("smallImageURL", getSmallImageURL());
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 entryId = (Long)attributes.get("entryId");
092
093 if (entryId != null) {
094 setEntryId(entryId);
095 }
096
097 Long groupId = (Long)attributes.get("groupId");
098
099 if (groupId != null) {
100 setGroupId(groupId);
101 }
102
103 Long companyId = (Long)attributes.get("companyId");
104
105 if (companyId != null) {
106 setCompanyId(companyId);
107 }
108
109 Long userId = (Long)attributes.get("userId");
110
111 if (userId != null) {
112 setUserId(userId);
113 }
114
115 String userName = (String)attributes.get("userName");
116
117 if (userName != null) {
118 setUserName(userName);
119 }
120
121 Date createDate = (Date)attributes.get("createDate");
122
123 if (createDate != null) {
124 setCreateDate(createDate);
125 }
126
127 Date modifiedDate = (Date)attributes.get("modifiedDate");
128
129 if (modifiedDate != null) {
130 setModifiedDate(modifiedDate);
131 }
132
133 String title = (String)attributes.get("title");
134
135 if (title != null) {
136 setTitle(title);
137 }
138
139 String urlTitle = (String)attributes.get("urlTitle");
140
141 if (urlTitle != null) {
142 setUrlTitle(urlTitle);
143 }
144
145 String description = (String)attributes.get("description");
146
147 if (description != null) {
148 setDescription(description);
149 }
150
151 String content = (String)attributes.get("content");
152
153 if (content != null) {
154 setContent(content);
155 }
156
157 Date displayDate = (Date)attributes.get("displayDate");
158
159 if (displayDate != null) {
160 setDisplayDate(displayDate);
161 }
162
163 Boolean allowPingbacks = (Boolean)attributes.get("allowPingbacks");
164
165 if (allowPingbacks != null) {
166 setAllowPingbacks(allowPingbacks);
167 }
168
169 Boolean allowTrackbacks = (Boolean)attributes.get("allowTrackbacks");
170
171 if (allowTrackbacks != null) {
172 setAllowTrackbacks(allowTrackbacks);
173 }
174
175 String trackbacks = (String)attributes.get("trackbacks");
176
177 if (trackbacks != null) {
178 setTrackbacks(trackbacks);
179 }
180
181 Boolean smallImage = (Boolean)attributes.get("smallImage");
182
183 if (smallImage != null) {
184 setSmallImage(smallImage);
185 }
186
187 Long smallImageId = (Long)attributes.get("smallImageId");
188
189 if (smallImageId != null) {
190 setSmallImageId(smallImageId);
191 }
192
193 String smallImageURL = (String)attributes.get("smallImageURL");
194
195 if (smallImageURL != null) {
196 setSmallImageURL(smallImageURL);
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 _blogsEntry.getPrimaryKey();
232 }
233
234
239 @Override
240 public void setPrimaryKey(long primaryKey) {
241 _blogsEntry.setPrimaryKey(primaryKey);
242 }
243
244
249 @Override
250 public java.lang.String getUuid() {
251 return _blogsEntry.getUuid();
252 }
253
254
259 @Override
260 public void setUuid(java.lang.String uuid) {
261 _blogsEntry.setUuid(uuid);
262 }
263
264
269 @Override
270 public long getEntryId() {
271 return _blogsEntry.getEntryId();
272 }
273
274
279 @Override
280 public void setEntryId(long entryId) {
281 _blogsEntry.setEntryId(entryId);
282 }
283
284
289 @Override
290 public long getGroupId() {
291 return _blogsEntry.getGroupId();
292 }
293
294
299 @Override
300 public void setGroupId(long groupId) {
301 _blogsEntry.setGroupId(groupId);
302 }
303
304
309 @Override
310 public long getCompanyId() {
311 return _blogsEntry.getCompanyId();
312 }
313
314
319 @Override
320 public void setCompanyId(long companyId) {
321 _blogsEntry.setCompanyId(companyId);
322 }
323
324
329 @Override
330 public long getUserId() {
331 return _blogsEntry.getUserId();
332 }
333
334
339 @Override
340 public void setUserId(long userId) {
341 _blogsEntry.setUserId(userId);
342 }
343
344
350 @Override
351 public java.lang.String getUserUuid()
352 throws com.liferay.portal.kernel.exception.SystemException {
353 return _blogsEntry.getUserUuid();
354 }
355
356
361 @Override
362 public void setUserUuid(java.lang.String userUuid) {
363 _blogsEntry.setUserUuid(userUuid);
364 }
365
366
371 @Override
372 public java.lang.String getUserName() {
373 return _blogsEntry.getUserName();
374 }
375
376
381 @Override
382 public void setUserName(java.lang.String userName) {
383 _blogsEntry.setUserName(userName);
384 }
385
386
391 @Override
392 public java.util.Date getCreateDate() {
393 return _blogsEntry.getCreateDate();
394 }
395
396
401 @Override
402 public void setCreateDate(java.util.Date createDate) {
403 _blogsEntry.setCreateDate(createDate);
404 }
405
406
411 @Override
412 public java.util.Date getModifiedDate() {
413 return _blogsEntry.getModifiedDate();
414 }
415
416
421 @Override
422 public void setModifiedDate(java.util.Date modifiedDate) {
423 _blogsEntry.setModifiedDate(modifiedDate);
424 }
425
426
431 @Override
432 public java.lang.String getTitle() {
433 return _blogsEntry.getTitle();
434 }
435
436
441 @Override
442 public void setTitle(java.lang.String title) {
443 _blogsEntry.setTitle(title);
444 }
445
446
451 @Override
452 public java.lang.String getUrlTitle() {
453 return _blogsEntry.getUrlTitle();
454 }
455
456
461 @Override
462 public void setUrlTitle(java.lang.String urlTitle) {
463 _blogsEntry.setUrlTitle(urlTitle);
464 }
465
466
471 @Override
472 public java.lang.String getDescription() {
473 return _blogsEntry.getDescription();
474 }
475
476
481 @Override
482 public void setDescription(java.lang.String description) {
483 _blogsEntry.setDescription(description);
484 }
485
486
491 @Override
492 public java.lang.String getContent() {
493 return _blogsEntry.getContent();
494 }
495
496
501 @Override
502 public void setContent(java.lang.String content) {
503 _blogsEntry.setContent(content);
504 }
505
506
511 @Override
512 public java.util.Date getDisplayDate() {
513 return _blogsEntry.getDisplayDate();
514 }
515
516
521 @Override
522 public void setDisplayDate(java.util.Date displayDate) {
523 _blogsEntry.setDisplayDate(displayDate);
524 }
525
526
531 @Override
532 public boolean getAllowPingbacks() {
533 return _blogsEntry.getAllowPingbacks();
534 }
535
536
541 @Override
542 public boolean isAllowPingbacks() {
543 return _blogsEntry.isAllowPingbacks();
544 }
545
546
551 @Override
552 public void setAllowPingbacks(boolean allowPingbacks) {
553 _blogsEntry.setAllowPingbacks(allowPingbacks);
554 }
555
556
561 @Override
562 public boolean getAllowTrackbacks() {
563 return _blogsEntry.getAllowTrackbacks();
564 }
565
566
571 @Override
572 public boolean isAllowTrackbacks() {
573 return _blogsEntry.isAllowTrackbacks();
574 }
575
576
581 @Override
582 public void setAllowTrackbacks(boolean allowTrackbacks) {
583 _blogsEntry.setAllowTrackbacks(allowTrackbacks);
584 }
585
586
591 @Override
592 public java.lang.String getTrackbacks() {
593 return _blogsEntry.getTrackbacks();
594 }
595
596
601 @Override
602 public void setTrackbacks(java.lang.String trackbacks) {
603 _blogsEntry.setTrackbacks(trackbacks);
604 }
605
606
611 @Override
612 public boolean getSmallImage() {
613 return _blogsEntry.getSmallImage();
614 }
615
616
621 @Override
622 public boolean isSmallImage() {
623 return _blogsEntry.isSmallImage();
624 }
625
626
631 @Override
632 public void setSmallImage(boolean smallImage) {
633 _blogsEntry.setSmallImage(smallImage);
634 }
635
636
641 @Override
642 public long getSmallImageId() {
643 return _blogsEntry.getSmallImageId();
644 }
645
646
651 @Override
652 public void setSmallImageId(long smallImageId) {
653 _blogsEntry.setSmallImageId(smallImageId);
654 }
655
656
661 @Override
662 public java.lang.String getSmallImageURL() {
663 return _blogsEntry.getSmallImageURL();
664 }
665
666
671 @Override
672 public void setSmallImageURL(java.lang.String smallImageURL) {
673 _blogsEntry.setSmallImageURL(smallImageURL);
674 }
675
676
681 @Override
682 public int getStatus() {
683 return _blogsEntry.getStatus();
684 }
685
686
691 @Override
692 public void setStatus(int status) {
693 _blogsEntry.setStatus(status);
694 }
695
696
701 @Override
702 public long getStatusByUserId() {
703 return _blogsEntry.getStatusByUserId();
704 }
705
706
711 @Override
712 public void setStatusByUserId(long statusByUserId) {
713 _blogsEntry.setStatusByUserId(statusByUserId);
714 }
715
716
722 @Override
723 public java.lang.String getStatusByUserUuid()
724 throws com.liferay.portal.kernel.exception.SystemException {
725 return _blogsEntry.getStatusByUserUuid();
726 }
727
728
733 @Override
734 public void setStatusByUserUuid(java.lang.String statusByUserUuid) {
735 _blogsEntry.setStatusByUserUuid(statusByUserUuid);
736 }
737
738
743 @Override
744 public java.lang.String getStatusByUserName() {
745 return _blogsEntry.getStatusByUserName();
746 }
747
748
753 @Override
754 public void setStatusByUserName(java.lang.String statusByUserName) {
755 _blogsEntry.setStatusByUserName(statusByUserName);
756 }
757
758
763 @Override
764 public java.util.Date getStatusDate() {
765 return _blogsEntry.getStatusDate();
766 }
767
768
773 @Override
774 public void setStatusDate(java.util.Date statusDate) {
775 _blogsEntry.setStatusDate(statusDate);
776 }
777
778
784 @Override
785 public com.liferay.portlet.trash.model.TrashEntry getTrashEntry()
786 throws com.liferay.portal.kernel.exception.PortalException,
787 com.liferay.portal.kernel.exception.SystemException {
788 return _blogsEntry.getTrashEntry();
789 }
790
791
796 @Override
797 public long getTrashEntryClassPK() {
798 return _blogsEntry.getTrashEntryClassPK();
799 }
800
801
806 @Override
807 public com.liferay.portal.kernel.trash.TrashHandler getTrashHandler() {
808 return _blogsEntry.getTrashHandler();
809 }
810
811
816 @Override
817 public boolean isInTrash() {
818 return _blogsEntry.isInTrash();
819 }
820
821
827 @Override
828 public boolean isInTrashContainer() {
829 return _blogsEntry.isInTrashContainer();
830 }
831
832
835 @Override
836 public boolean getApproved() {
837 return _blogsEntry.getApproved();
838 }
839
840
845 @Override
846 public boolean isApproved() {
847 return _blogsEntry.isApproved();
848 }
849
850
855 @Override
856 public boolean isDenied() {
857 return _blogsEntry.isDenied();
858 }
859
860
865 @Override
866 public boolean isDraft() {
867 return _blogsEntry.isDraft();
868 }
869
870
875 @Override
876 public boolean isExpired() {
877 return _blogsEntry.isExpired();
878 }
879
880
885 @Override
886 public boolean isInactive() {
887 return _blogsEntry.isInactive();
888 }
889
890
895 @Override
896 public boolean isIncomplete() {
897 return _blogsEntry.isIncomplete();
898 }
899
900
905 @Override
906 public boolean isPending() {
907 return _blogsEntry.isPending();
908 }
909
910
915 @Override
916 public boolean isScheduled() {
917 return _blogsEntry.isScheduled();
918 }
919
920 @Override
921 public boolean isNew() {
922 return _blogsEntry.isNew();
923 }
924
925 @Override
926 public void setNew(boolean n) {
927 _blogsEntry.setNew(n);
928 }
929
930 @Override
931 public boolean isCachedModel() {
932 return _blogsEntry.isCachedModel();
933 }
934
935 @Override
936 public void setCachedModel(boolean cachedModel) {
937 _blogsEntry.setCachedModel(cachedModel);
938 }
939
940 @Override
941 public boolean isEscapedModel() {
942 return _blogsEntry.isEscapedModel();
943 }
944
945 @Override
946 public java.io.Serializable getPrimaryKeyObj() {
947 return _blogsEntry.getPrimaryKeyObj();
948 }
949
950 @Override
951 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
952 _blogsEntry.setPrimaryKeyObj(primaryKeyObj);
953 }
954
955 @Override
956 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
957 return _blogsEntry.getExpandoBridge();
958 }
959
960 @Override
961 public void setExpandoBridgeAttributes(
962 com.liferay.portal.model.BaseModel<?> baseModel) {
963 _blogsEntry.setExpandoBridgeAttributes(baseModel);
964 }
965
966 @Override
967 public void setExpandoBridgeAttributes(
968 com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
969 _blogsEntry.setExpandoBridgeAttributes(expandoBridge);
970 }
971
972 @Override
973 public void setExpandoBridgeAttributes(
974 com.liferay.portal.service.ServiceContext serviceContext) {
975 _blogsEntry.setExpandoBridgeAttributes(serviceContext);
976 }
977
978 @Override
979 public java.lang.Object clone() {
980 return new BlogsEntryWrapper((BlogsEntry)_blogsEntry.clone());
981 }
982
983 @Override
984 public int compareTo(com.liferay.portlet.blogs.model.BlogsEntry blogsEntry) {
985 return _blogsEntry.compareTo(blogsEntry);
986 }
987
988 @Override
989 public int hashCode() {
990 return _blogsEntry.hashCode();
991 }
992
993 @Override
994 public com.liferay.portal.model.CacheModel<com.liferay.portlet.blogs.model.BlogsEntry> toCacheModel() {
995 return _blogsEntry.toCacheModel();
996 }
997
998 @Override
999 public com.liferay.portlet.blogs.model.BlogsEntry toEscapedModel() {
1000 return new BlogsEntryWrapper(_blogsEntry.toEscapedModel());
1001 }
1002
1003 @Override
1004 public com.liferay.portlet.blogs.model.BlogsEntry toUnescapedModel() {
1005 return new BlogsEntryWrapper(_blogsEntry.toUnescapedModel());
1006 }
1007
1008 @Override
1009 public java.lang.String toString() {
1010 return _blogsEntry.toString();
1011 }
1012
1013 @Override
1014 public java.lang.String toXmlString() {
1015 return _blogsEntry.toXmlString();
1016 }
1017
1018 @Override
1019 public void persist()
1020 throws com.liferay.portal.kernel.exception.SystemException {
1021 _blogsEntry.persist();
1022 }
1023
1024 @Override
1025 public java.lang.String getEntryImageURL(
1026 com.liferay.portal.theme.ThemeDisplay themeDisplay) {
1027 return _blogsEntry.getEntryImageURL(themeDisplay);
1028 }
1029
1030 @Override
1031 public java.lang.String getSmallImageType()
1032 throws com.liferay.portal.kernel.exception.PortalException,
1033 com.liferay.portal.kernel.exception.SystemException {
1034 return _blogsEntry.getSmallImageType();
1035 }
1036
1037 @Override
1038 public boolean isInTrashExplicitly()
1039 throws com.liferay.portal.kernel.exception.SystemException {
1040 return _blogsEntry.isInTrashExplicitly();
1041 }
1042
1043 @Override
1044 public boolean isVisible() {
1045 return _blogsEntry.isVisible();
1046 }
1047
1048 @Override
1049 public void setSmallImageType(java.lang.String smallImageType) {
1050 _blogsEntry.setSmallImageType(smallImageType);
1051 }
1052
1053 @Override
1054 public boolean equals(Object obj) {
1055 if (this == obj) {
1056 return true;
1057 }
1058
1059 if (!(obj instanceof BlogsEntryWrapper)) {
1060 return false;
1061 }
1062
1063 BlogsEntryWrapper blogsEntryWrapper = (BlogsEntryWrapper)obj;
1064
1065 if (Validator.equals(_blogsEntry, blogsEntryWrapper._blogsEntry)) {
1066 return true;
1067 }
1068
1069 return false;
1070 }
1071
1072 @Override
1073 public StagedModelType getStagedModelType() {
1074 return _blogsEntry.getStagedModelType();
1075 }
1076
1077
1080 public BlogsEntry getWrappedBlogsEntry() {
1081 return _blogsEntry;
1082 }
1083
1084 @Override
1085 public BlogsEntry getWrappedModel() {
1086 return _blogsEntry;
1087 }
1088
1089 @Override
1090 public void resetOriginalValues() {
1091 _blogsEntry.resetOriginalValues();
1092 }
1093
1094 private BlogsEntry _blogsEntry;
1095 }