001    /**
002     * Copyright (c) 2000-2013 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.journal.model;
016    
017    import com.liferay.portal.kernel.lar.StagedModelType;
018    import com.liferay.portal.kernel.util.Validator;
019    import com.liferay.portal.model.ModelWrapper;
020    
021    import java.util.Date;
022    import java.util.HashMap;
023    import java.util.Map;
024    
025    /**
026     * <p>
027     * This class is a wrapper for {@link JournalArticle}.
028     * </p>
029     *
030     * @author Brian Wing Shun Chan
031     * @see JournalArticle
032     * @generated
033     */
034    public class JournalArticleWrapper implements JournalArticle,
035            ModelWrapper<JournalArticle> {
036            public JournalArticleWrapper(JournalArticle journalArticle) {
037                    _journalArticle = journalArticle;
038            }
039    
040            @Override
041            public Class<?> getModelClass() {
042                    return JournalArticle.class;
043            }
044    
045            @Override
046            public String getModelClassName() {
047                    return JournalArticle.class.getName();
048            }
049    
050            @Override
051            public Map<String, Object> getModelAttributes() {
052                    Map<String, Object> attributes = new HashMap<String, Object>();
053    
054                    attributes.put("uuid", getUuid());
055                    attributes.put("id", getId());
056                    attributes.put("resourcePrimKey", getResourcePrimKey());
057                    attributes.put("groupId", getGroupId());
058                    attributes.put("companyId", getCompanyId());
059                    attributes.put("userId", getUserId());
060                    attributes.put("userName", getUserName());
061                    attributes.put("createDate", getCreateDate());
062                    attributes.put("modifiedDate", getModifiedDate());
063                    attributes.put("folderId", getFolderId());
064                    attributes.put("classNameId", getClassNameId());
065                    attributes.put("classPK", getClassPK());
066                    attributes.put("articleId", getArticleId());
067                    attributes.put("version", getVersion());
068                    attributes.put("title", getTitle());
069                    attributes.put("urlTitle", getUrlTitle());
070                    attributes.put("description", getDescription());
071                    attributes.put("content", getContent());
072                    attributes.put("type", getType());
073                    attributes.put("structureId", getStructureId());
074                    attributes.put("templateId", getTemplateId());
075                    attributes.put("layoutUuid", getLayoutUuid());
076                    attributes.put("displayDate", getDisplayDate());
077                    attributes.put("expirationDate", getExpirationDate());
078                    attributes.put("reviewDate", getReviewDate());
079                    attributes.put("indexable", getIndexable());
080                    attributes.put("smallImage", getSmallImage());
081                    attributes.put("smallImageId", getSmallImageId());
082                    attributes.put("smallImageURL", getSmallImageURL());
083                    attributes.put("status", getStatus());
084                    attributes.put("statusByUserId", getStatusByUserId());
085                    attributes.put("statusByUserName", getStatusByUserName());
086                    attributes.put("statusDate", getStatusDate());
087    
088                    return attributes;
089            }
090    
091            @Override
092            public void setModelAttributes(Map<String, Object> attributes) {
093                    String uuid = (String)attributes.get("uuid");
094    
095                    if (uuid != null) {
096                            setUuid(uuid);
097                    }
098    
099                    Long id = (Long)attributes.get("id");
100    
101                    if (id != null) {
102                            setId(id);
103                    }
104    
105                    Long resourcePrimKey = (Long)attributes.get("resourcePrimKey");
106    
107                    if (resourcePrimKey != null) {
108                            setResourcePrimKey(resourcePrimKey);
109                    }
110    
111                    Long groupId = (Long)attributes.get("groupId");
112    
113                    if (groupId != null) {
114                            setGroupId(groupId);
115                    }
116    
117                    Long companyId = (Long)attributes.get("companyId");
118    
119                    if (companyId != null) {
120                            setCompanyId(companyId);
121                    }
122    
123                    Long userId = (Long)attributes.get("userId");
124    
125                    if (userId != null) {
126                            setUserId(userId);
127                    }
128    
129                    String userName = (String)attributes.get("userName");
130    
131                    if (userName != null) {
132                            setUserName(userName);
133                    }
134    
135                    Date createDate = (Date)attributes.get("createDate");
136    
137                    if (createDate != null) {
138                            setCreateDate(createDate);
139                    }
140    
141                    Date modifiedDate = (Date)attributes.get("modifiedDate");
142    
143                    if (modifiedDate != null) {
144                            setModifiedDate(modifiedDate);
145                    }
146    
147                    Long folderId = (Long)attributes.get("folderId");
148    
149                    if (folderId != null) {
150                            setFolderId(folderId);
151                    }
152    
153                    Long classNameId = (Long)attributes.get("classNameId");
154    
155                    if (classNameId != null) {
156                            setClassNameId(classNameId);
157                    }
158    
159                    Long classPK = (Long)attributes.get("classPK");
160    
161                    if (classPK != null) {
162                            setClassPK(classPK);
163                    }
164    
165                    String articleId = (String)attributes.get("articleId");
166    
167                    if (articleId != null) {
168                            setArticleId(articleId);
169                    }
170    
171                    Double version = (Double)attributes.get("version");
172    
173                    if (version != null) {
174                            setVersion(version);
175                    }
176    
177                    String title = (String)attributes.get("title");
178    
179                    if (title != null) {
180                            setTitle(title);
181                    }
182    
183                    String urlTitle = (String)attributes.get("urlTitle");
184    
185                    if (urlTitle != null) {
186                            setUrlTitle(urlTitle);
187                    }
188    
189                    String description = (String)attributes.get("description");
190    
191                    if (description != null) {
192                            setDescription(description);
193                    }
194    
195                    String content = (String)attributes.get("content");
196    
197                    if (content != null) {
198                            setContent(content);
199                    }
200    
201                    String type = (String)attributes.get("type");
202    
203                    if (type != null) {
204                            setType(type);
205                    }
206    
207                    String structureId = (String)attributes.get("structureId");
208    
209                    if (structureId != null) {
210                            setStructureId(structureId);
211                    }
212    
213                    String templateId = (String)attributes.get("templateId");
214    
215                    if (templateId != null) {
216                            setTemplateId(templateId);
217                    }
218    
219                    String layoutUuid = (String)attributes.get("layoutUuid");
220    
221                    if (layoutUuid != null) {
222                            setLayoutUuid(layoutUuid);
223                    }
224    
225                    Date displayDate = (Date)attributes.get("displayDate");
226    
227                    if (displayDate != null) {
228                            setDisplayDate(displayDate);
229                    }
230    
231                    Date expirationDate = (Date)attributes.get("expirationDate");
232    
233                    if (expirationDate != null) {
234                            setExpirationDate(expirationDate);
235                    }
236    
237                    Date reviewDate = (Date)attributes.get("reviewDate");
238    
239                    if (reviewDate != null) {
240                            setReviewDate(reviewDate);
241                    }
242    
243                    Boolean indexable = (Boolean)attributes.get("indexable");
244    
245                    if (indexable != null) {
246                            setIndexable(indexable);
247                    }
248    
249                    Boolean smallImage = (Boolean)attributes.get("smallImage");
250    
251                    if (smallImage != null) {
252                            setSmallImage(smallImage);
253                    }
254    
255                    Long smallImageId = (Long)attributes.get("smallImageId");
256    
257                    if (smallImageId != null) {
258                            setSmallImageId(smallImageId);
259                    }
260    
261                    String smallImageURL = (String)attributes.get("smallImageURL");
262    
263                    if (smallImageURL != null) {
264                            setSmallImageURL(smallImageURL);
265                    }
266    
267                    Integer status = (Integer)attributes.get("status");
268    
269                    if (status != null) {
270                            setStatus(status);
271                    }
272    
273                    Long statusByUserId = (Long)attributes.get("statusByUserId");
274    
275                    if (statusByUserId != null) {
276                            setStatusByUserId(statusByUserId);
277                    }
278    
279                    String statusByUserName = (String)attributes.get("statusByUserName");
280    
281                    if (statusByUserName != null) {
282                            setStatusByUserName(statusByUserName);
283                    }
284    
285                    Date statusDate = (Date)attributes.get("statusDate");
286    
287                    if (statusDate != null) {
288                            setStatusDate(statusDate);
289                    }
290            }
291    
292            /**
293            * Returns the primary key of this journal article.
294            *
295            * @return the primary key of this journal article
296            */
297            @Override
298            public long getPrimaryKey() {
299                    return _journalArticle.getPrimaryKey();
300            }
301    
302            /**
303            * Sets the primary key of this journal article.
304            *
305            * @param primaryKey the primary key of this journal article
306            */
307            @Override
308            public void setPrimaryKey(long primaryKey) {
309                    _journalArticle.setPrimaryKey(primaryKey);
310            }
311    
312            /**
313            * Returns the uuid of this journal article.
314            *
315            * @return the uuid of this journal article
316            */
317            @Override
318            public java.lang.String getUuid() {
319                    return _journalArticle.getUuid();
320            }
321    
322            /**
323            * Sets the uuid of this journal article.
324            *
325            * @param uuid the uuid of this journal article
326            */
327            @Override
328            public void setUuid(java.lang.String uuid) {
329                    _journalArticle.setUuid(uuid);
330            }
331    
332            /**
333            * Returns the ID of this journal article.
334            *
335            * @return the ID of this journal article
336            */
337            @Override
338            public long getId() {
339                    return _journalArticle.getId();
340            }
341    
342            /**
343            * Sets the ID of this journal article.
344            *
345            * @param id the ID of this journal article
346            */
347            @Override
348            public void setId(long id) {
349                    _journalArticle.setId(id);
350            }
351    
352            /**
353            * Returns the resource prim key of this journal article.
354            *
355            * @return the resource prim key of this journal article
356            */
357            @Override
358            public long getResourcePrimKey() {
359                    return _journalArticle.getResourcePrimKey();
360            }
361    
362            /**
363            * Sets the resource prim key of this journal article.
364            *
365            * @param resourcePrimKey the resource prim key of this journal article
366            */
367            @Override
368            public void setResourcePrimKey(long resourcePrimKey) {
369                    _journalArticle.setResourcePrimKey(resourcePrimKey);
370            }
371    
372            @Override
373            public boolean isResourceMain() {
374                    return _journalArticle.isResourceMain();
375            }
376    
377            /**
378            * Returns the group ID of this journal article.
379            *
380            * @return the group ID of this journal article
381            */
382            @Override
383            public long getGroupId() {
384                    return _journalArticle.getGroupId();
385            }
386    
387            /**
388            * Sets the group ID of this journal article.
389            *
390            * @param groupId the group ID of this journal article
391            */
392            @Override
393            public void setGroupId(long groupId) {
394                    _journalArticle.setGroupId(groupId);
395            }
396    
397            /**
398            * Returns the company ID of this journal article.
399            *
400            * @return the company ID of this journal article
401            */
402            @Override
403            public long getCompanyId() {
404                    return _journalArticle.getCompanyId();
405            }
406    
407            /**
408            * Sets the company ID of this journal article.
409            *
410            * @param companyId the company ID of this journal article
411            */
412            @Override
413            public void setCompanyId(long companyId) {
414                    _journalArticle.setCompanyId(companyId);
415            }
416    
417            /**
418            * Returns the user ID of this journal article.
419            *
420            * @return the user ID of this journal article
421            */
422            @Override
423            public long getUserId() {
424                    return _journalArticle.getUserId();
425            }
426    
427            /**
428            * Sets the user ID of this journal article.
429            *
430            * @param userId the user ID of this journal article
431            */
432            @Override
433            public void setUserId(long userId) {
434                    _journalArticle.setUserId(userId);
435            }
436    
437            /**
438            * Returns the user uuid of this journal article.
439            *
440            * @return the user uuid of this journal article
441            * @throws SystemException if a system exception occurred
442            */
443            @Override
444            public java.lang.String getUserUuid()
445                    throws com.liferay.portal.kernel.exception.SystemException {
446                    return _journalArticle.getUserUuid();
447            }
448    
449            /**
450            * Sets the user uuid of this journal article.
451            *
452            * @param userUuid the user uuid of this journal article
453            */
454            @Override
455            public void setUserUuid(java.lang.String userUuid) {
456                    _journalArticle.setUserUuid(userUuid);
457            }
458    
459            /**
460            * Returns the user name of this journal article.
461            *
462            * @return the user name of this journal article
463            */
464            @Override
465            public java.lang.String getUserName() {
466                    return _journalArticle.getUserName();
467            }
468    
469            /**
470            * Sets the user name of this journal article.
471            *
472            * @param userName the user name of this journal article
473            */
474            @Override
475            public void setUserName(java.lang.String userName) {
476                    _journalArticle.setUserName(userName);
477            }
478    
479            /**
480            * Returns the create date of this journal article.
481            *
482            * @return the create date of this journal article
483            */
484            @Override
485            public java.util.Date getCreateDate() {
486                    return _journalArticle.getCreateDate();
487            }
488    
489            /**
490            * Sets the create date of this journal article.
491            *
492            * @param createDate the create date of this journal article
493            */
494            @Override
495            public void setCreateDate(java.util.Date createDate) {
496                    _journalArticle.setCreateDate(createDate);
497            }
498    
499            /**
500            * Returns the modified date of this journal article.
501            *
502            * @return the modified date of this journal article
503            */
504            @Override
505            public java.util.Date getModifiedDate() {
506                    return _journalArticle.getModifiedDate();
507            }
508    
509            /**
510            * Sets the modified date of this journal article.
511            *
512            * @param modifiedDate the modified date of this journal article
513            */
514            @Override
515            public void setModifiedDate(java.util.Date modifiedDate) {
516                    _journalArticle.setModifiedDate(modifiedDate);
517            }
518    
519            /**
520            * Returns the folder ID of this journal article.
521            *
522            * @return the folder ID of this journal article
523            */
524            @Override
525            public long getFolderId() {
526                    return _journalArticle.getFolderId();
527            }
528    
529            /**
530            * Sets the folder ID of this journal article.
531            *
532            * @param folderId the folder ID of this journal article
533            */
534            @Override
535            public void setFolderId(long folderId) {
536                    _journalArticle.setFolderId(folderId);
537            }
538    
539            /**
540            * Returns the fully qualified class name of this journal article.
541            *
542            * @return the fully qualified class name of this journal article
543            */
544            @Override
545            public java.lang.String getClassName() {
546                    return _journalArticle.getClassName();
547            }
548    
549            @Override
550            public void setClassName(java.lang.String className) {
551                    _journalArticle.setClassName(className);
552            }
553    
554            /**
555            * Returns the class name ID of this journal article.
556            *
557            * @return the class name ID of this journal article
558            */
559            @Override
560            public long getClassNameId() {
561                    return _journalArticle.getClassNameId();
562            }
563    
564            /**
565            * Sets the class name ID of this journal article.
566            *
567            * @param classNameId the class name ID of this journal article
568            */
569            @Override
570            public void setClassNameId(long classNameId) {
571                    _journalArticle.setClassNameId(classNameId);
572            }
573    
574            /**
575            * Returns the class p k of this journal article.
576            *
577            * @return the class p k of this journal article
578            */
579            @Override
580            public long getClassPK() {
581                    return _journalArticle.getClassPK();
582            }
583    
584            /**
585            * Sets the class p k of this journal article.
586            *
587            * @param classPK the class p k of this journal article
588            */
589            @Override
590            public void setClassPK(long classPK) {
591                    _journalArticle.setClassPK(classPK);
592            }
593    
594            /**
595            * Returns the article ID of this journal article.
596            *
597            * @return the article ID of this journal article
598            */
599            @Override
600            public java.lang.String getArticleId() {
601                    return _journalArticle.getArticleId();
602            }
603    
604            /**
605            * Sets the article ID of this journal article.
606            *
607            * @param articleId the article ID of this journal article
608            */
609            @Override
610            public void setArticleId(java.lang.String articleId) {
611                    _journalArticle.setArticleId(articleId);
612            }
613    
614            /**
615            * Returns the version of this journal article.
616            *
617            * @return the version of this journal article
618            */
619            @Override
620            public double getVersion() {
621                    return _journalArticle.getVersion();
622            }
623    
624            /**
625            * Sets the version of this journal article.
626            *
627            * @param version the version of this journal article
628            */
629            @Override
630            public void setVersion(double version) {
631                    _journalArticle.setVersion(version);
632            }
633    
634            /**
635            * Returns the title of this journal article.
636            *
637            * @return the title of this journal article
638            */
639            @Override
640            public java.lang.String getTitle() {
641                    return _journalArticle.getTitle();
642            }
643    
644            /**
645            * Returns the localized title of this journal article in the language. Uses the default language if no localization exists for the requested language.
646            *
647            * @param locale the locale of the language
648            * @return the localized title of this journal article
649            */
650            @Override
651            public java.lang.String getTitle(java.util.Locale locale) {
652                    return _journalArticle.getTitle(locale);
653            }
654    
655            /**
656            * Returns the localized title of this journal article in the language, optionally using the default language if no localization exists for the requested language.
657            *
658            * @param locale the local of the language
659            * @param useDefault whether to use the default language if no localization exists for the requested language
660            * @return the localized title of this journal article. If <code>useDefault</code> is <code>false</code> and no localization exists for the requested language, an empty string will be returned.
661            */
662            @Override
663            public java.lang.String getTitle(java.util.Locale locale, boolean useDefault) {
664                    return _journalArticle.getTitle(locale, useDefault);
665            }
666    
667            /**
668            * Returns the localized title of this journal article in the language. Uses the default language if no localization exists for the requested language.
669            *
670            * @param languageId the ID of the language
671            * @return the localized title of this journal article
672            */
673            @Override
674            public java.lang.String getTitle(java.lang.String languageId) {
675                    return _journalArticle.getTitle(languageId);
676            }
677    
678            /**
679            * Returns the localized title of this journal article in the language, optionally using the default language if no localization exists for the requested language.
680            *
681            * @param languageId the ID of the language
682            * @param useDefault whether to use the default language if no localization exists for the requested language
683            * @return the localized title of this journal article
684            */
685            @Override
686            public java.lang.String getTitle(java.lang.String languageId,
687                    boolean useDefault) {
688                    return _journalArticle.getTitle(languageId, useDefault);
689            }
690    
691            @Override
692            public java.lang.String getTitleCurrentLanguageId() {
693                    return _journalArticle.getTitleCurrentLanguageId();
694            }
695    
696            @Override
697            public java.lang.String getTitleCurrentValue() {
698                    return _journalArticle.getTitleCurrentValue();
699            }
700    
701            /**
702            * Returns a map of the locales and localized titles of this journal article.
703            *
704            * @return the locales and localized titles of this journal article
705            */
706            @Override
707            public java.util.Map<java.util.Locale, java.lang.String> getTitleMap() {
708                    return _journalArticle.getTitleMap();
709            }
710    
711            /**
712            * Sets the title of this journal article.
713            *
714            * @param title the title of this journal article
715            */
716            @Override
717            public void setTitle(java.lang.String title) {
718                    _journalArticle.setTitle(title);
719            }
720    
721            /**
722            * Sets the localized title of this journal article in the language.
723            *
724            * @param title the localized title of this journal article
725            * @param locale the locale of the language
726            */
727            @Override
728            public void setTitle(java.lang.String title, java.util.Locale locale) {
729                    _journalArticle.setTitle(title, locale);
730            }
731    
732            /**
733            * Sets the localized title of this journal article in the language, and sets the default locale.
734            *
735            * @param title the localized title of this journal article
736            * @param locale the locale of the language
737            * @param defaultLocale the default locale
738            */
739            @Override
740            public void setTitle(java.lang.String title, java.util.Locale locale,
741                    java.util.Locale defaultLocale) {
742                    _journalArticle.setTitle(title, locale, defaultLocale);
743            }
744    
745            @Override
746            public void setTitleCurrentLanguageId(java.lang.String languageId) {
747                    _journalArticle.setTitleCurrentLanguageId(languageId);
748            }
749    
750            /**
751            * Sets the localized titles of this journal article from the map of locales and localized titles.
752            *
753            * @param titleMap the locales and localized titles of this journal article
754            */
755            @Override
756            public void setTitleMap(
757                    java.util.Map<java.util.Locale, java.lang.String> titleMap) {
758                    _journalArticle.setTitleMap(titleMap);
759            }
760    
761            /**
762            * Sets the localized titles of this journal article from the map of locales and localized titles, and sets the default locale.
763            *
764            * @param titleMap the locales and localized titles of this journal article
765            * @param defaultLocale the default locale
766            */
767            @Override
768            public void setTitleMap(
769                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
770                    java.util.Locale defaultLocale) {
771                    _journalArticle.setTitleMap(titleMap, defaultLocale);
772            }
773    
774            /**
775            * Returns the url title of this journal article.
776            *
777            * @return the url title of this journal article
778            */
779            @Override
780            public java.lang.String getUrlTitle() {
781                    return _journalArticle.getUrlTitle();
782            }
783    
784            /**
785            * Sets the url title of this journal article.
786            *
787            * @param urlTitle the url title of this journal article
788            */
789            @Override
790            public void setUrlTitle(java.lang.String urlTitle) {
791                    _journalArticle.setUrlTitle(urlTitle);
792            }
793    
794            /**
795            * Returns the description of this journal article.
796            *
797            * @return the description of this journal article
798            */
799            @Override
800            public java.lang.String getDescription() {
801                    return _journalArticle.getDescription();
802            }
803    
804            /**
805            * Returns the localized description of this journal article in the language. Uses the default language if no localization exists for the requested language.
806            *
807            * @param locale the locale of the language
808            * @return the localized description of this journal article
809            */
810            @Override
811            public java.lang.String getDescription(java.util.Locale locale) {
812                    return _journalArticle.getDescription(locale);
813            }
814    
815            /**
816            * Returns the localized description of this journal article in the language, optionally using the default language if no localization exists for the requested language.
817            *
818            * @param locale the local of the language
819            * @param useDefault whether to use the default language if no localization exists for the requested language
820            * @return the localized description of this journal article. If <code>useDefault</code> is <code>false</code> and no localization exists for the requested language, an empty string will be returned.
821            */
822            @Override
823            public java.lang.String getDescription(java.util.Locale locale,
824                    boolean useDefault) {
825                    return _journalArticle.getDescription(locale, useDefault);
826            }
827    
828            /**
829            * Returns the localized description of this journal article in the language. Uses the default language if no localization exists for the requested language.
830            *
831            * @param languageId the ID of the language
832            * @return the localized description of this journal article
833            */
834            @Override
835            public java.lang.String getDescription(java.lang.String languageId) {
836                    return _journalArticle.getDescription(languageId);
837            }
838    
839            /**
840            * Returns the localized description of this journal article in the language, optionally using the default language if no localization exists for the requested language.
841            *
842            * @param languageId the ID of the language
843            * @param useDefault whether to use the default language if no localization exists for the requested language
844            * @return the localized description of this journal article
845            */
846            @Override
847            public java.lang.String getDescription(java.lang.String languageId,
848                    boolean useDefault) {
849                    return _journalArticle.getDescription(languageId, useDefault);
850            }
851    
852            @Override
853            public java.lang.String getDescriptionCurrentLanguageId() {
854                    return _journalArticle.getDescriptionCurrentLanguageId();
855            }
856    
857            @Override
858            public java.lang.String getDescriptionCurrentValue() {
859                    return _journalArticle.getDescriptionCurrentValue();
860            }
861    
862            /**
863            * Returns a map of the locales and localized descriptions of this journal article.
864            *
865            * @return the locales and localized descriptions of this journal article
866            */
867            @Override
868            public java.util.Map<java.util.Locale, java.lang.String> getDescriptionMap() {
869                    return _journalArticle.getDescriptionMap();
870            }
871    
872            /**
873            * Sets the description of this journal article.
874            *
875            * @param description the description of this journal article
876            */
877            @Override
878            public void setDescription(java.lang.String description) {
879                    _journalArticle.setDescription(description);
880            }
881    
882            /**
883            * Sets the localized description of this journal article in the language.
884            *
885            * @param description the localized description of this journal article
886            * @param locale the locale of the language
887            */
888            @Override
889            public void setDescription(java.lang.String description,
890                    java.util.Locale locale) {
891                    _journalArticle.setDescription(description, locale);
892            }
893    
894            /**
895            * Sets the localized description of this journal article in the language, and sets the default locale.
896            *
897            * @param description the localized description of this journal article
898            * @param locale the locale of the language
899            * @param defaultLocale the default locale
900            */
901            @Override
902            public void setDescription(java.lang.String description,
903                    java.util.Locale locale, java.util.Locale defaultLocale) {
904                    _journalArticle.setDescription(description, locale, defaultLocale);
905            }
906    
907            @Override
908            public void setDescriptionCurrentLanguageId(java.lang.String languageId) {
909                    _journalArticle.setDescriptionCurrentLanguageId(languageId);
910            }
911    
912            /**
913            * Sets the localized descriptions of this journal article from the map of locales and localized descriptions.
914            *
915            * @param descriptionMap the locales and localized descriptions of this journal article
916            */
917            @Override
918            public void setDescriptionMap(
919                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap) {
920                    _journalArticle.setDescriptionMap(descriptionMap);
921            }
922    
923            /**
924            * Sets the localized descriptions of this journal article from the map of locales and localized descriptions, and sets the default locale.
925            *
926            * @param descriptionMap the locales and localized descriptions of this journal article
927            * @param defaultLocale the default locale
928            */
929            @Override
930            public void setDescriptionMap(
931                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
932                    java.util.Locale defaultLocale) {
933                    _journalArticle.setDescriptionMap(descriptionMap, defaultLocale);
934            }
935    
936            /**
937            * Returns the content of this journal article.
938            *
939            * @return the content of this journal article
940            */
941            @Override
942            public java.lang.String getContent() {
943                    return _journalArticle.getContent();
944            }
945    
946            /**
947            * Sets the content of this journal article.
948            *
949            * @param content the content of this journal article
950            */
951            @Override
952            public void setContent(java.lang.String content) {
953                    _journalArticle.setContent(content);
954            }
955    
956            /**
957            * Returns the type of this journal article.
958            *
959            * @return the type of this journal article
960            */
961            @Override
962            public java.lang.String getType() {
963                    return _journalArticle.getType();
964            }
965    
966            /**
967            * Sets the type of this journal article.
968            *
969            * @param type the type of this journal article
970            */
971            @Override
972            public void setType(java.lang.String type) {
973                    _journalArticle.setType(type);
974            }
975    
976            /**
977            * Returns the structure ID of this journal article.
978            *
979            * @return the structure ID of this journal article
980            */
981            @Override
982            public java.lang.String getStructureId() {
983                    return _journalArticle.getStructureId();
984            }
985    
986            /**
987            * Sets the structure ID of this journal article.
988            *
989            * @param structureId the structure ID of this journal article
990            */
991            @Override
992            public void setStructureId(java.lang.String structureId) {
993                    _journalArticle.setStructureId(structureId);
994            }
995    
996            /**
997            * Returns the template ID of this journal article.
998            *
999            * @return the template ID of this journal article
1000            */
1001            @Override
1002            public java.lang.String getTemplateId() {
1003                    return _journalArticle.getTemplateId();
1004            }
1005    
1006            /**
1007            * Sets the template ID of this journal article.
1008            *
1009            * @param templateId the template ID of this journal article
1010            */
1011            @Override
1012            public void setTemplateId(java.lang.String templateId) {
1013                    _journalArticle.setTemplateId(templateId);
1014            }
1015    
1016            /**
1017            * Returns the layout uuid of this journal article.
1018            *
1019            * @return the layout uuid of this journal article
1020            */
1021            @Override
1022            public java.lang.String getLayoutUuid() {
1023                    return _journalArticle.getLayoutUuid();
1024            }
1025    
1026            /**
1027            * Sets the layout uuid of this journal article.
1028            *
1029            * @param layoutUuid the layout uuid of this journal article
1030            */
1031            @Override
1032            public void setLayoutUuid(java.lang.String layoutUuid) {
1033                    _journalArticle.setLayoutUuid(layoutUuid);
1034            }
1035    
1036            /**
1037            * Returns the display date of this journal article.
1038            *
1039            * @return the display date of this journal article
1040            */
1041            @Override
1042            public java.util.Date getDisplayDate() {
1043                    return _journalArticle.getDisplayDate();
1044            }
1045    
1046            /**
1047            * Sets the display date of this journal article.
1048            *
1049            * @param displayDate the display date of this journal article
1050            */
1051            @Override
1052            public void setDisplayDate(java.util.Date displayDate) {
1053                    _journalArticle.setDisplayDate(displayDate);
1054            }
1055    
1056            /**
1057            * Returns the expiration date of this journal article.
1058            *
1059            * @return the expiration date of this journal article
1060            */
1061            @Override
1062            public java.util.Date getExpirationDate() {
1063                    return _journalArticle.getExpirationDate();
1064            }
1065    
1066            /**
1067            * Sets the expiration date of this journal article.
1068            *
1069            * @param expirationDate the expiration date of this journal article
1070            */
1071            @Override
1072            public void setExpirationDate(java.util.Date expirationDate) {
1073                    _journalArticle.setExpirationDate(expirationDate);
1074            }
1075    
1076            /**
1077            * Returns the review date of this journal article.
1078            *
1079            * @return the review date of this journal article
1080            */
1081            @Override
1082            public java.util.Date getReviewDate() {
1083                    return _journalArticle.getReviewDate();
1084            }
1085    
1086            /**
1087            * Sets the review date of this journal article.
1088            *
1089            * @param reviewDate the review date of this journal article
1090            */
1091            @Override
1092            public void setReviewDate(java.util.Date reviewDate) {
1093                    _journalArticle.setReviewDate(reviewDate);
1094            }
1095    
1096            /**
1097            * Returns the indexable of this journal article.
1098            *
1099            * @return the indexable of this journal article
1100            */
1101            @Override
1102            public boolean getIndexable() {
1103                    return _journalArticle.getIndexable();
1104            }
1105    
1106            /**
1107            * Returns <code>true</code> if this journal article is indexable.
1108            *
1109            * @return <code>true</code> if this journal article is indexable; <code>false</code> otherwise
1110            */
1111            @Override
1112            public boolean isIndexable() {
1113                    return _journalArticle.isIndexable();
1114            }
1115    
1116            /**
1117            * Sets whether this journal article is indexable.
1118            *
1119            * @param indexable the indexable of this journal article
1120            */
1121            @Override
1122            public void setIndexable(boolean indexable) {
1123                    _journalArticle.setIndexable(indexable);
1124            }
1125    
1126            /**
1127            * Returns the small image of this journal article.
1128            *
1129            * @return the small image of this journal article
1130            */
1131            @Override
1132            public boolean getSmallImage() {
1133                    return _journalArticle.getSmallImage();
1134            }
1135    
1136            /**
1137            * Returns <code>true</code> if this journal article is small image.
1138            *
1139            * @return <code>true</code> if this journal article is small image; <code>false</code> otherwise
1140            */
1141            @Override
1142            public boolean isSmallImage() {
1143                    return _journalArticle.isSmallImage();
1144            }
1145    
1146            /**
1147            * Sets whether this journal article is small image.
1148            *
1149            * @param smallImage the small image of this journal article
1150            */
1151            @Override
1152            public void setSmallImage(boolean smallImage) {
1153                    _journalArticle.setSmallImage(smallImage);
1154            }
1155    
1156            /**
1157            * Returns the small image ID of this journal article.
1158            *
1159            * @return the small image ID of this journal article
1160            */
1161            @Override
1162            public long getSmallImageId() {
1163                    return _journalArticle.getSmallImageId();
1164            }
1165    
1166            /**
1167            * Sets the small image ID of this journal article.
1168            *
1169            * @param smallImageId the small image ID of this journal article
1170            */
1171            @Override
1172            public void setSmallImageId(long smallImageId) {
1173                    _journalArticle.setSmallImageId(smallImageId);
1174            }
1175    
1176            /**
1177            * Returns the small image u r l of this journal article.
1178            *
1179            * @return the small image u r l of this journal article
1180            */
1181            @Override
1182            public java.lang.String getSmallImageURL() {
1183                    return _journalArticle.getSmallImageURL();
1184            }
1185    
1186            /**
1187            * Sets the small image u r l of this journal article.
1188            *
1189            * @param smallImageURL the small image u r l of this journal article
1190            */
1191            @Override
1192            public void setSmallImageURL(java.lang.String smallImageURL) {
1193                    _journalArticle.setSmallImageURL(smallImageURL);
1194            }
1195    
1196            /**
1197            * Returns the status of this journal article.
1198            *
1199            * @return the status of this journal article
1200            */
1201            @Override
1202            public int getStatus() {
1203                    return _journalArticle.getStatus();
1204            }
1205    
1206            /**
1207            * Sets the status of this journal article.
1208            *
1209            * @param status the status of this journal article
1210            */
1211            @Override
1212            public void setStatus(int status) {
1213                    _journalArticle.setStatus(status);
1214            }
1215    
1216            /**
1217            * Returns the status by user ID of this journal article.
1218            *
1219            * @return the status by user ID of this journal article
1220            */
1221            @Override
1222            public long getStatusByUserId() {
1223                    return _journalArticle.getStatusByUserId();
1224            }
1225    
1226            /**
1227            * Sets the status by user ID of this journal article.
1228            *
1229            * @param statusByUserId the status by user ID of this journal article
1230            */
1231            @Override
1232            public void setStatusByUserId(long statusByUserId) {
1233                    _journalArticle.setStatusByUserId(statusByUserId);
1234            }
1235    
1236            /**
1237            * Returns the status by user uuid of this journal article.
1238            *
1239            * @return the status by user uuid of this journal article
1240            * @throws SystemException if a system exception occurred
1241            */
1242            @Override
1243            public java.lang.String getStatusByUserUuid()
1244                    throws com.liferay.portal.kernel.exception.SystemException {
1245                    return _journalArticle.getStatusByUserUuid();
1246            }
1247    
1248            /**
1249            * Sets the status by user uuid of this journal article.
1250            *
1251            * @param statusByUserUuid the status by user uuid of this journal article
1252            */
1253            @Override
1254            public void setStatusByUserUuid(java.lang.String statusByUserUuid) {
1255                    _journalArticle.setStatusByUserUuid(statusByUserUuid);
1256            }
1257    
1258            /**
1259            * Returns the status by user name of this journal article.
1260            *
1261            * @return the status by user name of this journal article
1262            */
1263            @Override
1264            public java.lang.String getStatusByUserName() {
1265                    return _journalArticle.getStatusByUserName();
1266            }
1267    
1268            /**
1269            * Sets the status by user name of this journal article.
1270            *
1271            * @param statusByUserName the status by user name of this journal article
1272            */
1273            @Override
1274            public void setStatusByUserName(java.lang.String statusByUserName) {
1275                    _journalArticle.setStatusByUserName(statusByUserName);
1276            }
1277    
1278            /**
1279            * Returns the status date of this journal article.
1280            *
1281            * @return the status date of this journal article
1282            */
1283            @Override
1284            public java.util.Date getStatusDate() {
1285                    return _journalArticle.getStatusDate();
1286            }
1287    
1288            /**
1289            * Sets the status date of this journal article.
1290            *
1291            * @param statusDate the status date of this journal article
1292            */
1293            @Override
1294            public void setStatusDate(java.util.Date statusDate) {
1295                    _journalArticle.setStatusDate(statusDate);
1296            }
1297    
1298            /**
1299            * @deprecated As of 6.1.0, replaced by {@link #isApproved()}
1300            */
1301            @Override
1302            public boolean getApproved() {
1303                    return _journalArticle.getApproved();
1304            }
1305    
1306            /**
1307            * Returns <code>true</code> if this journal article is approved.
1308            *
1309            * @return <code>true</code> if this journal article is approved; <code>false</code> otherwise
1310            */
1311            @Override
1312            public boolean isApproved() {
1313                    return _journalArticle.isApproved();
1314            }
1315    
1316            /**
1317            * Returns <code>true</code> if this journal article is denied.
1318            *
1319            * @return <code>true</code> if this journal article is denied; <code>false</code> otherwise
1320            */
1321            @Override
1322            public boolean isDenied() {
1323                    return _journalArticle.isDenied();
1324            }
1325    
1326            /**
1327            * Returns <code>true</code> if this journal article is a draft.
1328            *
1329            * @return <code>true</code> if this journal article is a draft; <code>false</code> otherwise
1330            */
1331            @Override
1332            public boolean isDraft() {
1333                    return _journalArticle.isDraft();
1334            }
1335    
1336            /**
1337            * Returns <code>true</code> if this journal article is expired.
1338            *
1339            * @return <code>true</code> if this journal article is expired; <code>false</code> otherwise
1340            */
1341            @Override
1342            public boolean isExpired() {
1343                    return _journalArticle.isExpired();
1344            }
1345    
1346            /**
1347            * Returns <code>true</code> if this journal article is inactive.
1348            *
1349            * @return <code>true</code> if this journal article is inactive; <code>false</code> otherwise
1350            */
1351            @Override
1352            public boolean isInactive() {
1353                    return _journalArticle.isInactive();
1354            }
1355    
1356            /**
1357            * Returns <code>true</code> if this journal article is incomplete.
1358            *
1359            * @return <code>true</code> if this journal article is incomplete; <code>false</code> otherwise
1360            */
1361            @Override
1362            public boolean isIncomplete() {
1363                    return _journalArticle.isIncomplete();
1364            }
1365    
1366            /**
1367            * Returns <code>true</code> if this journal article is in the Recycle Bin.
1368            *
1369            * @return <code>true</code> if this journal article is in the Recycle Bin; <code>false</code> otherwise
1370            */
1371            @Override
1372            public boolean isInTrash() {
1373                    return _journalArticle.isInTrash();
1374            }
1375    
1376            /**
1377            * Returns <code>true</code> if this journal article is pending.
1378            *
1379            * @return <code>true</code> if this journal article is pending; <code>false</code> otherwise
1380            */
1381            @Override
1382            public boolean isPending() {
1383                    return _journalArticle.isPending();
1384            }
1385    
1386            /**
1387            * Returns <code>true</code> if this journal article is scheduled.
1388            *
1389            * @return <code>true</code> if this journal article is scheduled; <code>false</code> otherwise
1390            */
1391            @Override
1392            public boolean isScheduled() {
1393                    return _journalArticle.isScheduled();
1394            }
1395    
1396            @Override
1397            public boolean isNew() {
1398                    return _journalArticle.isNew();
1399            }
1400    
1401            @Override
1402            public void setNew(boolean n) {
1403                    _journalArticle.setNew(n);
1404            }
1405    
1406            @Override
1407            public boolean isCachedModel() {
1408                    return _journalArticle.isCachedModel();
1409            }
1410    
1411            @Override
1412            public void setCachedModel(boolean cachedModel) {
1413                    _journalArticle.setCachedModel(cachedModel);
1414            }
1415    
1416            @Override
1417            public boolean isEscapedModel() {
1418                    return _journalArticle.isEscapedModel();
1419            }
1420    
1421            @Override
1422            public java.io.Serializable getPrimaryKeyObj() {
1423                    return _journalArticle.getPrimaryKeyObj();
1424            }
1425    
1426            @Override
1427            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
1428                    _journalArticle.setPrimaryKeyObj(primaryKeyObj);
1429            }
1430    
1431            @Override
1432            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
1433                    return _journalArticle.getExpandoBridge();
1434            }
1435    
1436            @Override
1437            public void setExpandoBridgeAttributes(
1438                    com.liferay.portal.model.BaseModel<?> baseModel) {
1439                    _journalArticle.setExpandoBridgeAttributes(baseModel);
1440            }
1441    
1442            @Override
1443            public void setExpandoBridgeAttributes(
1444                    com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
1445                    _journalArticle.setExpandoBridgeAttributes(expandoBridge);
1446            }
1447    
1448            @Override
1449            public void setExpandoBridgeAttributes(
1450                    com.liferay.portal.service.ServiceContext serviceContext) {
1451                    _journalArticle.setExpandoBridgeAttributes(serviceContext);
1452            }
1453    
1454            @Override
1455            public java.lang.String[] getAvailableLanguageIds() {
1456                    return _journalArticle.getAvailableLanguageIds();
1457            }
1458    
1459            @Override
1460            public java.lang.String getDefaultLanguageId() {
1461                    return _journalArticle.getDefaultLanguageId();
1462            }
1463    
1464            @Override
1465            public void prepareLocalizedFieldsForImport()
1466                    throws com.liferay.portal.LocaleException {
1467                    _journalArticle.prepareLocalizedFieldsForImport();
1468            }
1469    
1470            @Override
1471            public void prepareLocalizedFieldsForImport(
1472                    java.util.Locale defaultImportLocale)
1473                    throws com.liferay.portal.LocaleException {
1474                    _journalArticle.prepareLocalizedFieldsForImport(defaultImportLocale);
1475            }
1476    
1477            @Override
1478            public java.lang.Object clone() {
1479                    return new JournalArticleWrapper((JournalArticle)_journalArticle.clone());
1480            }
1481    
1482            @Override
1483            public int compareTo(
1484                    com.liferay.portlet.journal.model.JournalArticle journalArticle) {
1485                    return _journalArticle.compareTo(journalArticle);
1486            }
1487    
1488            @Override
1489            public int hashCode() {
1490                    return _journalArticle.hashCode();
1491            }
1492    
1493            @Override
1494            public com.liferay.portal.model.CacheModel<com.liferay.portlet.journal.model.JournalArticle> toCacheModel() {
1495                    return _journalArticle.toCacheModel();
1496            }
1497    
1498            @Override
1499            public com.liferay.portlet.journal.model.JournalArticle toEscapedModel() {
1500                    return new JournalArticleWrapper(_journalArticle.toEscapedModel());
1501            }
1502    
1503            @Override
1504            public com.liferay.portlet.journal.model.JournalArticle toUnescapedModel() {
1505                    return new JournalArticleWrapper(_journalArticle.toUnescapedModel());
1506            }
1507    
1508            @Override
1509            public java.lang.String toString() {
1510                    return _journalArticle.toString();
1511            }
1512    
1513            @Override
1514            public java.lang.String toXmlString() {
1515                    return _journalArticle.toXmlString();
1516            }
1517    
1518            @Override
1519            public void persist()
1520                    throws com.liferay.portal.kernel.exception.SystemException {
1521                    _journalArticle.persist();
1522            }
1523    
1524            @Override
1525            public java.lang.String getArticleImageURL(
1526                    com.liferay.portal.theme.ThemeDisplay themeDisplay) {
1527                    return _journalArticle.getArticleImageURL(themeDisplay);
1528            }
1529    
1530            @Override
1531            public com.liferay.portlet.journal.model.JournalArticleResource getArticleResource()
1532                    throws com.liferay.portal.kernel.exception.PortalException,
1533                            com.liferay.portal.kernel.exception.SystemException {
1534                    return _journalArticle.getArticleResource();
1535            }
1536    
1537            @Override
1538            public java.lang.String getArticleResourceUuid()
1539                    throws com.liferay.portal.kernel.exception.PortalException,
1540                            com.liferay.portal.kernel.exception.SystemException {
1541                    return _journalArticle.getArticleResourceUuid();
1542            }
1543    
1544            /**
1545            * @deprecated As of 6.2.0, replaced by {@link #getAvailableLanguageIds}
1546            */
1547            @Override
1548            public java.lang.String[] getAvailableLocales() {
1549                    return _journalArticle.getAvailableLocales();
1550            }
1551    
1552            @Override
1553            public java.lang.String getContentByLocale(java.lang.String languageId) {
1554                    return _journalArticle.getContentByLocale(languageId);
1555            }
1556    
1557            /**
1558            * @deprecated As of 6.2.0, replaced by {@link #getDefaultLanguageId}
1559            */
1560            @Override
1561            public java.lang.String getDefaultLocale() {
1562                    return _journalArticle.getDefaultLocale();
1563            }
1564    
1565            @Override
1566            public com.liferay.portlet.journal.model.JournalFolder getFolder()
1567                    throws com.liferay.portal.kernel.exception.PortalException,
1568                            com.liferay.portal.kernel.exception.SystemException {
1569                    return _journalArticle.getFolder();
1570            }
1571    
1572            @Override
1573            public java.lang.String getSmallImageType()
1574                    throws com.liferay.portal.kernel.exception.PortalException,
1575                            com.liferay.portal.kernel.exception.SystemException {
1576                    return _journalArticle.getSmallImageType();
1577            }
1578    
1579            @Override
1580            public com.liferay.portlet.journal.model.JournalFolder getTrashContainer()
1581                    throws com.liferay.portal.kernel.exception.PortalException,
1582                            com.liferay.portal.kernel.exception.SystemException {
1583                    return _journalArticle.getTrashContainer();
1584            }
1585    
1586            @Override
1587            public boolean hasApprovedVersion()
1588                    throws com.liferay.portal.kernel.exception.SystemException {
1589                    return _journalArticle.hasApprovedVersion();
1590            }
1591    
1592            @Override
1593            public boolean isInTrashContainer()
1594                    throws com.liferay.portal.kernel.exception.PortalException,
1595                            com.liferay.portal.kernel.exception.SystemException {
1596                    return _journalArticle.isInTrashContainer();
1597            }
1598    
1599            @Override
1600            public boolean isTemplateDriven() {
1601                    return _journalArticle.isTemplateDriven();
1602            }
1603    
1604            @Override
1605            public void setSmallImageType(java.lang.String smallImageType) {
1606                    _journalArticle.setSmallImageType(smallImageType);
1607            }
1608    
1609            @Override
1610            public boolean equals(Object obj) {
1611                    if (this == obj) {
1612                            return true;
1613                    }
1614    
1615                    if (!(obj instanceof JournalArticleWrapper)) {
1616                            return false;
1617                    }
1618    
1619                    JournalArticleWrapper journalArticleWrapper = (JournalArticleWrapper)obj;
1620    
1621                    if (Validator.equals(_journalArticle,
1622                                            journalArticleWrapper._journalArticle)) {
1623                            return true;
1624                    }
1625    
1626                    return false;
1627            }
1628    
1629            @Override
1630            public StagedModelType getStagedModelType() {
1631                    return _journalArticle.getStagedModelType();
1632            }
1633    
1634            /**
1635             * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel}
1636             */
1637            public JournalArticle getWrappedJournalArticle() {
1638                    return _journalArticle;
1639            }
1640    
1641            @Override
1642            public JournalArticle getWrappedModel() {
1643                    return _journalArticle;
1644            }
1645    
1646            @Override
1647            public void resetOriginalValues() {
1648                    _journalArticle.resetOriginalValues();
1649            }
1650    
1651            private JournalArticle _journalArticle;
1652    }