001    /**
002     * Copyright (c) 2000-2012 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.model.ModelWrapper;
018    
019    /**
020     * <p>
021     * This class is a wrapper for {@link JournalTemplate}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       JournalTemplate
026     * @generated
027     */
028    public class JournalTemplateWrapper implements JournalTemplate,
029            ModelWrapper<JournalTemplate> {
030            public JournalTemplateWrapper(JournalTemplate journalTemplate) {
031                    _journalTemplate = journalTemplate;
032            }
033    
034            public Class<?> getModelClass() {
035                    return JournalTemplate.class;
036            }
037    
038            public String getModelClassName() {
039                    return JournalTemplate.class.getName();
040            }
041    
042            /**
043            * Returns the primary key of this journal template.
044            *
045            * @return the primary key of this journal template
046            */
047            public long getPrimaryKey() {
048                    return _journalTemplate.getPrimaryKey();
049            }
050    
051            /**
052            * Sets the primary key of this journal template.
053            *
054            * @param primaryKey the primary key of this journal template
055            */
056            public void setPrimaryKey(long primaryKey) {
057                    _journalTemplate.setPrimaryKey(primaryKey);
058            }
059    
060            /**
061            * Returns the uuid of this journal template.
062            *
063            * @return the uuid of this journal template
064            */
065            public java.lang.String getUuid() {
066                    return _journalTemplate.getUuid();
067            }
068    
069            /**
070            * Sets the uuid of this journal template.
071            *
072            * @param uuid the uuid of this journal template
073            */
074            public void setUuid(java.lang.String uuid) {
075                    _journalTemplate.setUuid(uuid);
076            }
077    
078            /**
079            * Returns the ID of this journal template.
080            *
081            * @return the ID of this journal template
082            */
083            public long getId() {
084                    return _journalTemplate.getId();
085            }
086    
087            /**
088            * Sets the ID of this journal template.
089            *
090            * @param id the ID of this journal template
091            */
092            public void setId(long id) {
093                    _journalTemplate.setId(id);
094            }
095    
096            /**
097            * Returns the group ID of this journal template.
098            *
099            * @return the group ID of this journal template
100            */
101            public long getGroupId() {
102                    return _journalTemplate.getGroupId();
103            }
104    
105            /**
106            * Sets the group ID of this journal template.
107            *
108            * @param groupId the group ID of this journal template
109            */
110            public void setGroupId(long groupId) {
111                    _journalTemplate.setGroupId(groupId);
112            }
113    
114            /**
115            * Returns the company ID of this journal template.
116            *
117            * @return the company ID of this journal template
118            */
119            public long getCompanyId() {
120                    return _journalTemplate.getCompanyId();
121            }
122    
123            /**
124            * Sets the company ID of this journal template.
125            *
126            * @param companyId the company ID of this journal template
127            */
128            public void setCompanyId(long companyId) {
129                    _journalTemplate.setCompanyId(companyId);
130            }
131    
132            /**
133            * Returns the user ID of this journal template.
134            *
135            * @return the user ID of this journal template
136            */
137            public long getUserId() {
138                    return _journalTemplate.getUserId();
139            }
140    
141            /**
142            * Sets the user ID of this journal template.
143            *
144            * @param userId the user ID of this journal template
145            */
146            public void setUserId(long userId) {
147                    _journalTemplate.setUserId(userId);
148            }
149    
150            /**
151            * Returns the user uuid of this journal template.
152            *
153            * @return the user uuid of this journal template
154            * @throws SystemException if a system exception occurred
155            */
156            public java.lang.String getUserUuid()
157                    throws com.liferay.portal.kernel.exception.SystemException {
158                    return _journalTemplate.getUserUuid();
159            }
160    
161            /**
162            * Sets the user uuid of this journal template.
163            *
164            * @param userUuid the user uuid of this journal template
165            */
166            public void setUserUuid(java.lang.String userUuid) {
167                    _journalTemplate.setUserUuid(userUuid);
168            }
169    
170            /**
171            * Returns the user name of this journal template.
172            *
173            * @return the user name of this journal template
174            */
175            public java.lang.String getUserName() {
176                    return _journalTemplate.getUserName();
177            }
178    
179            /**
180            * Sets the user name of this journal template.
181            *
182            * @param userName the user name of this journal template
183            */
184            public void setUserName(java.lang.String userName) {
185                    _journalTemplate.setUserName(userName);
186            }
187    
188            /**
189            * Returns the create date of this journal template.
190            *
191            * @return the create date of this journal template
192            */
193            public java.util.Date getCreateDate() {
194                    return _journalTemplate.getCreateDate();
195            }
196    
197            /**
198            * Sets the create date of this journal template.
199            *
200            * @param createDate the create date of this journal template
201            */
202            public void setCreateDate(java.util.Date createDate) {
203                    _journalTemplate.setCreateDate(createDate);
204            }
205    
206            /**
207            * Returns the modified date of this journal template.
208            *
209            * @return the modified date of this journal template
210            */
211            public java.util.Date getModifiedDate() {
212                    return _journalTemplate.getModifiedDate();
213            }
214    
215            /**
216            * Sets the modified date of this journal template.
217            *
218            * @param modifiedDate the modified date of this journal template
219            */
220            public void setModifiedDate(java.util.Date modifiedDate) {
221                    _journalTemplate.setModifiedDate(modifiedDate);
222            }
223    
224            /**
225            * Returns the template ID of this journal template.
226            *
227            * @return the template ID of this journal template
228            */
229            public java.lang.String getTemplateId() {
230                    return _journalTemplate.getTemplateId();
231            }
232    
233            /**
234            * Sets the template ID of this journal template.
235            *
236            * @param templateId the template ID of this journal template
237            */
238            public void setTemplateId(java.lang.String templateId) {
239                    _journalTemplate.setTemplateId(templateId);
240            }
241    
242            /**
243            * Returns the structure ID of this journal template.
244            *
245            * @return the structure ID of this journal template
246            */
247            public java.lang.String getStructureId() {
248                    return _journalTemplate.getStructureId();
249            }
250    
251            /**
252            * Sets the structure ID of this journal template.
253            *
254            * @param structureId the structure ID of this journal template
255            */
256            public void setStructureId(java.lang.String structureId) {
257                    _journalTemplate.setStructureId(structureId);
258            }
259    
260            /**
261            * Returns the name of this journal template.
262            *
263            * @return the name of this journal template
264            */
265            public java.lang.String getName() {
266                    return _journalTemplate.getName();
267            }
268    
269            /**
270            * Returns the localized name of this journal template in the language. Uses the default language if no localization exists for the requested language.
271            *
272            * @param locale the locale of the language
273            * @return the localized name of this journal template
274            */
275            public java.lang.String getName(java.util.Locale locale) {
276                    return _journalTemplate.getName(locale);
277            }
278    
279            /**
280            * Returns the localized name of this journal template in the language, optionally using the default language if no localization exists for the requested language.
281            *
282            * @param locale the local of the language
283            * @param useDefault whether to use the default language if no localization exists for the requested language
284            * @return the localized name of this journal template. If <code>useDefault</code> is <code>false</code> and no localization exists for the requested language, an empty string will be returned.
285            */
286            public java.lang.String getName(java.util.Locale locale, boolean useDefault) {
287                    return _journalTemplate.getName(locale, useDefault);
288            }
289    
290            /**
291            * Returns the localized name of this journal template in the language. Uses the default language if no localization exists for the requested language.
292            *
293            * @param languageId the ID of the language
294            * @return the localized name of this journal template
295            */
296            public java.lang.String getName(java.lang.String languageId) {
297                    return _journalTemplate.getName(languageId);
298            }
299    
300            /**
301            * Returns the localized name of this journal template in the language, optionally using the default language if no localization exists for the requested language.
302            *
303            * @param languageId the ID of the language
304            * @param useDefault whether to use the default language if no localization exists for the requested language
305            * @return the localized name of this journal template
306            */
307            public java.lang.String getName(java.lang.String languageId,
308                    boolean useDefault) {
309                    return _journalTemplate.getName(languageId, useDefault);
310            }
311    
312            public java.lang.String getNameCurrentLanguageId() {
313                    return _journalTemplate.getNameCurrentLanguageId();
314            }
315    
316            public java.lang.String getNameCurrentValue() {
317                    return _journalTemplate.getNameCurrentValue();
318            }
319    
320            /**
321            * Returns a map of the locales and localized names of this journal template.
322            *
323            * @return the locales and localized names of this journal template
324            */
325            public java.util.Map<java.util.Locale, java.lang.String> getNameMap() {
326                    return _journalTemplate.getNameMap();
327            }
328    
329            /**
330            * Sets the name of this journal template.
331            *
332            * @param name the name of this journal template
333            */
334            public void setName(java.lang.String name) {
335                    _journalTemplate.setName(name);
336            }
337    
338            /**
339            * Sets the localized name of this journal template in the language.
340            *
341            * @param name the localized name of this journal template
342            * @param locale the locale of the language
343            */
344            public void setName(java.lang.String name, java.util.Locale locale) {
345                    _journalTemplate.setName(name, locale);
346            }
347    
348            /**
349            * Sets the localized name of this journal template in the language, and sets the default locale.
350            *
351            * @param name the localized name of this journal template
352            * @param locale the locale of the language
353            * @param defaultLocale the default locale
354            */
355            public void setName(java.lang.String name, java.util.Locale locale,
356                    java.util.Locale defaultLocale) {
357                    _journalTemplate.setName(name, locale, defaultLocale);
358            }
359    
360            public void setNameCurrentLanguageId(java.lang.String languageId) {
361                    _journalTemplate.setNameCurrentLanguageId(languageId);
362            }
363    
364            /**
365            * Sets the localized names of this journal template from the map of locales and localized names.
366            *
367            * @param nameMap the locales and localized names of this journal template
368            */
369            public void setNameMap(
370                    java.util.Map<java.util.Locale, java.lang.String> nameMap) {
371                    _journalTemplate.setNameMap(nameMap);
372            }
373    
374            /**
375            * Sets the localized names of this journal template from the map of locales and localized names, and sets the default locale.
376            *
377            * @param nameMap the locales and localized names of this journal template
378            * @param defaultLocale the default locale
379            */
380            public void setNameMap(
381                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
382                    java.util.Locale defaultLocale) {
383                    _journalTemplate.setNameMap(nameMap, defaultLocale);
384            }
385    
386            /**
387            * Returns the description of this journal template.
388            *
389            * @return the description of this journal template
390            */
391            public java.lang.String getDescription() {
392                    return _journalTemplate.getDescription();
393            }
394    
395            /**
396            * Returns the localized description of this journal template in the language. Uses the default language if no localization exists for the requested language.
397            *
398            * @param locale the locale of the language
399            * @return the localized description of this journal template
400            */
401            public java.lang.String getDescription(java.util.Locale locale) {
402                    return _journalTemplate.getDescription(locale);
403            }
404    
405            /**
406            * Returns the localized description of this journal template in the language, optionally using the default language if no localization exists for the requested language.
407            *
408            * @param locale the local of the language
409            * @param useDefault whether to use the default language if no localization exists for the requested language
410            * @return the localized description of this journal template. If <code>useDefault</code> is <code>false</code> and no localization exists for the requested language, an empty string will be returned.
411            */
412            public java.lang.String getDescription(java.util.Locale locale,
413                    boolean useDefault) {
414                    return _journalTemplate.getDescription(locale, useDefault);
415            }
416    
417            /**
418            * Returns the localized description of this journal template in the language. Uses the default language if no localization exists for the requested language.
419            *
420            * @param languageId the ID of the language
421            * @return the localized description of this journal template
422            */
423            public java.lang.String getDescription(java.lang.String languageId) {
424                    return _journalTemplate.getDescription(languageId);
425            }
426    
427            /**
428            * Returns the localized description of this journal template in the language, optionally using the default language if no localization exists for the requested language.
429            *
430            * @param languageId the ID of the language
431            * @param useDefault whether to use the default language if no localization exists for the requested language
432            * @return the localized description of this journal template
433            */
434            public java.lang.String getDescription(java.lang.String languageId,
435                    boolean useDefault) {
436                    return _journalTemplate.getDescription(languageId, useDefault);
437            }
438    
439            public java.lang.String getDescriptionCurrentLanguageId() {
440                    return _journalTemplate.getDescriptionCurrentLanguageId();
441            }
442    
443            public java.lang.String getDescriptionCurrentValue() {
444                    return _journalTemplate.getDescriptionCurrentValue();
445            }
446    
447            /**
448            * Returns a map of the locales and localized descriptions of this journal template.
449            *
450            * @return the locales and localized descriptions of this journal template
451            */
452            public java.util.Map<java.util.Locale, java.lang.String> getDescriptionMap() {
453                    return _journalTemplate.getDescriptionMap();
454            }
455    
456            /**
457            * Sets the description of this journal template.
458            *
459            * @param description the description of this journal template
460            */
461            public void setDescription(java.lang.String description) {
462                    _journalTemplate.setDescription(description);
463            }
464    
465            /**
466            * Sets the localized description of this journal template in the language.
467            *
468            * @param description the localized description of this journal template
469            * @param locale the locale of the language
470            */
471            public void setDescription(java.lang.String description,
472                    java.util.Locale locale) {
473                    _journalTemplate.setDescription(description, locale);
474            }
475    
476            /**
477            * Sets the localized description of this journal template in the language, and sets the default locale.
478            *
479            * @param description the localized description of this journal template
480            * @param locale the locale of the language
481            * @param defaultLocale the default locale
482            */
483            public void setDescription(java.lang.String description,
484                    java.util.Locale locale, java.util.Locale defaultLocale) {
485                    _journalTemplate.setDescription(description, locale, defaultLocale);
486            }
487    
488            public void setDescriptionCurrentLanguageId(java.lang.String languageId) {
489                    _journalTemplate.setDescriptionCurrentLanguageId(languageId);
490            }
491    
492            /**
493            * Sets the localized descriptions of this journal template from the map of locales and localized descriptions.
494            *
495            * @param descriptionMap the locales and localized descriptions of this journal template
496            */
497            public void setDescriptionMap(
498                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap) {
499                    _journalTemplate.setDescriptionMap(descriptionMap);
500            }
501    
502            /**
503            * Sets the localized descriptions of this journal template from the map of locales and localized descriptions, and sets the default locale.
504            *
505            * @param descriptionMap the locales and localized descriptions of this journal template
506            * @param defaultLocale the default locale
507            */
508            public void setDescriptionMap(
509                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
510                    java.util.Locale defaultLocale) {
511                    _journalTemplate.setDescriptionMap(descriptionMap, defaultLocale);
512            }
513    
514            /**
515            * Returns the xsl of this journal template.
516            *
517            * @return the xsl of this journal template
518            */
519            public java.lang.String getXsl() {
520                    return _journalTemplate.getXsl();
521            }
522    
523            /**
524            * Sets the xsl of this journal template.
525            *
526            * @param xsl the xsl of this journal template
527            */
528            public void setXsl(java.lang.String xsl) {
529                    _journalTemplate.setXsl(xsl);
530            }
531    
532            /**
533            * Returns the lang type of this journal template.
534            *
535            * @return the lang type of this journal template
536            */
537            public java.lang.String getLangType() {
538                    return _journalTemplate.getLangType();
539            }
540    
541            /**
542            * Sets the lang type of this journal template.
543            *
544            * @param langType the lang type of this journal template
545            */
546            public void setLangType(java.lang.String langType) {
547                    _journalTemplate.setLangType(langType);
548            }
549    
550            /**
551            * Returns the cacheable of this journal template.
552            *
553            * @return the cacheable of this journal template
554            */
555            public boolean getCacheable() {
556                    return _journalTemplate.getCacheable();
557            }
558    
559            /**
560            * Returns <code>true</code> if this journal template is cacheable.
561            *
562            * @return <code>true</code> if this journal template is cacheable; <code>false</code> otherwise
563            */
564            public boolean isCacheable() {
565                    return _journalTemplate.isCacheable();
566            }
567    
568            /**
569            * Sets whether this journal template is cacheable.
570            *
571            * @param cacheable the cacheable of this journal template
572            */
573            public void setCacheable(boolean cacheable) {
574                    _journalTemplate.setCacheable(cacheable);
575            }
576    
577            /**
578            * Returns the small image of this journal template.
579            *
580            * @return the small image of this journal template
581            */
582            public boolean getSmallImage() {
583                    return _journalTemplate.getSmallImage();
584            }
585    
586            /**
587            * Returns <code>true</code> if this journal template is small image.
588            *
589            * @return <code>true</code> if this journal template is small image; <code>false</code> otherwise
590            */
591            public boolean isSmallImage() {
592                    return _journalTemplate.isSmallImage();
593            }
594    
595            /**
596            * Sets whether this journal template is small image.
597            *
598            * @param smallImage the small image of this journal template
599            */
600            public void setSmallImage(boolean smallImage) {
601                    _journalTemplate.setSmallImage(smallImage);
602            }
603    
604            /**
605            * Returns the small image ID of this journal template.
606            *
607            * @return the small image ID of this journal template
608            */
609            public long getSmallImageId() {
610                    return _journalTemplate.getSmallImageId();
611            }
612    
613            /**
614            * Sets the small image ID of this journal template.
615            *
616            * @param smallImageId the small image ID of this journal template
617            */
618            public void setSmallImageId(long smallImageId) {
619                    _journalTemplate.setSmallImageId(smallImageId);
620            }
621    
622            /**
623            * Returns the small image u r l of this journal template.
624            *
625            * @return the small image u r l of this journal template
626            */
627            public java.lang.String getSmallImageURL() {
628                    return _journalTemplate.getSmallImageURL();
629            }
630    
631            /**
632            * Sets the small image u r l of this journal template.
633            *
634            * @param smallImageURL the small image u r l of this journal template
635            */
636            public void setSmallImageURL(java.lang.String smallImageURL) {
637                    _journalTemplate.setSmallImageURL(smallImageURL);
638            }
639    
640            public boolean isNew() {
641                    return _journalTemplate.isNew();
642            }
643    
644            public void setNew(boolean n) {
645                    _journalTemplate.setNew(n);
646            }
647    
648            public boolean isCachedModel() {
649                    return _journalTemplate.isCachedModel();
650            }
651    
652            public void setCachedModel(boolean cachedModel) {
653                    _journalTemplate.setCachedModel(cachedModel);
654            }
655    
656            public boolean isEscapedModel() {
657                    return _journalTemplate.isEscapedModel();
658            }
659    
660            public java.io.Serializable getPrimaryKeyObj() {
661                    return _journalTemplate.getPrimaryKeyObj();
662            }
663    
664            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
665                    _journalTemplate.setPrimaryKeyObj(primaryKeyObj);
666            }
667    
668            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
669                    return _journalTemplate.getExpandoBridge();
670            }
671    
672            public void setExpandoBridgeAttributes(
673                    com.liferay.portal.service.ServiceContext serviceContext) {
674                    _journalTemplate.setExpandoBridgeAttributes(serviceContext);
675            }
676    
677            @Override
678            public java.lang.Object clone() {
679                    return new JournalTemplateWrapper((JournalTemplate)_journalTemplate.clone());
680            }
681    
682            public int compareTo(
683                    com.liferay.portlet.journal.model.JournalTemplate journalTemplate) {
684                    return _journalTemplate.compareTo(journalTemplate);
685            }
686    
687            @Override
688            public int hashCode() {
689                    return _journalTemplate.hashCode();
690            }
691    
692            public com.liferay.portal.model.CacheModel<com.liferay.portlet.journal.model.JournalTemplate> toCacheModel() {
693                    return _journalTemplate.toCacheModel();
694            }
695    
696            public com.liferay.portlet.journal.model.JournalTemplate toEscapedModel() {
697                    return new JournalTemplateWrapper(_journalTemplate.toEscapedModel());
698            }
699    
700            @Override
701            public java.lang.String toString() {
702                    return _journalTemplate.toString();
703            }
704    
705            public java.lang.String toXmlString() {
706                    return _journalTemplate.toXmlString();
707            }
708    
709            public void persist()
710                    throws com.liferay.portal.kernel.exception.SystemException {
711                    _journalTemplate.persist();
712            }
713    
714            public java.lang.String getSmallImageType()
715                    throws com.liferay.portal.kernel.exception.PortalException,
716                            com.liferay.portal.kernel.exception.SystemException {
717                    return _journalTemplate.getSmallImageType();
718            }
719    
720            public void setSmallImageType(java.lang.String smallImageType) {
721                    _journalTemplate.setSmallImageType(smallImageType);
722            }
723    
724            /**
725             * @deprecated Renamed to {@link #getWrappedModel}
726             */
727            public JournalTemplate getWrappedJournalTemplate() {
728                    return _journalTemplate;
729            }
730    
731            public JournalTemplate getWrappedModel() {
732                    return _journalTemplate;
733            }
734    
735            public void resetOriginalValues() {
736                    _journalTemplate.resetOriginalValues();
737            }
738    
739            private JournalTemplate _journalTemplate;
740    }