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