001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.blogs.model;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.util.Validator;
020    import com.liferay.portal.model.ModelWrapper;
021    import com.liferay.portal.service.ServiceContext;
022    
023    import com.liferay.portlet.expando.model.ExpandoBridge;
024    import com.liferay.portlet.exportimport.lar.StagedModelType;
025    
026    import java.io.Serializable;
027    
028    import java.util.Date;
029    import java.util.HashMap;
030    import java.util.Map;
031    
032    /**
033     * <p>
034     * This class is a wrapper for {@link BlogsEntry}.
035     * </p>
036     *
037     * @author Brian Wing Shun Chan
038     * @see BlogsEntry
039     * @generated
040     */
041    @ProviderType
042    public class BlogsEntryWrapper implements BlogsEntry, ModelWrapper<BlogsEntry> {
043            public BlogsEntryWrapper(BlogsEntry blogsEntry) {
044                    _blogsEntry = blogsEntry;
045            }
046    
047            @Override
048            public Class<?> getModelClass() {
049                    return BlogsEntry.class;
050            }
051    
052            @Override
053            public String getModelClassName() {
054                    return BlogsEntry.class.getName();
055            }
056    
057            @Override
058            public Map<String, Object> getModelAttributes() {
059                    Map<String, Object> attributes = new HashMap<String, Object>();
060    
061                    attributes.put("uuid", getUuid());
062                    attributes.put("entryId", getEntryId());
063                    attributes.put("groupId", getGroupId());
064                    attributes.put("companyId", getCompanyId());
065                    attributes.put("userId", getUserId());
066                    attributes.put("userName", getUserName());
067                    attributes.put("createDate", getCreateDate());
068                    attributes.put("modifiedDate", getModifiedDate());
069                    attributes.put("title", getTitle());
070                    attributes.put("subtitle", getSubtitle());
071                    attributes.put("urlTitle", getUrlTitle());
072                    attributes.put("description", getDescription());
073                    attributes.put("content", getContent());
074                    attributes.put("displayDate", getDisplayDate());
075                    attributes.put("allowPingbacks", getAllowPingbacks());
076                    attributes.put("allowTrackbacks", getAllowTrackbacks());
077                    attributes.put("trackbacks", getTrackbacks());
078                    attributes.put("coverImageCaption", getCoverImageCaption());
079                    attributes.put("coverImageFileEntryId", getCoverImageFileEntryId());
080                    attributes.put("coverImageURL", getCoverImageURL());
081                    attributes.put("smallImage", getSmallImage());
082                    attributes.put("smallImageFileEntryId", getSmallImageFileEntryId());
083                    attributes.put("smallImageId", getSmallImageId());
084                    attributes.put("smallImageURL", getSmallImageURL());
085                    attributes.put("lastPublishDate", getLastPublishDate());
086                    attributes.put("status", getStatus());
087                    attributes.put("statusByUserId", getStatusByUserId());
088                    attributes.put("statusByUserName", getStatusByUserName());
089                    attributes.put("statusDate", getStatusDate());
090    
091                    return attributes;
092            }
093    
094            @Override
095            public void setModelAttributes(Map<String, Object> attributes) {
096                    String uuid = (String)attributes.get("uuid");
097    
098                    if (uuid != null) {
099                            setUuid(uuid);
100                    }
101    
102                    Long entryId = (Long)attributes.get("entryId");
103    
104                    if (entryId != null) {
105                            setEntryId(entryId);
106                    }
107    
108                    Long groupId = (Long)attributes.get("groupId");
109    
110                    if (groupId != null) {
111                            setGroupId(groupId);
112                    }
113    
114                    Long companyId = (Long)attributes.get("companyId");
115    
116                    if (companyId != null) {
117                            setCompanyId(companyId);
118                    }
119    
120                    Long userId = (Long)attributes.get("userId");
121    
122                    if (userId != null) {
123                            setUserId(userId);
124                    }
125    
126                    String userName = (String)attributes.get("userName");
127    
128                    if (userName != null) {
129                            setUserName(userName);
130                    }
131    
132                    Date createDate = (Date)attributes.get("createDate");
133    
134                    if (createDate != null) {
135                            setCreateDate(createDate);
136                    }
137    
138                    Date modifiedDate = (Date)attributes.get("modifiedDate");
139    
140                    if (modifiedDate != null) {
141                            setModifiedDate(modifiedDate);
142                    }
143    
144                    String title = (String)attributes.get("title");
145    
146                    if (title != null) {
147                            setTitle(title);
148                    }
149    
150                    String subtitle = (String)attributes.get("subtitle");
151    
152                    if (subtitle != null) {
153                            setSubtitle(subtitle);
154                    }
155    
156                    String urlTitle = (String)attributes.get("urlTitle");
157    
158                    if (urlTitle != null) {
159                            setUrlTitle(urlTitle);
160                    }
161    
162                    String description = (String)attributes.get("description");
163    
164                    if (description != null) {
165                            setDescription(description);
166                    }
167    
168                    String content = (String)attributes.get("content");
169    
170                    if (content != null) {
171                            setContent(content);
172                    }
173    
174                    Date displayDate = (Date)attributes.get("displayDate");
175    
176                    if (displayDate != null) {
177                            setDisplayDate(displayDate);
178                    }
179    
180                    Boolean allowPingbacks = (Boolean)attributes.get("allowPingbacks");
181    
182                    if (allowPingbacks != null) {
183                            setAllowPingbacks(allowPingbacks);
184                    }
185    
186                    Boolean allowTrackbacks = (Boolean)attributes.get("allowTrackbacks");
187    
188                    if (allowTrackbacks != null) {
189                            setAllowTrackbacks(allowTrackbacks);
190                    }
191    
192                    String trackbacks = (String)attributes.get("trackbacks");
193    
194                    if (trackbacks != null) {
195                            setTrackbacks(trackbacks);
196                    }
197    
198                    String coverImageCaption = (String)attributes.get("coverImageCaption");
199    
200                    if (coverImageCaption != null) {
201                            setCoverImageCaption(coverImageCaption);
202                    }
203    
204                    Long coverImageFileEntryId = (Long)attributes.get(
205                                    "coverImageFileEntryId");
206    
207                    if (coverImageFileEntryId != null) {
208                            setCoverImageFileEntryId(coverImageFileEntryId);
209                    }
210    
211                    String coverImageURL = (String)attributes.get("coverImageURL");
212    
213                    if (coverImageURL != null) {
214                            setCoverImageURL(coverImageURL);
215                    }
216    
217                    Boolean smallImage = (Boolean)attributes.get("smallImage");
218    
219                    if (smallImage != null) {
220                            setSmallImage(smallImage);
221                    }
222    
223                    Long smallImageFileEntryId = (Long)attributes.get(
224                                    "smallImageFileEntryId");
225    
226                    if (smallImageFileEntryId != null) {
227                            setSmallImageFileEntryId(smallImageFileEntryId);
228                    }
229    
230                    Long smallImageId = (Long)attributes.get("smallImageId");
231    
232                    if (smallImageId != null) {
233                            setSmallImageId(smallImageId);
234                    }
235    
236                    String smallImageURL = (String)attributes.get("smallImageURL");
237    
238                    if (smallImageURL != null) {
239                            setSmallImageURL(smallImageURL);
240                    }
241    
242                    Date lastPublishDate = (Date)attributes.get("lastPublishDate");
243    
244                    if (lastPublishDate != null) {
245                            setLastPublishDate(lastPublishDate);
246                    }
247    
248                    Integer status = (Integer)attributes.get("status");
249    
250                    if (status != null) {
251                            setStatus(status);
252                    }
253    
254                    Long statusByUserId = (Long)attributes.get("statusByUserId");
255    
256                    if (statusByUserId != null) {
257                            setStatusByUserId(statusByUserId);
258                    }
259    
260                    String statusByUserName = (String)attributes.get("statusByUserName");
261    
262                    if (statusByUserName != null) {
263                            setStatusByUserName(statusByUserName);
264                    }
265    
266                    Date statusDate = (Date)attributes.get("statusDate");
267    
268                    if (statusDate != null) {
269                            setStatusDate(statusDate);
270                    }
271            }
272    
273            @Override
274            public java.lang.Object clone() {
275                    return new BlogsEntryWrapper((BlogsEntry)_blogsEntry.clone());
276            }
277    
278            @Override
279            public int compareTo(com.liferay.portlet.blogs.model.BlogsEntry blogsEntry) {
280                    return _blogsEntry.compareTo(blogsEntry);
281            }
282    
283            /**
284            * Returns the allow pingbacks of this blogs entry.
285            *
286            * @return the allow pingbacks of this blogs entry
287            */
288            @Override
289            public boolean getAllowPingbacks() {
290                    return _blogsEntry.getAllowPingbacks();
291            }
292    
293            /**
294            * Returns the allow trackbacks of this blogs entry.
295            *
296            * @return the allow trackbacks of this blogs entry
297            */
298            @Override
299            public boolean getAllowTrackbacks() {
300                    return _blogsEntry.getAllowTrackbacks();
301            }
302    
303            /**
304            * Returns the company ID of this blogs entry.
305            *
306            * @return the company ID of this blogs entry
307            */
308            @Override
309            public long getCompanyId() {
310                    return _blogsEntry.getCompanyId();
311            }
312    
313            /**
314            * Returns the content of this blogs entry.
315            *
316            * @return the content of this blogs entry
317            */
318            @Override
319            public java.lang.String getContent() {
320                    return _blogsEntry.getContent();
321            }
322    
323            /**
324            * Returns the cover image caption of this blogs entry.
325            *
326            * @return the cover image caption of this blogs entry
327            */
328            @Override
329            public java.lang.String getCoverImageCaption() {
330                    return _blogsEntry.getCoverImageCaption();
331            }
332    
333            /**
334            * Returns the cover image file entry ID of this blogs entry.
335            *
336            * @return the cover image file entry ID of this blogs entry
337            */
338            @Override
339            public long getCoverImageFileEntryId() {
340                    return _blogsEntry.getCoverImageFileEntryId();
341            }
342    
343            /**
344            * Returns the cover image u r l of this blogs entry.
345            *
346            * @return the cover image u r l of this blogs entry
347            */
348            @Override
349            public java.lang.String getCoverImageURL() {
350                    return _blogsEntry.getCoverImageURL();
351            }
352    
353            @Override
354            public java.lang.String getCoverImageURL(
355                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
356                    throws com.liferay.portal.kernel.exception.PortalException {
357                    return _blogsEntry.getCoverImageURL(themeDisplay);
358            }
359    
360            /**
361            * Returns the create date of this blogs entry.
362            *
363            * @return the create date of this blogs entry
364            */
365            @Override
366            public Date getCreateDate() {
367                    return _blogsEntry.getCreateDate();
368            }
369    
370            /**
371            * Returns the description of this blogs entry.
372            *
373            * @return the description of this blogs entry
374            */
375            @Override
376            public java.lang.String getDescription() {
377                    return _blogsEntry.getDescription();
378            }
379    
380            /**
381            * Returns the display date of this blogs entry.
382            *
383            * @return the display date of this blogs entry
384            */
385            @Override
386            public Date getDisplayDate() {
387                    return _blogsEntry.getDisplayDate();
388            }
389    
390            /**
391            * Returns the entry ID of this blogs entry.
392            *
393            * @return the entry ID of this blogs entry
394            */
395            @Override
396            public long getEntryId() {
397                    return _blogsEntry.getEntryId();
398            }
399    
400            /**
401            * @deprecated As of 7.0.0, replaced by {@link
402            #getSmallImageURL(ThemeDisplay)}
403            */
404            @Deprecated
405            @Override
406            public java.lang.String getEntryImageURL(
407                    com.liferay.portal.theme.ThemeDisplay themeDisplay) {
408                    return _blogsEntry.getEntryImageURL(themeDisplay);
409            }
410    
411            @Override
412            public ExpandoBridge getExpandoBridge() {
413                    return _blogsEntry.getExpandoBridge();
414            }
415    
416            /**
417            * Returns the group ID of this blogs entry.
418            *
419            * @return the group ID of this blogs entry
420            */
421            @Override
422            public long getGroupId() {
423                    return _blogsEntry.getGroupId();
424            }
425    
426            /**
427            * Returns the last publish date of this blogs entry.
428            *
429            * @return the last publish date of this blogs entry
430            */
431            @Override
432            public Date getLastPublishDate() {
433                    return _blogsEntry.getLastPublishDate();
434            }
435    
436            /**
437            * Returns the modified date of this blogs entry.
438            *
439            * @return the modified date of this blogs entry
440            */
441            @Override
442            public Date getModifiedDate() {
443                    return _blogsEntry.getModifiedDate();
444            }
445    
446            /**
447            * Returns the primary key of this blogs entry.
448            *
449            * @return the primary key of this blogs entry
450            */
451            @Override
452            public long getPrimaryKey() {
453                    return _blogsEntry.getPrimaryKey();
454            }
455    
456            @Override
457            public Serializable getPrimaryKeyObj() {
458                    return _blogsEntry.getPrimaryKeyObj();
459            }
460    
461            /**
462            * Returns the small image of this blogs entry.
463            *
464            * @return the small image of this blogs entry
465            */
466            @Override
467            public boolean getSmallImage() {
468                    return _blogsEntry.getSmallImage();
469            }
470    
471            /**
472            * Returns the small image file entry ID of this blogs entry.
473            *
474            * @return the small image file entry ID of this blogs entry
475            */
476            @Override
477            public long getSmallImageFileEntryId() {
478                    return _blogsEntry.getSmallImageFileEntryId();
479            }
480    
481            /**
482            * Returns the small image ID of this blogs entry.
483            *
484            * @return the small image ID of this blogs entry
485            */
486            @Override
487            public long getSmallImageId() {
488                    return _blogsEntry.getSmallImageId();
489            }
490    
491            @Override
492            public java.lang.String getSmallImageType()
493                    throws com.liferay.portal.kernel.exception.PortalException {
494                    return _blogsEntry.getSmallImageType();
495            }
496    
497            /**
498            * Returns the small image u r l of this blogs entry.
499            *
500            * @return the small image u r l of this blogs entry
501            */
502            @Override
503            public java.lang.String getSmallImageURL() {
504                    return _blogsEntry.getSmallImageURL();
505            }
506    
507            @Override
508            public java.lang.String getSmallImageURL(
509                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
510                    throws com.liferay.portal.kernel.exception.PortalException {
511                    return _blogsEntry.getSmallImageURL(themeDisplay);
512            }
513    
514            /**
515            * Returns the status of this blogs entry.
516            *
517            * @return the status of this blogs entry
518            */
519            @Override
520            public int getStatus() {
521                    return _blogsEntry.getStatus();
522            }
523    
524            /**
525            * Returns the status by user ID of this blogs entry.
526            *
527            * @return the status by user ID of this blogs entry
528            */
529            @Override
530            public long getStatusByUserId() {
531                    return _blogsEntry.getStatusByUserId();
532            }
533    
534            /**
535            * Returns the status by user name of this blogs entry.
536            *
537            * @return the status by user name of this blogs entry
538            */
539            @Override
540            public java.lang.String getStatusByUserName() {
541                    return _blogsEntry.getStatusByUserName();
542            }
543    
544            /**
545            * Returns the status by user uuid of this blogs entry.
546            *
547            * @return the status by user uuid of this blogs entry
548            */
549            @Override
550            public java.lang.String getStatusByUserUuid() {
551                    return _blogsEntry.getStatusByUserUuid();
552            }
553    
554            /**
555            * Returns the status date of this blogs entry.
556            *
557            * @return the status date of this blogs entry
558            */
559            @Override
560            public Date getStatusDate() {
561                    return _blogsEntry.getStatusDate();
562            }
563    
564            /**
565            * Returns the subtitle of this blogs entry.
566            *
567            * @return the subtitle of this blogs entry
568            */
569            @Override
570            public java.lang.String getSubtitle() {
571                    return _blogsEntry.getSubtitle();
572            }
573    
574            /**
575            * Returns the title of this blogs entry.
576            *
577            * @return the title of this blogs entry
578            */
579            @Override
580            public java.lang.String getTitle() {
581                    return _blogsEntry.getTitle();
582            }
583    
584            /**
585            * Returns the trackbacks of this blogs entry.
586            *
587            * @return the trackbacks of this blogs entry
588            */
589            @Override
590            public java.lang.String getTrackbacks() {
591                    return _blogsEntry.getTrackbacks();
592            }
593    
594            /**
595            * Returns the trash entry created when this blogs entry was moved to the Recycle Bin. The trash entry may belong to one of the ancestors of this blogs entry.
596            *
597            * @return the trash entry created when this blogs entry was moved to the Recycle Bin
598            */
599            @Override
600            public com.liferay.portlet.trash.model.TrashEntry getTrashEntry()
601                    throws com.liferay.portal.kernel.exception.PortalException {
602                    return _blogsEntry.getTrashEntry();
603            }
604    
605            /**
606            * Returns the class primary key of the trash entry for this blogs entry.
607            *
608            * @return the class primary key of the trash entry for this blogs entry
609            */
610            @Override
611            public long getTrashEntryClassPK() {
612                    return _blogsEntry.getTrashEntryClassPK();
613            }
614    
615            /**
616            * Returns the trash handler for this blogs entry.
617            *
618            * @return the trash handler for this blogs entry
619            */
620            @Override
621            public com.liferay.portal.kernel.trash.TrashHandler getTrashHandler() {
622                    return _blogsEntry.getTrashHandler();
623            }
624    
625            /**
626            * Returns the url title of this blogs entry.
627            *
628            * @return the url title of this blogs entry
629            */
630            @Override
631            public java.lang.String getUrlTitle() {
632                    return _blogsEntry.getUrlTitle();
633            }
634    
635            /**
636            * Returns the user ID of this blogs entry.
637            *
638            * @return the user ID of this blogs entry
639            */
640            @Override
641            public long getUserId() {
642                    return _blogsEntry.getUserId();
643            }
644    
645            /**
646            * Returns the user name of this blogs entry.
647            *
648            * @return the user name of this blogs entry
649            */
650            @Override
651            public java.lang.String getUserName() {
652                    return _blogsEntry.getUserName();
653            }
654    
655            /**
656            * Returns the user uuid of this blogs entry.
657            *
658            * @return the user uuid of this blogs entry
659            */
660            @Override
661            public java.lang.String getUserUuid() {
662                    return _blogsEntry.getUserUuid();
663            }
664    
665            /**
666            * Returns the uuid of this blogs entry.
667            *
668            * @return the uuid of this blogs entry
669            */
670            @Override
671            public java.lang.String getUuid() {
672                    return _blogsEntry.getUuid();
673            }
674    
675            @Override
676            public int hashCode() {
677                    return _blogsEntry.hashCode();
678            }
679    
680            /**
681            * Returns <code>true</code> if this blogs entry is allow pingbacks.
682            *
683            * @return <code>true</code> if this blogs entry is allow pingbacks; <code>false</code> otherwise
684            */
685            @Override
686            public boolean isAllowPingbacks() {
687                    return _blogsEntry.isAllowPingbacks();
688            }
689    
690            /**
691            * Returns <code>true</code> if this blogs entry is allow trackbacks.
692            *
693            * @return <code>true</code> if this blogs entry is allow trackbacks; <code>false</code> otherwise
694            */
695            @Override
696            public boolean isAllowTrackbacks() {
697                    return _blogsEntry.isAllowTrackbacks();
698            }
699    
700            /**
701            * Returns <code>true</code> if this blogs entry is approved.
702            *
703            * @return <code>true</code> if this blogs entry is approved; <code>false</code> otherwise
704            */
705            @Override
706            public boolean isApproved() {
707                    return _blogsEntry.isApproved();
708            }
709    
710            @Override
711            public boolean isCachedModel() {
712                    return _blogsEntry.isCachedModel();
713            }
714    
715            /**
716            * Returns <code>true</code> if this blogs entry is denied.
717            *
718            * @return <code>true</code> if this blogs entry is denied; <code>false</code> otherwise
719            */
720            @Override
721            public boolean isDenied() {
722                    return _blogsEntry.isDenied();
723            }
724    
725            /**
726            * Returns <code>true</code> if this blogs entry is a draft.
727            *
728            * @return <code>true</code> if this blogs entry is a draft; <code>false</code> otherwise
729            */
730            @Override
731            public boolean isDraft() {
732                    return _blogsEntry.isDraft();
733            }
734    
735            @Override
736            public boolean isEscapedModel() {
737                    return _blogsEntry.isEscapedModel();
738            }
739    
740            /**
741            * Returns <code>true</code> if this blogs entry is expired.
742            *
743            * @return <code>true</code> if this blogs entry is expired; <code>false</code> otherwise
744            */
745            @Override
746            public boolean isExpired() {
747                    return _blogsEntry.isExpired();
748            }
749    
750            /**
751            * Returns <code>true</code> if this blogs entry is in the Recycle Bin.
752            *
753            * @return <code>true</code> if this blogs entry is in the Recycle Bin; <code>false</code> otherwise
754            */
755            @Override
756            public boolean isInTrash() {
757                    return _blogsEntry.isInTrash();
758            }
759    
760            /**
761            * Returns <code>true</code> if the parent of this blogs entry is in the Recycle Bin.
762            *
763            * @return <code>true</code> if the parent of this blogs entry is in the Recycle Bin; <code>false</code> otherwise
764            */
765            @Override
766            public boolean isInTrashContainer() {
767                    return _blogsEntry.isInTrashContainer();
768            }
769    
770            @Override
771            public boolean isInTrashExplicitly() {
772                    return _blogsEntry.isInTrashExplicitly();
773            }
774    
775            @Override
776            public boolean isInTrashImplicitly() {
777                    return _blogsEntry.isInTrashImplicitly();
778            }
779    
780            /**
781            * Returns <code>true</code> if this blogs entry is inactive.
782            *
783            * @return <code>true</code> if this blogs entry is inactive; <code>false</code> otherwise
784            */
785            @Override
786            public boolean isInactive() {
787                    return _blogsEntry.isInactive();
788            }
789    
790            /**
791            * Returns <code>true</code> if this blogs entry is incomplete.
792            *
793            * @return <code>true</code> if this blogs entry is incomplete; <code>false</code> otherwise
794            */
795            @Override
796            public boolean isIncomplete() {
797                    return _blogsEntry.isIncomplete();
798            }
799    
800            @Override
801            public boolean isNew() {
802                    return _blogsEntry.isNew();
803            }
804    
805            /**
806            * Returns <code>true</code> if this blogs entry is pending.
807            *
808            * @return <code>true</code> if this blogs entry is pending; <code>false</code> otherwise
809            */
810            @Override
811            public boolean isPending() {
812                    return _blogsEntry.isPending();
813            }
814    
815            /**
816            * Returns <code>true</code> if this blogs entry is scheduled.
817            *
818            * @return <code>true</code> if this blogs entry is scheduled; <code>false</code> otherwise
819            */
820            @Override
821            public boolean isScheduled() {
822                    return _blogsEntry.isScheduled();
823            }
824    
825            /**
826            * Returns <code>true</code> if this blogs entry is small image.
827            *
828            * @return <code>true</code> if this blogs entry is small image; <code>false</code> otherwise
829            */
830            @Override
831            public boolean isSmallImage() {
832                    return _blogsEntry.isSmallImage();
833            }
834    
835            @Override
836            public boolean isVisible() {
837                    return _blogsEntry.isVisible();
838            }
839    
840            @Override
841            public void persist() {
842                    _blogsEntry.persist();
843            }
844    
845            /**
846            * Sets whether this blogs entry is allow pingbacks.
847            *
848            * @param allowPingbacks the allow pingbacks of this blogs entry
849            */
850            @Override
851            public void setAllowPingbacks(boolean allowPingbacks) {
852                    _blogsEntry.setAllowPingbacks(allowPingbacks);
853            }
854    
855            /**
856            * Sets whether this blogs entry is allow trackbacks.
857            *
858            * @param allowTrackbacks the allow trackbacks of this blogs entry
859            */
860            @Override
861            public void setAllowTrackbacks(boolean allowTrackbacks) {
862                    _blogsEntry.setAllowTrackbacks(allowTrackbacks);
863            }
864    
865            @Override
866            public void setCachedModel(boolean cachedModel) {
867                    _blogsEntry.setCachedModel(cachedModel);
868            }
869    
870            /**
871            * Sets the company ID of this blogs entry.
872            *
873            * @param companyId the company ID of this blogs entry
874            */
875            @Override
876            public void setCompanyId(long companyId) {
877                    _blogsEntry.setCompanyId(companyId);
878            }
879    
880            /**
881            * Sets the content of this blogs entry.
882            *
883            * @param content the content of this blogs entry
884            */
885            @Override
886            public void setContent(java.lang.String content) {
887                    _blogsEntry.setContent(content);
888            }
889    
890            /**
891            * Sets the cover image caption of this blogs entry.
892            *
893            * @param coverImageCaption the cover image caption of this blogs entry
894            */
895            @Override
896            public void setCoverImageCaption(java.lang.String coverImageCaption) {
897                    _blogsEntry.setCoverImageCaption(coverImageCaption);
898            }
899    
900            /**
901            * Sets the cover image file entry ID of this blogs entry.
902            *
903            * @param coverImageFileEntryId the cover image file entry ID of this blogs entry
904            */
905            @Override
906            public void setCoverImageFileEntryId(long coverImageFileEntryId) {
907                    _blogsEntry.setCoverImageFileEntryId(coverImageFileEntryId);
908            }
909    
910            /**
911            * Sets the cover image u r l of this blogs entry.
912            *
913            * @param coverImageURL the cover image u r l of this blogs entry
914            */
915            @Override
916            public void setCoverImageURL(java.lang.String coverImageURL) {
917                    _blogsEntry.setCoverImageURL(coverImageURL);
918            }
919    
920            /**
921            * Sets the create date of this blogs entry.
922            *
923            * @param createDate the create date of this blogs entry
924            */
925            @Override
926            public void setCreateDate(Date createDate) {
927                    _blogsEntry.setCreateDate(createDate);
928            }
929    
930            /**
931            * Sets the description of this blogs entry.
932            *
933            * @param description the description of this blogs entry
934            */
935            @Override
936            public void setDescription(java.lang.String description) {
937                    _blogsEntry.setDescription(description);
938            }
939    
940            /**
941            * Sets the display date of this blogs entry.
942            *
943            * @param displayDate the display date of this blogs entry
944            */
945            @Override
946            public void setDisplayDate(Date displayDate) {
947                    _blogsEntry.setDisplayDate(displayDate);
948            }
949    
950            /**
951            * Sets the entry ID of this blogs entry.
952            *
953            * @param entryId the entry ID of this blogs entry
954            */
955            @Override
956            public void setEntryId(long entryId) {
957                    _blogsEntry.setEntryId(entryId);
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(ExpandoBridge expandoBridge) {
968                    _blogsEntry.setExpandoBridgeAttributes(expandoBridge);
969            }
970    
971            @Override
972            public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
973                    _blogsEntry.setExpandoBridgeAttributes(serviceContext);
974            }
975    
976            /**
977            * Sets the group ID of this blogs entry.
978            *
979            * @param groupId the group ID of this blogs entry
980            */
981            @Override
982            public void setGroupId(long groupId) {
983                    _blogsEntry.setGroupId(groupId);
984            }
985    
986            /**
987            * Sets the last publish date of this blogs entry.
988            *
989            * @param lastPublishDate the last publish date of this blogs entry
990            */
991            @Override
992            public void setLastPublishDate(Date lastPublishDate) {
993                    _blogsEntry.setLastPublishDate(lastPublishDate);
994            }
995    
996            /**
997            * Sets the modified date of this blogs entry.
998            *
999            * @param modifiedDate the modified date of this blogs entry
1000            */
1001            @Override
1002            public void setModifiedDate(Date modifiedDate) {
1003                    _blogsEntry.setModifiedDate(modifiedDate);
1004            }
1005    
1006            @Override
1007            public void setNew(boolean n) {
1008                    _blogsEntry.setNew(n);
1009            }
1010    
1011            /**
1012            * Sets the primary key of this blogs entry.
1013            *
1014            * @param primaryKey the primary key of this blogs entry
1015            */
1016            @Override
1017            public void setPrimaryKey(long primaryKey) {
1018                    _blogsEntry.setPrimaryKey(primaryKey);
1019            }
1020    
1021            @Override
1022            public void setPrimaryKeyObj(Serializable primaryKeyObj) {
1023                    _blogsEntry.setPrimaryKeyObj(primaryKeyObj);
1024            }
1025    
1026            /**
1027            * Sets whether this blogs entry is small image.
1028            *
1029            * @param smallImage the small image of this blogs entry
1030            */
1031            @Override
1032            public void setSmallImage(boolean smallImage) {
1033                    _blogsEntry.setSmallImage(smallImage);
1034            }
1035    
1036            /**
1037            * Sets the small image file entry ID of this blogs entry.
1038            *
1039            * @param smallImageFileEntryId the small image file entry ID of this blogs entry
1040            */
1041            @Override
1042            public void setSmallImageFileEntryId(long smallImageFileEntryId) {
1043                    _blogsEntry.setSmallImageFileEntryId(smallImageFileEntryId);
1044            }
1045    
1046            /**
1047            * Sets the small image ID of this blogs entry.
1048            *
1049            * @param smallImageId the small image ID of this blogs entry
1050            */
1051            @Override
1052            public void setSmallImageId(long smallImageId) {
1053                    _blogsEntry.setSmallImageId(smallImageId);
1054            }
1055    
1056            @Override
1057            public void setSmallImageType(java.lang.String smallImageType) {
1058                    _blogsEntry.setSmallImageType(smallImageType);
1059            }
1060    
1061            /**
1062            * Sets the small image u r l of this blogs entry.
1063            *
1064            * @param smallImageURL the small image u r l of this blogs entry
1065            */
1066            @Override
1067            public void setSmallImageURL(java.lang.String smallImageURL) {
1068                    _blogsEntry.setSmallImageURL(smallImageURL);
1069            }
1070    
1071            /**
1072            * Sets the status of this blogs entry.
1073            *
1074            * @param status the status of this blogs entry
1075            */
1076            @Override
1077            public void setStatus(int status) {
1078                    _blogsEntry.setStatus(status);
1079            }
1080    
1081            /**
1082            * Sets the status by user ID of this blogs entry.
1083            *
1084            * @param statusByUserId the status by user ID of this blogs entry
1085            */
1086            @Override
1087            public void setStatusByUserId(long statusByUserId) {
1088                    _blogsEntry.setStatusByUserId(statusByUserId);
1089            }
1090    
1091            /**
1092            * Sets the status by user name of this blogs entry.
1093            *
1094            * @param statusByUserName the status by user name of this blogs entry
1095            */
1096            @Override
1097            public void setStatusByUserName(java.lang.String statusByUserName) {
1098                    _blogsEntry.setStatusByUserName(statusByUserName);
1099            }
1100    
1101            /**
1102            * Sets the status by user uuid of this blogs entry.
1103            *
1104            * @param statusByUserUuid the status by user uuid of this blogs entry
1105            */
1106            @Override
1107            public void setStatusByUserUuid(java.lang.String statusByUserUuid) {
1108                    _blogsEntry.setStatusByUserUuid(statusByUserUuid);
1109            }
1110    
1111            /**
1112            * Sets the status date of this blogs entry.
1113            *
1114            * @param statusDate the status date of this blogs entry
1115            */
1116            @Override
1117            public void setStatusDate(Date statusDate) {
1118                    _blogsEntry.setStatusDate(statusDate);
1119            }
1120    
1121            /**
1122            * Sets the subtitle of this blogs entry.
1123            *
1124            * @param subtitle the subtitle of this blogs entry
1125            */
1126            @Override
1127            public void setSubtitle(java.lang.String subtitle) {
1128                    _blogsEntry.setSubtitle(subtitle);
1129            }
1130    
1131            /**
1132            * Sets the title of this blogs entry.
1133            *
1134            * @param title the title of this blogs entry
1135            */
1136            @Override
1137            public void setTitle(java.lang.String title) {
1138                    _blogsEntry.setTitle(title);
1139            }
1140    
1141            /**
1142            * Sets the trackbacks of this blogs entry.
1143            *
1144            * @param trackbacks the trackbacks of this blogs entry
1145            */
1146            @Override
1147            public void setTrackbacks(java.lang.String trackbacks) {
1148                    _blogsEntry.setTrackbacks(trackbacks);
1149            }
1150    
1151            /**
1152            * Sets the url title of this blogs entry.
1153            *
1154            * @param urlTitle the url title of this blogs entry
1155            */
1156            @Override
1157            public void setUrlTitle(java.lang.String urlTitle) {
1158                    _blogsEntry.setUrlTitle(urlTitle);
1159            }
1160    
1161            /**
1162            * Sets the user ID of this blogs entry.
1163            *
1164            * @param userId the user ID of this blogs entry
1165            */
1166            @Override
1167            public void setUserId(long userId) {
1168                    _blogsEntry.setUserId(userId);
1169            }
1170    
1171            /**
1172            * Sets the user name of this blogs entry.
1173            *
1174            * @param userName the user name of this blogs entry
1175            */
1176            @Override
1177            public void setUserName(java.lang.String userName) {
1178                    _blogsEntry.setUserName(userName);
1179            }
1180    
1181            /**
1182            * Sets the user uuid of this blogs entry.
1183            *
1184            * @param userUuid the user uuid of this blogs entry
1185            */
1186            @Override
1187            public void setUserUuid(java.lang.String userUuid) {
1188                    _blogsEntry.setUserUuid(userUuid);
1189            }
1190    
1191            /**
1192            * Sets the uuid of this blogs entry.
1193            *
1194            * @param uuid the uuid of this blogs entry
1195            */
1196            @Override
1197            public void setUuid(java.lang.String uuid) {
1198                    _blogsEntry.setUuid(uuid);
1199            }
1200    
1201            @Override
1202            public com.liferay.portal.model.CacheModel<com.liferay.portlet.blogs.model.BlogsEntry> toCacheModel() {
1203                    return _blogsEntry.toCacheModel();
1204            }
1205    
1206            @Override
1207            public com.liferay.portlet.blogs.model.BlogsEntry toEscapedModel() {
1208                    return new BlogsEntryWrapper(_blogsEntry.toEscapedModel());
1209            }
1210    
1211            @Override
1212            public java.lang.String toString() {
1213                    return _blogsEntry.toString();
1214            }
1215    
1216            @Override
1217            public com.liferay.portlet.blogs.model.BlogsEntry toUnescapedModel() {
1218                    return new BlogsEntryWrapper(_blogsEntry.toUnescapedModel());
1219            }
1220    
1221            @Override
1222            public java.lang.String toXmlString() {
1223                    return _blogsEntry.toXmlString();
1224            }
1225    
1226            @Override
1227            public boolean equals(Object obj) {
1228                    if (this == obj) {
1229                            return true;
1230                    }
1231    
1232                    if (!(obj instanceof BlogsEntryWrapper)) {
1233                            return false;
1234                    }
1235    
1236                    BlogsEntryWrapper blogsEntryWrapper = (BlogsEntryWrapper)obj;
1237    
1238                    if (Validator.equals(_blogsEntry, blogsEntryWrapper._blogsEntry)) {
1239                            return true;
1240                    }
1241    
1242                    return false;
1243            }
1244    
1245            @Override
1246            public StagedModelType getStagedModelType() {
1247                    return _blogsEntry.getStagedModelType();
1248            }
1249    
1250            @Override
1251            public BlogsEntry getWrappedModel() {
1252                    return _blogsEntry;
1253            }
1254    
1255            @Override
1256            public boolean isEntityCacheEnabled() {
1257                    return _blogsEntry.isEntityCacheEnabled();
1258            }
1259    
1260            @Override
1261            public boolean isFinderCacheEnabled() {
1262                    return _blogsEntry.isFinderCacheEnabled();
1263            }
1264    
1265            @Override
1266            public void resetOriginalValues() {
1267                    _blogsEntry.resetOriginalValues();
1268            }
1269    
1270            private final BlogsEntry _blogsEntry;
1271    }