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