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