001
014
015 package com.liferay.portlet.blogs.model;
016
017 import com.liferay.portal.kernel.util.Validator;
018 import com.liferay.portal.model.ModelWrapper;
019
020 import java.util.Date;
021 import java.util.HashMap;
022 import java.util.Map;
023
024
033 public class BlogsEntryWrapper implements BlogsEntry, ModelWrapper<BlogsEntry> {
034 public BlogsEntryWrapper(BlogsEntry blogsEntry) {
035 _blogsEntry = blogsEntry;
036 }
037
038 public Class<?> getModelClass() {
039 return BlogsEntry.class;
040 }
041
042 public String getModelClassName() {
043 return BlogsEntry.class.getName();
044 }
045
046 public Map<String, Object> getModelAttributes() {
047 Map<String, Object> attributes = new HashMap<String, Object>();
048
049 attributes.put("uuid", getUuid());
050 attributes.put("entryId", getEntryId());
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("title", getTitle());
058 attributes.put("urlTitle", getUrlTitle());
059 attributes.put("description", getDescription());
060 attributes.put("content", getContent());
061 attributes.put("displayDate", getDisplayDate());
062 attributes.put("allowPingbacks", getAllowPingbacks());
063 attributes.put("allowTrackbacks", getAllowTrackbacks());
064 attributes.put("trackbacks", getTrackbacks());
065 attributes.put("smallImage", getSmallImage());
066 attributes.put("smallImageId", getSmallImageId());
067 attributes.put("smallImageURL", getSmallImageURL());
068 attributes.put("status", getStatus());
069 attributes.put("statusByUserId", getStatusByUserId());
070 attributes.put("statusByUserName", getStatusByUserName());
071 attributes.put("statusDate", getStatusDate());
072
073 return attributes;
074 }
075
076 public void setModelAttributes(Map<String, Object> attributes) {
077 String uuid = (String)attributes.get("uuid");
078
079 if (uuid != null) {
080 setUuid(uuid);
081 }
082
083 Long entryId = (Long)attributes.get("entryId");
084
085 if (entryId != null) {
086 setEntryId(entryId);
087 }
088
089 Long groupId = (Long)attributes.get("groupId");
090
091 if (groupId != null) {
092 setGroupId(groupId);
093 }
094
095 Long companyId = (Long)attributes.get("companyId");
096
097 if (companyId != null) {
098 setCompanyId(companyId);
099 }
100
101 Long userId = (Long)attributes.get("userId");
102
103 if (userId != null) {
104 setUserId(userId);
105 }
106
107 String userName = (String)attributes.get("userName");
108
109 if (userName != null) {
110 setUserName(userName);
111 }
112
113 Date createDate = (Date)attributes.get("createDate");
114
115 if (createDate != null) {
116 setCreateDate(createDate);
117 }
118
119 Date modifiedDate = (Date)attributes.get("modifiedDate");
120
121 if (modifiedDate != null) {
122 setModifiedDate(modifiedDate);
123 }
124
125 String title = (String)attributes.get("title");
126
127 if (title != null) {
128 setTitle(title);
129 }
130
131 String urlTitle = (String)attributes.get("urlTitle");
132
133 if (urlTitle != null) {
134 setUrlTitle(urlTitle);
135 }
136
137 String description = (String)attributes.get("description");
138
139 if (description != null) {
140 setDescription(description);
141 }
142
143 String content = (String)attributes.get("content");
144
145 if (content != null) {
146 setContent(content);
147 }
148
149 Date displayDate = (Date)attributes.get("displayDate");
150
151 if (displayDate != null) {
152 setDisplayDate(displayDate);
153 }
154
155 Boolean allowPingbacks = (Boolean)attributes.get("allowPingbacks");
156
157 if (allowPingbacks != null) {
158 setAllowPingbacks(allowPingbacks);
159 }
160
161 Boolean allowTrackbacks = (Boolean)attributes.get("allowTrackbacks");
162
163 if (allowTrackbacks != null) {
164 setAllowTrackbacks(allowTrackbacks);
165 }
166
167 String trackbacks = (String)attributes.get("trackbacks");
168
169 if (trackbacks != null) {
170 setTrackbacks(trackbacks);
171 }
172
173 Boolean smallImage = (Boolean)attributes.get("smallImage");
174
175 if (smallImage != null) {
176 setSmallImage(smallImage);
177 }
178
179 Long smallImageId = (Long)attributes.get("smallImageId");
180
181 if (smallImageId != null) {
182 setSmallImageId(smallImageId);
183 }
184
185 String smallImageURL = (String)attributes.get("smallImageURL");
186
187 if (smallImageURL != null) {
188 setSmallImageURL(smallImageURL);
189 }
190
191 Integer status = (Integer)attributes.get("status");
192
193 if (status != null) {
194 setStatus(status);
195 }
196
197 Long statusByUserId = (Long)attributes.get("statusByUserId");
198
199 if (statusByUserId != null) {
200 setStatusByUserId(statusByUserId);
201 }
202
203 String statusByUserName = (String)attributes.get("statusByUserName");
204
205 if (statusByUserName != null) {
206 setStatusByUserName(statusByUserName);
207 }
208
209 Date statusDate = (Date)attributes.get("statusDate");
210
211 if (statusDate != null) {
212 setStatusDate(statusDate);
213 }
214 }
215
216
221 public long getPrimaryKey() {
222 return _blogsEntry.getPrimaryKey();
223 }
224
225
230 public void setPrimaryKey(long primaryKey) {
231 _blogsEntry.setPrimaryKey(primaryKey);
232 }
233
234
239 public java.lang.String getUuid() {
240 return _blogsEntry.getUuid();
241 }
242
243
248 public void setUuid(java.lang.String uuid) {
249 _blogsEntry.setUuid(uuid);
250 }
251
252
257 public long getEntryId() {
258 return _blogsEntry.getEntryId();
259 }
260
261
266 public void setEntryId(long entryId) {
267 _blogsEntry.setEntryId(entryId);
268 }
269
270
275 public long getGroupId() {
276 return _blogsEntry.getGroupId();
277 }
278
279
284 public void setGroupId(long groupId) {
285 _blogsEntry.setGroupId(groupId);
286 }
287
288
293 public long getCompanyId() {
294 return _blogsEntry.getCompanyId();
295 }
296
297
302 public void setCompanyId(long companyId) {
303 _blogsEntry.setCompanyId(companyId);
304 }
305
306
311 public long getUserId() {
312 return _blogsEntry.getUserId();
313 }
314
315
320 public void setUserId(long userId) {
321 _blogsEntry.setUserId(userId);
322 }
323
324
330 public java.lang.String getUserUuid()
331 throws com.liferay.portal.kernel.exception.SystemException {
332 return _blogsEntry.getUserUuid();
333 }
334
335
340 public void setUserUuid(java.lang.String userUuid) {
341 _blogsEntry.setUserUuid(userUuid);
342 }
343
344
349 public java.lang.String getUserName() {
350 return _blogsEntry.getUserName();
351 }
352
353
358 public void setUserName(java.lang.String userName) {
359 _blogsEntry.setUserName(userName);
360 }
361
362
367 public java.util.Date getCreateDate() {
368 return _blogsEntry.getCreateDate();
369 }
370
371
376 public void setCreateDate(java.util.Date createDate) {
377 _blogsEntry.setCreateDate(createDate);
378 }
379
380
385 public java.util.Date getModifiedDate() {
386 return _blogsEntry.getModifiedDate();
387 }
388
389
394 public void setModifiedDate(java.util.Date modifiedDate) {
395 _blogsEntry.setModifiedDate(modifiedDate);
396 }
397
398
403 public java.lang.String getTitle() {
404 return _blogsEntry.getTitle();
405 }
406
407
412 public void setTitle(java.lang.String title) {
413 _blogsEntry.setTitle(title);
414 }
415
416
421 public java.lang.String getUrlTitle() {
422 return _blogsEntry.getUrlTitle();
423 }
424
425
430 public void setUrlTitle(java.lang.String urlTitle) {
431 _blogsEntry.setUrlTitle(urlTitle);
432 }
433
434
439 public java.lang.String getDescription() {
440 return _blogsEntry.getDescription();
441 }
442
443
448 public void setDescription(java.lang.String description) {
449 _blogsEntry.setDescription(description);
450 }
451
452
457 public java.lang.String getContent() {
458 return _blogsEntry.getContent();
459 }
460
461
466 public void setContent(java.lang.String content) {
467 _blogsEntry.setContent(content);
468 }
469
470
475 public java.util.Date getDisplayDate() {
476 return _blogsEntry.getDisplayDate();
477 }
478
479
484 public void setDisplayDate(java.util.Date displayDate) {
485 _blogsEntry.setDisplayDate(displayDate);
486 }
487
488
493 public boolean getAllowPingbacks() {
494 return _blogsEntry.getAllowPingbacks();
495 }
496
497
502 public boolean isAllowPingbacks() {
503 return _blogsEntry.isAllowPingbacks();
504 }
505
506
511 public void setAllowPingbacks(boolean allowPingbacks) {
512 _blogsEntry.setAllowPingbacks(allowPingbacks);
513 }
514
515
520 public boolean getAllowTrackbacks() {
521 return _blogsEntry.getAllowTrackbacks();
522 }
523
524
529 public boolean isAllowTrackbacks() {
530 return _blogsEntry.isAllowTrackbacks();
531 }
532
533
538 public void setAllowTrackbacks(boolean allowTrackbacks) {
539 _blogsEntry.setAllowTrackbacks(allowTrackbacks);
540 }
541
542
547 public java.lang.String getTrackbacks() {
548 return _blogsEntry.getTrackbacks();
549 }
550
551
556 public void setTrackbacks(java.lang.String trackbacks) {
557 _blogsEntry.setTrackbacks(trackbacks);
558 }
559
560
565 public boolean getSmallImage() {
566 return _blogsEntry.getSmallImage();
567 }
568
569
574 public boolean isSmallImage() {
575 return _blogsEntry.isSmallImage();
576 }
577
578
583 public void setSmallImage(boolean smallImage) {
584 _blogsEntry.setSmallImage(smallImage);
585 }
586
587
592 public long getSmallImageId() {
593 return _blogsEntry.getSmallImageId();
594 }
595
596
601 public void setSmallImageId(long smallImageId) {
602 _blogsEntry.setSmallImageId(smallImageId);
603 }
604
605
610 public java.lang.String getSmallImageURL() {
611 return _blogsEntry.getSmallImageURL();
612 }
613
614
619 public void setSmallImageURL(java.lang.String smallImageURL) {
620 _blogsEntry.setSmallImageURL(smallImageURL);
621 }
622
623
628 public int getStatus() {
629 return _blogsEntry.getStatus();
630 }
631
632
637 public void setStatus(int status) {
638 _blogsEntry.setStatus(status);
639 }
640
641
646 public long getStatusByUserId() {
647 return _blogsEntry.getStatusByUserId();
648 }
649
650
655 public void setStatusByUserId(long statusByUserId) {
656 _blogsEntry.setStatusByUserId(statusByUserId);
657 }
658
659
665 public java.lang.String getStatusByUserUuid()
666 throws com.liferay.portal.kernel.exception.SystemException {
667 return _blogsEntry.getStatusByUserUuid();
668 }
669
670
675 public void setStatusByUserUuid(java.lang.String statusByUserUuid) {
676 _blogsEntry.setStatusByUserUuid(statusByUserUuid);
677 }
678
679
684 public java.lang.String getStatusByUserName() {
685 return _blogsEntry.getStatusByUserName();
686 }
687
688
693 public void setStatusByUserName(java.lang.String statusByUserName) {
694 _blogsEntry.setStatusByUserName(statusByUserName);
695 }
696
697
702 public java.util.Date getStatusDate() {
703 return _blogsEntry.getStatusDate();
704 }
705
706
711 public void setStatusDate(java.util.Date statusDate) {
712 _blogsEntry.setStatusDate(statusDate);
713 }
714
715
718 public boolean getApproved() {
719 return _blogsEntry.getApproved();
720 }
721
722
727 public boolean isApproved() {
728 return _blogsEntry.isApproved();
729 }
730
731
736 public boolean isDenied() {
737 return _blogsEntry.isDenied();
738 }
739
740
745 public boolean isDraft() {
746 return _blogsEntry.isDraft();
747 }
748
749
754 public boolean isExpired() {
755 return _blogsEntry.isExpired();
756 }
757
758
763 public boolean isInactive() {
764 return _blogsEntry.isInactive();
765 }
766
767
772 public boolean isIncomplete() {
773 return _blogsEntry.isIncomplete();
774 }
775
776
781 public boolean isPending() {
782 return _blogsEntry.isPending();
783 }
784
785
790 public boolean isScheduled() {
791 return _blogsEntry.isScheduled();
792 }
793
794 public boolean isNew() {
795 return _blogsEntry.isNew();
796 }
797
798 public void setNew(boolean n) {
799 _blogsEntry.setNew(n);
800 }
801
802 public boolean isCachedModel() {
803 return _blogsEntry.isCachedModel();
804 }
805
806 public void setCachedModel(boolean cachedModel) {
807 _blogsEntry.setCachedModel(cachedModel);
808 }
809
810 public boolean isEscapedModel() {
811 return _blogsEntry.isEscapedModel();
812 }
813
814 public java.io.Serializable getPrimaryKeyObj() {
815 return _blogsEntry.getPrimaryKeyObj();
816 }
817
818 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
819 _blogsEntry.setPrimaryKeyObj(primaryKeyObj);
820 }
821
822 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
823 return _blogsEntry.getExpandoBridge();
824 }
825
826 public void setExpandoBridgeAttributes(
827 com.liferay.portal.service.ServiceContext serviceContext) {
828 _blogsEntry.setExpandoBridgeAttributes(serviceContext);
829 }
830
831 @Override
832 public java.lang.Object clone() {
833 return new BlogsEntryWrapper((BlogsEntry)_blogsEntry.clone());
834 }
835
836 public int compareTo(com.liferay.portlet.blogs.model.BlogsEntry blogsEntry) {
837 return _blogsEntry.compareTo(blogsEntry);
838 }
839
840 @Override
841 public int hashCode() {
842 return _blogsEntry.hashCode();
843 }
844
845 public com.liferay.portal.model.CacheModel<com.liferay.portlet.blogs.model.BlogsEntry> toCacheModel() {
846 return _blogsEntry.toCacheModel();
847 }
848
849 public com.liferay.portlet.blogs.model.BlogsEntry toEscapedModel() {
850 return new BlogsEntryWrapper(_blogsEntry.toEscapedModel());
851 }
852
853 public com.liferay.portlet.blogs.model.BlogsEntry toUnescapedModel() {
854 return new BlogsEntryWrapper(_blogsEntry.toUnescapedModel());
855 }
856
857 @Override
858 public java.lang.String toString() {
859 return _blogsEntry.toString();
860 }
861
862 public java.lang.String toXmlString() {
863 return _blogsEntry.toXmlString();
864 }
865
866 public void persist()
867 throws com.liferay.portal.kernel.exception.SystemException {
868 _blogsEntry.persist();
869 }
870
871 public java.lang.String getSmallImageType()
872 throws com.liferay.portal.kernel.exception.PortalException,
873 com.liferay.portal.kernel.exception.SystemException {
874 return _blogsEntry.getSmallImageType();
875 }
876
877 public boolean isVisible() {
878 return _blogsEntry.isVisible();
879 }
880
881 public void setSmallImageType(java.lang.String smallImageType) {
882 _blogsEntry.setSmallImageType(smallImageType);
883 }
884
885 @Override
886 public boolean equals(Object obj) {
887 if (this == obj) {
888 return true;
889 }
890
891 if (!(obj instanceof BlogsEntryWrapper)) {
892 return false;
893 }
894
895 BlogsEntryWrapper blogsEntryWrapper = (BlogsEntryWrapper)obj;
896
897 if (Validator.equals(_blogsEntry, blogsEntryWrapper._blogsEntry)) {
898 return true;
899 }
900
901 return false;
902 }
903
904
907 public BlogsEntry getWrappedBlogsEntry() {
908 return _blogsEntry;
909 }
910
911 public BlogsEntry getWrappedModel() {
912 return _blogsEntry;
913 }
914
915 public void resetOriginalValues() {
916 _blogsEntry.resetOriginalValues();
917 }
918
919 private BlogsEntry _blogsEntry;
920 }