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