001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portlet.journal.model;
016    
017    /**
018     * <p>
019     * This class is a wrapper for {@link JournalArticle}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       JournalArticle
024     * @generated
025     */
026    public class JournalArticleWrapper implements JournalArticle {
027            public JournalArticleWrapper(JournalArticle journalArticle) {
028                    _journalArticle = journalArticle;
029            }
030    
031            public Class<?> getModelClass() {
032                    return JournalArticle.class;
033            }
034    
035            public String getModelClassName() {
036                    return JournalArticle.class.getName();
037            }
038    
039            /**
040            * Gets the primary key of this journal article.
041            *
042            * @return the primary key of this journal article
043            */
044            public long getPrimaryKey() {
045                    return _journalArticle.getPrimaryKey();
046            }
047    
048            /**
049            * Sets the primary key of this journal article
050            *
051            * @param primaryKey the primary key of this journal article
052            */
053            public void setPrimaryKey(long primaryKey) {
054                    _journalArticle.setPrimaryKey(primaryKey);
055            }
056    
057            /**
058            * Gets the uuid of this journal article.
059            *
060            * @return the uuid of this journal article
061            */
062            public java.lang.String getUuid() {
063                    return _journalArticle.getUuid();
064            }
065    
066            /**
067            * Sets the uuid of this journal article.
068            *
069            * @param uuid the uuid of this journal article
070            */
071            public void setUuid(java.lang.String uuid) {
072                    _journalArticle.setUuid(uuid);
073            }
074    
075            /**
076            * Gets the ID of this journal article.
077            *
078            * @return the ID of this journal article
079            */
080            public long getId() {
081                    return _journalArticle.getId();
082            }
083    
084            /**
085            * Sets the ID of this journal article.
086            *
087            * @param id the ID of this journal article
088            */
089            public void setId(long id) {
090                    _journalArticle.setId(id);
091            }
092    
093            /**
094            * Gets the resource prim key of this journal article.
095            *
096            * @return the resource prim key of this journal article
097            */
098            public long getResourcePrimKey() {
099                    return _journalArticle.getResourcePrimKey();
100            }
101    
102            /**
103            * Sets the resource prim key of this journal article.
104            *
105            * @param resourcePrimKey the resource prim key of this journal article
106            */
107            public void setResourcePrimKey(long resourcePrimKey) {
108                    _journalArticle.setResourcePrimKey(resourcePrimKey);
109            }
110    
111            public boolean isResourceMain() {
112                    return _journalArticle.isResourceMain();
113            }
114    
115            /**
116            * Gets the group ID of this journal article.
117            *
118            * @return the group ID of this journal article
119            */
120            public long getGroupId() {
121                    return _journalArticle.getGroupId();
122            }
123    
124            /**
125            * Sets the group ID of this journal article.
126            *
127            * @param groupId the group ID of this journal article
128            */
129            public void setGroupId(long groupId) {
130                    _journalArticle.setGroupId(groupId);
131            }
132    
133            /**
134            * Gets the company ID of this journal article.
135            *
136            * @return the company ID of this journal article
137            */
138            public long getCompanyId() {
139                    return _journalArticle.getCompanyId();
140            }
141    
142            /**
143            * Sets the company ID of this journal article.
144            *
145            * @param companyId the company ID of this journal article
146            */
147            public void setCompanyId(long companyId) {
148                    _journalArticle.setCompanyId(companyId);
149            }
150    
151            /**
152            * Gets the user ID of this journal article.
153            *
154            * @return the user ID of this journal article
155            */
156            public long getUserId() {
157                    return _journalArticle.getUserId();
158            }
159    
160            /**
161            * Sets the user ID of this journal article.
162            *
163            * @param userId the user ID of this journal article
164            */
165            public void setUserId(long userId) {
166                    _journalArticle.setUserId(userId);
167            }
168    
169            /**
170            * Gets the user uuid of this journal article.
171            *
172            * @return the user uuid of this journal article
173            * @throws SystemException if a system exception occurred
174            */
175            public java.lang.String getUserUuid()
176                    throws com.liferay.portal.kernel.exception.SystemException {
177                    return _journalArticle.getUserUuid();
178            }
179    
180            /**
181            * Sets the user uuid of this journal article.
182            *
183            * @param userUuid the user uuid of this journal article
184            */
185            public void setUserUuid(java.lang.String userUuid) {
186                    _journalArticle.setUserUuid(userUuid);
187            }
188    
189            /**
190            * Gets the user name of this journal article.
191            *
192            * @return the user name of this journal article
193            */
194            public java.lang.String getUserName() {
195                    return _journalArticle.getUserName();
196            }
197    
198            /**
199            * Sets the user name of this journal article.
200            *
201            * @param userName the user name of this journal article
202            */
203            public void setUserName(java.lang.String userName) {
204                    _journalArticle.setUserName(userName);
205            }
206    
207            /**
208            * Gets the create date of this journal article.
209            *
210            * @return the create date of this journal article
211            */
212            public java.util.Date getCreateDate() {
213                    return _journalArticle.getCreateDate();
214            }
215    
216            /**
217            * Sets the create date of this journal article.
218            *
219            * @param createDate the create date of this journal article
220            */
221            public void setCreateDate(java.util.Date createDate) {
222                    _journalArticle.setCreateDate(createDate);
223            }
224    
225            /**
226            * Gets the modified date of this journal article.
227            *
228            * @return the modified date of this journal article
229            */
230            public java.util.Date getModifiedDate() {
231                    return _journalArticle.getModifiedDate();
232            }
233    
234            /**
235            * Sets the modified date of this journal article.
236            *
237            * @param modifiedDate the modified date of this journal article
238            */
239            public void setModifiedDate(java.util.Date modifiedDate) {
240                    _journalArticle.setModifiedDate(modifiedDate);
241            }
242    
243            /**
244            * Gets the article ID of this journal article.
245            *
246            * @return the article ID of this journal article
247            */
248            public java.lang.String getArticleId() {
249                    return _journalArticle.getArticleId();
250            }
251    
252            /**
253            * Sets the article ID of this journal article.
254            *
255            * @param articleId the article ID of this journal article
256            */
257            public void setArticleId(java.lang.String articleId) {
258                    _journalArticle.setArticleId(articleId);
259            }
260    
261            /**
262            * Gets the version of this journal article.
263            *
264            * @return the version of this journal article
265            */
266            public double getVersion() {
267                    return _journalArticle.getVersion();
268            }
269    
270            /**
271            * Sets the version of this journal article.
272            *
273            * @param version the version of this journal article
274            */
275            public void setVersion(double version) {
276                    _journalArticle.setVersion(version);
277            }
278    
279            /**
280            * Gets the title of this journal article.
281            *
282            * @return the title of this journal article
283            */
284            public java.lang.String getTitle() {
285                    return _journalArticle.getTitle();
286            }
287    
288            /**
289            * Sets the title of this journal article.
290            *
291            * @param title the title of this journal article
292            */
293            public void setTitle(java.lang.String title) {
294                    _journalArticle.setTitle(title);
295            }
296    
297            /**
298            * Gets the url title of this journal article.
299            *
300            * @return the url title of this journal article
301            */
302            public java.lang.String getUrlTitle() {
303                    return _journalArticle.getUrlTitle();
304            }
305    
306            /**
307            * Sets the url title of this journal article.
308            *
309            * @param urlTitle the url title of this journal article
310            */
311            public void setUrlTitle(java.lang.String urlTitle) {
312                    _journalArticle.setUrlTitle(urlTitle);
313            }
314    
315            /**
316            * Gets the description of this journal article.
317            *
318            * @return the description of this journal article
319            */
320            public java.lang.String getDescription() {
321                    return _journalArticle.getDescription();
322            }
323    
324            /**
325            * Sets the description of this journal article.
326            *
327            * @param description the description of this journal article
328            */
329            public void setDescription(java.lang.String description) {
330                    _journalArticle.setDescription(description);
331            }
332    
333            /**
334            * Gets the content of this journal article.
335            *
336            * @return the content of this journal article
337            */
338            public java.lang.String getContent() {
339                    return _journalArticle.getContent();
340            }
341    
342            /**
343            * Sets the content of this journal article.
344            *
345            * @param content the content of this journal article
346            */
347            public void setContent(java.lang.String content) {
348                    _journalArticle.setContent(content);
349            }
350    
351            /**
352            * Gets the type of this journal article.
353            *
354            * @return the type of this journal article
355            */
356            public java.lang.String getType() {
357                    return _journalArticle.getType();
358            }
359    
360            /**
361            * Sets the type of this journal article.
362            *
363            * @param type the type of this journal article
364            */
365            public void setType(java.lang.String type) {
366                    _journalArticle.setType(type);
367            }
368    
369            /**
370            * Gets the structure ID of this journal article.
371            *
372            * @return the structure ID of this journal article
373            */
374            public java.lang.String getStructureId() {
375                    return _journalArticle.getStructureId();
376            }
377    
378            /**
379            * Sets the structure ID of this journal article.
380            *
381            * @param structureId the structure ID of this journal article
382            */
383            public void setStructureId(java.lang.String structureId) {
384                    _journalArticle.setStructureId(structureId);
385            }
386    
387            /**
388            * Gets the template ID of this journal article.
389            *
390            * @return the template ID of this journal article
391            */
392            public java.lang.String getTemplateId() {
393                    return _journalArticle.getTemplateId();
394            }
395    
396            /**
397            * Sets the template ID of this journal article.
398            *
399            * @param templateId the template ID of this journal article
400            */
401            public void setTemplateId(java.lang.String templateId) {
402                    _journalArticle.setTemplateId(templateId);
403            }
404    
405            /**
406            * Gets the display date of this journal article.
407            *
408            * @return the display date of this journal article
409            */
410            public java.util.Date getDisplayDate() {
411                    return _journalArticle.getDisplayDate();
412            }
413    
414            /**
415            * Sets the display date of this journal article.
416            *
417            * @param displayDate the display date of this journal article
418            */
419            public void setDisplayDate(java.util.Date displayDate) {
420                    _journalArticle.setDisplayDate(displayDate);
421            }
422    
423            /**
424            * Gets the expiration date of this journal article.
425            *
426            * @return the expiration date of this journal article
427            */
428            public java.util.Date getExpirationDate() {
429                    return _journalArticle.getExpirationDate();
430            }
431    
432            /**
433            * Sets the expiration date of this journal article.
434            *
435            * @param expirationDate the expiration date of this journal article
436            */
437            public void setExpirationDate(java.util.Date expirationDate) {
438                    _journalArticle.setExpirationDate(expirationDate);
439            }
440    
441            /**
442            * Gets the review date of this journal article.
443            *
444            * @return the review date of this journal article
445            */
446            public java.util.Date getReviewDate() {
447                    return _journalArticle.getReviewDate();
448            }
449    
450            /**
451            * Sets the review date of this journal article.
452            *
453            * @param reviewDate the review date of this journal article
454            */
455            public void setReviewDate(java.util.Date reviewDate) {
456                    _journalArticle.setReviewDate(reviewDate);
457            }
458    
459            /**
460            * Gets the indexable of this journal article.
461            *
462            * @return the indexable of this journal article
463            */
464            public boolean getIndexable() {
465                    return _journalArticle.getIndexable();
466            }
467    
468            /**
469            * Determines if this journal article is indexable.
470            *
471            * @return <code>true</code> if this journal article is indexable; <code>false</code> otherwise
472            */
473            public boolean isIndexable() {
474                    return _journalArticle.isIndexable();
475            }
476    
477            /**
478            * Sets whether this journal article is indexable.
479            *
480            * @param indexable the indexable of this journal article
481            */
482            public void setIndexable(boolean indexable) {
483                    _journalArticle.setIndexable(indexable);
484            }
485    
486            /**
487            * Gets the small image of this journal article.
488            *
489            * @return the small image of this journal article
490            */
491            public boolean getSmallImage() {
492                    return _journalArticle.getSmallImage();
493            }
494    
495            /**
496            * Determines if this journal article is small image.
497            *
498            * @return <code>true</code> if this journal article is small image; <code>false</code> otherwise
499            */
500            public boolean isSmallImage() {
501                    return _journalArticle.isSmallImage();
502            }
503    
504            /**
505            * Sets whether this journal article is small image.
506            *
507            * @param smallImage the small image of this journal article
508            */
509            public void setSmallImage(boolean smallImage) {
510                    _journalArticle.setSmallImage(smallImage);
511            }
512    
513            /**
514            * Gets the small image ID of this journal article.
515            *
516            * @return the small image ID of this journal article
517            */
518            public long getSmallImageId() {
519                    return _journalArticle.getSmallImageId();
520            }
521    
522            /**
523            * Sets the small image ID of this journal article.
524            *
525            * @param smallImageId the small image ID of this journal article
526            */
527            public void setSmallImageId(long smallImageId) {
528                    _journalArticle.setSmallImageId(smallImageId);
529            }
530    
531            /**
532            * Gets the small image u r l of this journal article.
533            *
534            * @return the small image u r l of this journal article
535            */
536            public java.lang.String getSmallImageURL() {
537                    return _journalArticle.getSmallImageURL();
538            }
539    
540            /**
541            * Sets the small image u r l of this journal article.
542            *
543            * @param smallImageURL the small image u r l of this journal article
544            */
545            public void setSmallImageURL(java.lang.String smallImageURL) {
546                    _journalArticle.setSmallImageURL(smallImageURL);
547            }
548    
549            /**
550            * Gets the status of this journal article.
551            *
552            * @return the status of this journal article
553            */
554            public int getStatus() {
555                    return _journalArticle.getStatus();
556            }
557    
558            /**
559            * Sets the status of this journal article.
560            *
561            * @param status the status of this journal article
562            */
563            public void setStatus(int status) {
564                    _journalArticle.setStatus(status);
565            }
566    
567            /**
568            * Gets the status by user ID of this journal article.
569            *
570            * @return the status by user ID of this journal article
571            */
572            public long getStatusByUserId() {
573                    return _journalArticle.getStatusByUserId();
574            }
575    
576            /**
577            * Sets the status by user ID of this journal article.
578            *
579            * @param statusByUserId the status by user ID of this journal article
580            */
581            public void setStatusByUserId(long statusByUserId) {
582                    _journalArticle.setStatusByUserId(statusByUserId);
583            }
584    
585            /**
586            * Gets the status by user uuid of this journal article.
587            *
588            * @return the status by user uuid of this journal article
589            * @throws SystemException if a system exception occurred
590            */
591            public java.lang.String getStatusByUserUuid()
592                    throws com.liferay.portal.kernel.exception.SystemException {
593                    return _journalArticle.getStatusByUserUuid();
594            }
595    
596            /**
597            * Sets the status by user uuid of this journal article.
598            *
599            * @param statusByUserUuid the status by user uuid of this journal article
600            */
601            public void setStatusByUserUuid(java.lang.String statusByUserUuid) {
602                    _journalArticle.setStatusByUserUuid(statusByUserUuid);
603            }
604    
605            /**
606            * Gets the status by user name of this journal article.
607            *
608            * @return the status by user name of this journal article
609            */
610            public java.lang.String getStatusByUserName() {
611                    return _journalArticle.getStatusByUserName();
612            }
613    
614            /**
615            * Sets the status by user name of this journal article.
616            *
617            * @param statusByUserName the status by user name of this journal article
618            */
619            public void setStatusByUserName(java.lang.String statusByUserName) {
620                    _journalArticle.setStatusByUserName(statusByUserName);
621            }
622    
623            /**
624            * Gets the status date of this journal article.
625            *
626            * @return the status date of this journal article
627            */
628            public java.util.Date getStatusDate() {
629                    return _journalArticle.getStatusDate();
630            }
631    
632            /**
633            * Sets the status date of this journal article.
634            *
635            * @param statusDate the status date of this journal article
636            */
637            public void setStatusDate(java.util.Date statusDate) {
638                    _journalArticle.setStatusDate(statusDate);
639            }
640    
641            /**
642            * @deprecated {@link #isApproved}
643            */
644            public boolean getApproved() {
645                    return _journalArticle.getApproved();
646            }
647    
648            /**
649            * Determines if this journal article is approved.
650            *
651            * @return <code>true</code> if this journal article is approved; <code>false</code> otherwise
652            */
653            public boolean isApproved() {
654                    return _journalArticle.isApproved();
655            }
656    
657            /**
658            * Determines if this journal article is a draft.
659            *
660            * @return <code>true</code> if this journal article is a draft; <code>false</code> otherwise
661            */
662            public boolean isDraft() {
663                    return _journalArticle.isDraft();
664            }
665    
666            /**
667            * Determines if this journal article is expired.
668            *
669            * @return <code>true</code> if this journal article is expired; <code>false</code> otherwise
670            */
671            public boolean isExpired() {
672                    return _journalArticle.isExpired();
673            }
674    
675            /**
676            * Determines if this journal article is pending.
677            *
678            * @return <code>true</code> if this journal article is pending; <code>false</code> otherwise
679            */
680            public boolean isPending() {
681                    return _journalArticle.isPending();
682            }
683    
684            public boolean isNew() {
685                    return _journalArticle.isNew();
686            }
687    
688            public void setNew(boolean n) {
689                    _journalArticle.setNew(n);
690            }
691    
692            public boolean isCachedModel() {
693                    return _journalArticle.isCachedModel();
694            }
695    
696            public void setCachedModel(boolean cachedModel) {
697                    _journalArticle.setCachedModel(cachedModel);
698            }
699    
700            public boolean isEscapedModel() {
701                    return _journalArticle.isEscapedModel();
702            }
703    
704            public void setEscapedModel(boolean escapedModel) {
705                    _journalArticle.setEscapedModel(escapedModel);
706            }
707    
708            public java.io.Serializable getPrimaryKeyObj() {
709                    return _journalArticle.getPrimaryKeyObj();
710            }
711    
712            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
713                    _journalArticle.setPrimaryKeyObj(primaryKeyObj);
714            }
715    
716            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
717                    return _journalArticle.getExpandoBridge();
718            }
719    
720            public void setExpandoBridgeAttributes(
721                    com.liferay.portal.service.ServiceContext serviceContext) {
722                    _journalArticle.setExpandoBridgeAttributes(serviceContext);
723            }
724    
725            @Override
726            public java.lang.Object clone() {
727                    return new JournalArticleWrapper((JournalArticle)_journalArticle.clone());
728            }
729    
730            public int compareTo(
731                    com.liferay.portlet.journal.model.JournalArticle journalArticle) {
732                    return _journalArticle.compareTo(journalArticle);
733            }
734    
735            @Override
736            public int hashCode() {
737                    return _journalArticle.hashCode();
738            }
739    
740            public com.liferay.portal.model.CacheModel<com.liferay.portlet.journal.model.JournalArticle> toCacheModel() {
741                    return _journalArticle.toCacheModel();
742            }
743    
744            public com.liferay.portlet.journal.model.JournalArticle toEscapedModel() {
745                    return new JournalArticleWrapper(_journalArticle.toEscapedModel());
746            }
747    
748            @Override
749            public java.lang.String toString() {
750                    return _journalArticle.toString();
751            }
752    
753            public java.lang.String toXmlString() {
754                    return _journalArticle.toXmlString();
755            }
756    
757            public void persist()
758                    throws com.liferay.portal.kernel.exception.SystemException {
759                    _journalArticle.persist();
760            }
761    
762            public com.liferay.portlet.journal.model.JournalArticleResource getArticleResource()
763                    throws com.liferay.portal.kernel.exception.PortalException,
764                            com.liferay.portal.kernel.exception.SystemException {
765                    return _journalArticle.getArticleResource();
766            }
767    
768            public java.lang.String getArticleResourceUuid()
769                    throws com.liferay.portal.kernel.exception.PortalException,
770                            com.liferay.portal.kernel.exception.SystemException {
771                    return _journalArticle.getArticleResourceUuid();
772            }
773    
774            public java.lang.String[] getAvailableLocales() {
775                    return _journalArticle.getAvailableLocales();
776            }
777    
778            public java.lang.String getContentByLocale(java.lang.String languageId) {
779                    return _journalArticle.getContentByLocale(languageId);
780            }
781    
782            public java.lang.String getDefaultLocale() {
783                    return _journalArticle.getDefaultLocale();
784            }
785    
786            public java.lang.String getSmallImageType()
787                    throws com.liferay.portal.kernel.exception.PortalException,
788                            com.liferay.portal.kernel.exception.SystemException {
789                    return _journalArticle.getSmallImageType();
790            }
791    
792            public boolean isTemplateDriven() {
793                    return _journalArticle.isTemplateDriven();
794            }
795    
796            public void setSmallImageType(java.lang.String smallImageType) {
797                    _journalArticle.setSmallImageType(smallImageType);
798            }
799    
800            public JournalArticle getWrappedJournalArticle() {
801                    return _journalArticle;
802            }
803    
804            public void resetOriginalValues() {
805                    _journalArticle.resetOriginalValues();
806            }
807    
808            private JournalArticle _journalArticle;
809    }