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