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.portal.kernel.model;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.expando.kernel.model.ExpandoBridge;
020    
021    import com.liferay.exportimport.kernel.lar.StagedModelType;
022    
023    import com.liferay.portal.kernel.service.ServiceContext;
024    import com.liferay.portal.kernel.util.Validator;
025    
026    import java.io.Serializable;
027    
028    import java.util.Date;
029    import java.util.HashMap;
030    import java.util.Map;
031    
032    /**
033     * <p>
034     * This class is a wrapper for {@link Layout}.
035     * </p>
036     *
037     * @author Brian Wing Shun Chan
038     * @see Layout
039     * @generated
040     */
041    @ProviderType
042    public class LayoutWrapper implements Layout, ModelWrapper<Layout> {
043            public LayoutWrapper(Layout layout) {
044                    _layout = layout;
045            }
046    
047            @Override
048            public Class<?> getModelClass() {
049                    return Layout.class;
050            }
051    
052            @Override
053            public String getModelClassName() {
054                    return Layout.class.getName();
055            }
056    
057            @Override
058            public Map<String, Object> getModelAttributes() {
059                    Map<String, Object> attributes = new HashMap<String, Object>();
060    
061                    attributes.put("mvccVersion", getMvccVersion());
062                    attributes.put("uuid", getUuid());
063                    attributes.put("plid", getPlid());
064                    attributes.put("groupId", getGroupId());
065                    attributes.put("companyId", getCompanyId());
066                    attributes.put("userId", getUserId());
067                    attributes.put("userName", getUserName());
068                    attributes.put("createDate", getCreateDate());
069                    attributes.put("modifiedDate", getModifiedDate());
070                    attributes.put("privateLayout", getPrivateLayout());
071                    attributes.put("layoutId", getLayoutId());
072                    attributes.put("parentLayoutId", getParentLayoutId());
073                    attributes.put("name", getName());
074                    attributes.put("title", getTitle());
075                    attributes.put("description", getDescription());
076                    attributes.put("keywords", getKeywords());
077                    attributes.put("robots", getRobots());
078                    attributes.put("type", getType());
079                    attributes.put("typeSettings", getTypeSettings());
080                    attributes.put("hidden", getHidden());
081                    attributes.put("friendlyURL", getFriendlyURL());
082                    attributes.put("iconImageId", getIconImageId());
083                    attributes.put("themeId", getThemeId());
084                    attributes.put("colorSchemeId", getColorSchemeId());
085                    attributes.put("css", getCss());
086                    attributes.put("priority", getPriority());
087                    attributes.put("layoutPrototypeUuid", getLayoutPrototypeUuid());
088                    attributes.put("layoutPrototypeLinkEnabled",
089                            getLayoutPrototypeLinkEnabled());
090                    attributes.put("sourcePrototypeLayoutUuid",
091                            getSourcePrototypeLayoutUuid());
092                    attributes.put("lastPublishDate", getLastPublishDate());
093    
094                    return attributes;
095            }
096    
097            @Override
098            public void setModelAttributes(Map<String, Object> attributes) {
099                    Long mvccVersion = (Long)attributes.get("mvccVersion");
100    
101                    if (mvccVersion != null) {
102                            setMvccVersion(mvccVersion);
103                    }
104    
105                    String uuid = (String)attributes.get("uuid");
106    
107                    if (uuid != null) {
108                            setUuid(uuid);
109                    }
110    
111                    Long plid = (Long)attributes.get("plid");
112    
113                    if (plid != null) {
114                            setPlid(plid);
115                    }
116    
117                    Long groupId = (Long)attributes.get("groupId");
118    
119                    if (groupId != null) {
120                            setGroupId(groupId);
121                    }
122    
123                    Long companyId = (Long)attributes.get("companyId");
124    
125                    if (companyId != null) {
126                            setCompanyId(companyId);
127                    }
128    
129                    Long userId = (Long)attributes.get("userId");
130    
131                    if (userId != null) {
132                            setUserId(userId);
133                    }
134    
135                    String userName = (String)attributes.get("userName");
136    
137                    if (userName != null) {
138                            setUserName(userName);
139                    }
140    
141                    Date createDate = (Date)attributes.get("createDate");
142    
143                    if (createDate != null) {
144                            setCreateDate(createDate);
145                    }
146    
147                    Date modifiedDate = (Date)attributes.get("modifiedDate");
148    
149                    if (modifiedDate != null) {
150                            setModifiedDate(modifiedDate);
151                    }
152    
153                    Boolean privateLayout = (Boolean)attributes.get("privateLayout");
154    
155                    if (privateLayout != null) {
156                            setPrivateLayout(privateLayout);
157                    }
158    
159                    Long layoutId = (Long)attributes.get("layoutId");
160    
161                    if (layoutId != null) {
162                            setLayoutId(layoutId);
163                    }
164    
165                    Long parentLayoutId = (Long)attributes.get("parentLayoutId");
166    
167                    if (parentLayoutId != null) {
168                            setParentLayoutId(parentLayoutId);
169                    }
170    
171                    String name = (String)attributes.get("name");
172    
173                    if (name != null) {
174                            setName(name);
175                    }
176    
177                    String title = (String)attributes.get("title");
178    
179                    if (title != null) {
180                            setTitle(title);
181                    }
182    
183                    String description = (String)attributes.get("description");
184    
185                    if (description != null) {
186                            setDescription(description);
187                    }
188    
189                    String keywords = (String)attributes.get("keywords");
190    
191                    if (keywords != null) {
192                            setKeywords(keywords);
193                    }
194    
195                    String robots = (String)attributes.get("robots");
196    
197                    if (robots != null) {
198                            setRobots(robots);
199                    }
200    
201                    String type = (String)attributes.get("type");
202    
203                    if (type != null) {
204                            setType(type);
205                    }
206    
207                    String typeSettings = (String)attributes.get("typeSettings");
208    
209                    if (typeSettings != null) {
210                            setTypeSettings(typeSettings);
211                    }
212    
213                    Boolean hidden = (Boolean)attributes.get("hidden");
214    
215                    if (hidden != null) {
216                            setHidden(hidden);
217                    }
218    
219                    String friendlyURL = (String)attributes.get("friendlyURL");
220    
221                    if (friendlyURL != null) {
222                            setFriendlyURL(friendlyURL);
223                    }
224    
225                    Long iconImageId = (Long)attributes.get("iconImageId");
226    
227                    if (iconImageId != null) {
228                            setIconImageId(iconImageId);
229                    }
230    
231                    String themeId = (String)attributes.get("themeId");
232    
233                    if (themeId != null) {
234                            setThemeId(themeId);
235                    }
236    
237                    String colorSchemeId = (String)attributes.get("colorSchemeId");
238    
239                    if (colorSchemeId != null) {
240                            setColorSchemeId(colorSchemeId);
241                    }
242    
243                    String css = (String)attributes.get("css");
244    
245                    if (css != null) {
246                            setCss(css);
247                    }
248    
249                    Integer priority = (Integer)attributes.get("priority");
250    
251                    if (priority != null) {
252                            setPriority(priority);
253                    }
254    
255                    String layoutPrototypeUuid = (String)attributes.get(
256                                    "layoutPrototypeUuid");
257    
258                    if (layoutPrototypeUuid != null) {
259                            setLayoutPrototypeUuid(layoutPrototypeUuid);
260                    }
261    
262                    Boolean layoutPrototypeLinkEnabled = (Boolean)attributes.get(
263                                    "layoutPrototypeLinkEnabled");
264    
265                    if (layoutPrototypeLinkEnabled != null) {
266                            setLayoutPrototypeLinkEnabled(layoutPrototypeLinkEnabled);
267                    }
268    
269                    String sourcePrototypeLayoutUuid = (String)attributes.get(
270                                    "sourcePrototypeLayoutUuid");
271    
272                    if (sourcePrototypeLayoutUuid != null) {
273                            setSourcePrototypeLayoutUuid(sourcePrototypeLayoutUuid);
274                    }
275    
276                    Date lastPublishDate = (Date)attributes.get("lastPublishDate");
277    
278                    if (lastPublishDate != null) {
279                            setLastPublishDate(lastPublishDate);
280                    }
281            }
282    
283            @Override
284            public java.lang.Object clone() {
285                    return new LayoutWrapper((Layout)_layout.clone());
286            }
287    
288            @Override
289            public int compareTo(com.liferay.portal.kernel.model.Layout layout) {
290                    return _layout.compareTo(layout);
291            }
292    
293            /**
294            * Returns all layouts that are direct or indirect children of the current
295            * layout.
296            *
297            * @return the layouts that are direct or indirect children of the current
298            layout
299            */
300            @Override
301            public java.util.List<com.liferay.portal.kernel.model.Layout> getAllChildren() {
302                    return _layout.getAllChildren();
303            }
304    
305            /**
306            * Returns the ID of the topmost parent layout (e.g. n-th parent layout) of
307            * the current layout.
308            *
309            * @return the ID of the topmost parent layout of the current layout
310            */
311            @Override
312            public long getAncestorLayoutId()
313                    throws com.liferay.portal.kernel.exception.PortalException {
314                    return _layout.getAncestorLayoutId();
315            }
316    
317            /**
318            * Returns the plid of the topmost parent layout (e.g. n-th parent layout)
319            * of the current layout.
320            *
321            * @return the plid of the topmost parent layout of the current layout
322            */
323            @Override
324            public long getAncestorPlid()
325                    throws com.liferay.portal.kernel.exception.PortalException {
326                    return _layout.getAncestorPlid();
327            }
328    
329            /**
330            * Returns all parent layouts of the current layout. The list is retrieved
331            * recursively with the direct parent layout listed first, and most distant
332            * parent listed last.
333            *
334            * @return the current layout's list of parent layouts
335            */
336            @Override
337            public java.util.List<com.liferay.portal.kernel.model.Layout> getAncestors()
338                    throws com.liferay.portal.kernel.exception.PortalException {
339                    return _layout.getAncestors();
340            }
341    
342            @Override
343            public java.lang.String[] getAvailableLanguageIds() {
344                    return _layout.getAvailableLanguageIds();
345            }
346    
347            /**
348            * Returns all child layouts of the current layout, independent of user
349            * access permissions.
350            *
351            * @return the list of all child layouts
352            */
353            @Override
354            public java.util.List<com.liferay.portal.kernel.model.Layout> getChildren() {
355                    return _layout.getChildren();
356            }
357    
358            /**
359            * Returns all child layouts of the current layout that the user has
360            * permission to access.
361            *
362            * @param permissionChecker the user-specific context to check permissions
363            * @return the list of all child layouts that the user has permission to
364            access
365            */
366            @Override
367            public java.util.List<com.liferay.portal.kernel.model.Layout> getChildren(
368                    com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker)
369                    throws com.liferay.portal.kernel.exception.PortalException {
370                    return _layout.getChildren(permissionChecker);
371            }
372    
373            /**
374            * Returns the color scheme that is configured for the current layout, or
375            * the color scheme of the layout set that contains the current layout if no
376            * color scheme is configured.
377            *
378            * @return the color scheme that is configured for the current layout, or
379            the color scheme  of the layout set that contains the current
380            layout if no color scheme is configured
381            */
382            @Override
383            public com.liferay.portal.kernel.model.ColorScheme getColorScheme()
384                    throws com.liferay.portal.kernel.exception.PortalException {
385                    return _layout.getColorScheme();
386            }
387    
388            /**
389            * Returns the color scheme ID of this layout.
390            *
391            * @return the color scheme ID of this layout
392            */
393            @Override
394            public java.lang.String getColorSchemeId() {
395                    return _layout.getColorSchemeId();
396            }
397    
398            /**
399            * Returns the company ID of this layout.
400            *
401            * @return the company ID of this layout
402            */
403            @Override
404            public long getCompanyId() {
405                    return _layout.getCompanyId();
406            }
407    
408            /**
409            * Returns the create date of this layout.
410            *
411            * @return the create date of this layout
412            */
413            @Override
414            public Date getCreateDate() {
415                    return _layout.getCreateDate();
416            }
417    
418            /**
419            * Returns the css of this layout.
420            *
421            * @return the css of this layout
422            */
423            @Override
424            public java.lang.String getCss() {
425                    return _layout.getCss();
426            }
427    
428            /**
429            * Returns the CSS text for the current layout, or for the layout set if no
430            * CSS text is configured in the current layout.
431            *
432            * <p>
433            * Layouts and layout sets can configure CSS that is applied in addition to
434            * the theme's CSS.
435            * </p>
436            *
437            * @return the CSS text for the current layout, or for the layout set if no
438            CSS text is configured in the current layout
439            */
440            @Override
441            public java.lang.String getCssText()
442                    throws com.liferay.portal.kernel.exception.PortalException {
443                    return _layout.getCssText();
444            }
445    
446            @Override
447            public java.lang.String getDefaultLanguageId() {
448                    return _layout.getDefaultLanguageId();
449            }
450    
451            @Override
452            public java.lang.String getDefaultThemeSetting(java.lang.String key,
453                    java.lang.String device, boolean inheritLookAndFeel) {
454                    return _layout.getDefaultThemeSetting(key, device, inheritLookAndFeel);
455            }
456    
457            /**
458            * Returns the description of this layout.
459            *
460            * @return the description of this layout
461            */
462            @Override
463            public java.lang.String getDescription() {
464                    return _layout.getDescription();
465            }
466    
467            /**
468            * Returns the localized description of this layout in the language. Uses the default language if no localization exists for the requested language.
469            *
470            * @param languageId the ID of the language
471            * @return the localized description of this layout
472            */
473            @Override
474            public java.lang.String getDescription(java.lang.String languageId) {
475                    return _layout.getDescription(languageId);
476            }
477    
478            /**
479            * Returns the localized description of this layout in the language, optionally using the default language if no localization exists for the requested language.
480            *
481            * @param languageId the ID of the language
482            * @param useDefault whether to use the default language if no localization exists for the requested language
483            * @return the localized description of this layout
484            */
485            @Override
486            public java.lang.String getDescription(java.lang.String languageId,
487                    boolean useDefault) {
488                    return _layout.getDescription(languageId, useDefault);
489            }
490    
491            /**
492            * Returns the localized description of this layout in the language. Uses the default language if no localization exists for the requested language.
493            *
494            * @param locale the locale of the language
495            * @return the localized description of this layout
496            */
497            @Override
498            public java.lang.String getDescription(java.util.Locale locale) {
499                    return _layout.getDescription(locale);
500            }
501    
502            /**
503            * Returns the localized description of this layout in the language, optionally using the default language if no localization exists for the requested language.
504            *
505            * @param locale the local of the language
506            * @param useDefault whether to use the default language if no localization exists for the requested language
507            * @return the localized description of this layout. If <code>useDefault</code> is <code>false</code> and no localization exists for the requested language, an empty string will be returned.
508            */
509            @Override
510            public java.lang.String getDescription(java.util.Locale locale,
511                    boolean useDefault) {
512                    return _layout.getDescription(locale, useDefault);
513            }
514    
515            @Override
516            public java.lang.String getDescriptionCurrentLanguageId() {
517                    return _layout.getDescriptionCurrentLanguageId();
518            }
519    
520            @Override
521            public java.lang.String getDescriptionCurrentValue() {
522                    return _layout.getDescriptionCurrentValue();
523            }
524    
525            /**
526            * Returns a map of the locales and localized descriptions of this layout.
527            *
528            * @return the locales and localized descriptions of this layout
529            */
530            @Override
531            public Map<java.util.Locale, java.lang.String> getDescriptionMap() {
532                    return _layout.getDescriptionMap();
533            }
534    
535            @Override
536            public java.util.List<com.liferay.portal.kernel.model.Portlet> getEmbeddedPortlets() {
537                    return _layout.getEmbeddedPortlets();
538            }
539    
540            @Override
541            public java.util.List<com.liferay.portal.kernel.model.Portlet> getEmbeddedPortlets(
542                    long groupId) {
543                    return _layout.getEmbeddedPortlets(groupId);
544            }
545    
546            @Override
547            public ExpandoBridge getExpandoBridge() {
548                    return _layout.getExpandoBridge();
549            }
550    
551            /**
552            * Returns the friendly u r l of this layout.
553            *
554            * @return the friendly u r l of this layout
555            */
556            @Override
557            public java.lang.String getFriendlyURL() {
558                    return _layout.getFriendlyURL();
559            }
560    
561            /**
562            * Returns the layout's friendly URL for the given locale.
563            *
564            * @param locale the locale that the friendly URL should be retrieved for
565            * @return the layout's friendly URL for the given locale
566            */
567            @Override
568            public java.lang.String getFriendlyURL(java.util.Locale locale) {
569                    return _layout.getFriendlyURL(locale);
570            }
571    
572            /**
573            * Returns the friendly URLs for all configured locales.
574            *
575            * @return the friendly URLs for all configured locales
576            */
577            @Override
578            public Map<java.util.Locale, java.lang.String> getFriendlyURLMap() {
579                    return _layout.getFriendlyURLMap();
580            }
581    
582            @Override
583            public java.lang.String getFriendlyURLsXML() {
584                    return _layout.getFriendlyURLsXML();
585            }
586    
587            /**
588            * Returns the current layout's group.
589            *
590            * <p>
591            * Group is Liferay's technical name for a site.
592            * </p>
593            *
594            * @return the current layout's group
595            */
596            @Override
597            public com.liferay.portal.kernel.model.Group getGroup()
598                    throws com.liferay.portal.kernel.exception.PortalException {
599                    return _layout.getGroup();
600            }
601    
602            /**
603            * Returns the group ID of this layout.
604            *
605            * @return the group ID of this layout
606            */
607            @Override
608            public long getGroupId() {
609                    return _layout.getGroupId();
610            }
611    
612            /**
613            * Returns the current layout's HTML title for the given locale, or the
614            * current layout's name for the given locale if no HTML title is
615            * configured.
616            *
617            * @param locale the locale that the HTML title should be retrieved for
618            * @return the current layout's HTML title for the given locale, or the
619            current layout's name for the given locale if no HTML title is
620            configured
621            */
622            @Override
623            public java.lang.String getHTMLTitle(java.util.Locale locale) {
624                    return _layout.getHTMLTitle(locale);
625            }
626    
627            /**
628            * Returns the current layout's HTML title for the given locale language ID,
629            * or the current layout's name if no HTML title is configured.
630            *
631            * @param localeLanguageId the locale that the HTML title should be
632            retrieved for
633            * @return the current layout's HTML title for the given locale language ID,
634            or the current layout's name if no HTML title is configured
635            */
636            @Override
637            public java.lang.String getHTMLTitle(java.lang.String localeLanguageId) {
638                    return _layout.getHTMLTitle(localeLanguageId);
639            }
640    
641            /**
642            * Returns the hidden of this layout.
643            *
644            * @return the hidden of this layout
645            */
646            @Override
647            public boolean getHidden() {
648                    return _layout.getHidden();
649            }
650    
651            /**
652            * Returns <code>true</code> if the current layout has a configured icon.
653            *
654            * @return <code>true</code> if the current layout has a configured icon;
655            <code>false</code> otherwise
656            */
657            @Override
658            public boolean getIconImage() {
659                    return _layout.getIconImage();
660            }
661    
662            /**
663            * Returns the icon image ID of this layout.
664            *
665            * @return the icon image ID of this layout
666            */
667            @Override
668            public long getIconImageId() {
669                    return _layout.getIconImageId();
670            }
671    
672            /**
673            * Returns the keywords of this layout.
674            *
675            * @return the keywords of this layout
676            */
677            @Override
678            public java.lang.String getKeywords() {
679                    return _layout.getKeywords();
680            }
681    
682            /**
683            * Returns the localized keywords of this layout in the language. Uses the default language if no localization exists for the requested language.
684            *
685            * @param languageId the ID of the language
686            * @return the localized keywords of this layout
687            */
688            @Override
689            public java.lang.String getKeywords(java.lang.String languageId) {
690                    return _layout.getKeywords(languageId);
691            }
692    
693            /**
694            * Returns the localized keywords of this layout in the language, optionally using the default language if no localization exists for the requested language.
695            *
696            * @param languageId the ID of the language
697            * @param useDefault whether to use the default language if no localization exists for the requested language
698            * @return the localized keywords of this layout
699            */
700            @Override
701            public java.lang.String getKeywords(java.lang.String languageId,
702                    boolean useDefault) {
703                    return _layout.getKeywords(languageId, useDefault);
704            }
705    
706            /**
707            * Returns the localized keywords of this layout in the language. Uses the default language if no localization exists for the requested language.
708            *
709            * @param locale the locale of the language
710            * @return the localized keywords of this layout
711            */
712            @Override
713            public java.lang.String getKeywords(java.util.Locale locale) {
714                    return _layout.getKeywords(locale);
715            }
716    
717            /**
718            * Returns the localized keywords of this layout in the language, optionally using the default language if no localization exists for the requested language.
719            *
720            * @param locale the local of the language
721            * @param useDefault whether to use the default language if no localization exists for the requested language
722            * @return the localized keywords of this layout. If <code>useDefault</code> is <code>false</code> and no localization exists for the requested language, an empty string will be returned.
723            */
724            @Override
725            public java.lang.String getKeywords(java.util.Locale locale,
726                    boolean useDefault) {
727                    return _layout.getKeywords(locale, useDefault);
728            }
729    
730            @Override
731            public java.lang.String getKeywordsCurrentLanguageId() {
732                    return _layout.getKeywordsCurrentLanguageId();
733            }
734    
735            @Override
736            public java.lang.String getKeywordsCurrentValue() {
737                    return _layout.getKeywordsCurrentValue();
738            }
739    
740            /**
741            * Returns a map of the locales and localized keywordses of this layout.
742            *
743            * @return the locales and localized keywordses of this layout
744            */
745            @Override
746            public Map<java.util.Locale, java.lang.String> getKeywordsMap() {
747                    return _layout.getKeywordsMap();
748            }
749    
750            /**
751            * Returns the last publish date of this layout.
752            *
753            * @return the last publish date of this layout
754            */
755            @Override
756            public Date getLastPublishDate() {
757                    return _layout.getLastPublishDate();
758            }
759    
760            /**
761            * Returns the layout ID of this layout.
762            *
763            * @return the layout ID of this layout
764            */
765            @Override
766            public long getLayoutId() {
767                    return _layout.getLayoutId();
768            }
769    
770            /**
771            * Returns the layout prototype link enabled of this layout.
772            *
773            * @return the layout prototype link enabled of this layout
774            */
775            @Override
776            public boolean getLayoutPrototypeLinkEnabled() {
777                    return _layout.getLayoutPrototypeLinkEnabled();
778            }
779    
780            /**
781            * Returns the layout prototype uuid of this layout.
782            *
783            * @return the layout prototype uuid of this layout
784            */
785            @Override
786            public java.lang.String getLayoutPrototypeUuid() {
787                    return _layout.getLayoutPrototypeUuid();
788            }
789    
790            /**
791            * Returns the current layout's {@link LayoutSet}.
792            *
793            * @return the current layout's layout set
794            */
795            @Override
796            public com.liferay.portal.kernel.model.LayoutSet getLayoutSet()
797                    throws com.liferay.portal.kernel.exception.PortalException {
798                    return _layout.getLayoutSet();
799            }
800    
801            /**
802            * Returns the current layout's {@link LayoutType}.
803            *
804            * @return the current layout's layout type
805            */
806            @Override
807            public com.liferay.portal.kernel.model.LayoutType getLayoutType() {
808                    return _layout.getLayoutType();
809            }
810    
811            /**
812            * Returns the current layout's linked layout.
813            *
814            * @return the current layout's linked layout, or <code>null</code> if no
815            linked layout could be found
816            */
817            @Override
818            public com.liferay.portal.kernel.model.Layout getLinkedToLayout() {
819                    return _layout.getLinkedToLayout();
820            }
821    
822            /**
823            * Returns the modified date of this layout.
824            *
825            * @return the modified date of this layout
826            */
827            @Override
828            public Date getModifiedDate() {
829                    return _layout.getModifiedDate();
830            }
831    
832            /**
833            * Returns the mvcc version of this layout.
834            *
835            * @return the mvcc version of this layout
836            */
837            @Override
838            public long getMvccVersion() {
839                    return _layout.getMvccVersion();
840            }
841    
842            /**
843            * Returns the name of this layout.
844            *
845            * @return the name of this layout
846            */
847            @Override
848            public java.lang.String getName() {
849                    return _layout.getName();
850            }
851    
852            /**
853            * Returns the localized name of this layout in the language. Uses the default language if no localization exists for the requested language.
854            *
855            * @param languageId the ID of the language
856            * @return the localized name of this layout
857            */
858            @Override
859            public java.lang.String getName(java.lang.String languageId) {
860                    return _layout.getName(languageId);
861            }
862    
863            /**
864            * Returns the localized name of this layout in the language, optionally using the default language if no localization exists for the requested language.
865            *
866            * @param languageId the ID of the language
867            * @param useDefault whether to use the default language if no localization exists for the requested language
868            * @return the localized name of this layout
869            */
870            @Override
871            public java.lang.String getName(java.lang.String languageId,
872                    boolean useDefault) {
873                    return _layout.getName(languageId, useDefault);
874            }
875    
876            /**
877            * Returns the localized name of this layout in the language. Uses the default language if no localization exists for the requested language.
878            *
879            * @param locale the locale of the language
880            * @return the localized name of this layout
881            */
882            @Override
883            public java.lang.String getName(java.util.Locale locale) {
884                    return _layout.getName(locale);
885            }
886    
887            /**
888            * Returns the localized name of this layout in the language, optionally using the default language if no localization exists for the requested language.
889            *
890            * @param locale the local of the language
891            * @param useDefault whether to use the default language if no localization exists for the requested language
892            * @return the localized name of this layout. If <code>useDefault</code> is <code>false</code> and no localization exists for the requested language, an empty string will be returned.
893            */
894            @Override
895            public java.lang.String getName(java.util.Locale locale, boolean useDefault) {
896                    return _layout.getName(locale, useDefault);
897            }
898    
899            @Override
900            public java.lang.String getNameCurrentLanguageId() {
901                    return _layout.getNameCurrentLanguageId();
902            }
903    
904            @Override
905            public java.lang.String getNameCurrentValue() {
906                    return _layout.getNameCurrentValue();
907            }
908    
909            /**
910            * Returns a map of the locales and localized names of this layout.
911            *
912            * @return the locales and localized names of this layout
913            */
914            @Override
915            public Map<java.util.Locale, java.lang.String> getNameMap() {
916                    return _layout.getNameMap();
917            }
918    
919            /**
920            * Returns the parent layout ID of this layout.
921            *
922            * @return the parent layout ID of this layout
923            */
924            @Override
925            public long getParentLayoutId() {
926                    return _layout.getParentLayoutId();
927            }
928    
929            /**
930            * Returns the current layout's parent plid.
931            *
932            * @return the current layout's parent plid, or <code>0</code> if the
933            current layout is the topmost parent layout
934            */
935            @Override
936            public long getParentPlid()
937                    throws com.liferay.portal.kernel.exception.PortalException {
938                    return _layout.getParentPlid();
939            }
940    
941            /**
942            * Returns the plid of this layout.
943            *
944            * @return the plid of this layout
945            */
946            @Override
947            public long getPlid() {
948                    return _layout.getPlid();
949            }
950    
951            /**
952            * Returns the primary key of this layout.
953            *
954            * @return the primary key of this layout
955            */
956            @Override
957            public long getPrimaryKey() {
958                    return _layout.getPrimaryKey();
959            }
960    
961            @Override
962            public Serializable getPrimaryKeyObj() {
963                    return _layout.getPrimaryKeyObj();
964            }
965    
966            /**
967            * Returns the priority of this layout.
968            *
969            * @return the priority of this layout
970            */
971            @Override
972            public int getPriority() {
973                    return _layout.getPriority();
974            }
975    
976            /**
977            * Returns the private layout of this layout.
978            *
979            * @return the private layout of this layout
980            */
981            @Override
982            public boolean getPrivateLayout() {
983                    return _layout.getPrivateLayout();
984            }
985    
986            @Override
987            public java.lang.String getRegularURL(
988                    javax.servlet.http.HttpServletRequest request)
989                    throws com.liferay.portal.kernel.exception.PortalException {
990                    return _layout.getRegularURL(request);
991            }
992    
993            @Override
994            public java.lang.String getResetLayoutURL(
995                    javax.servlet.http.HttpServletRequest request)
996                    throws com.liferay.portal.kernel.exception.PortalException {
997                    return _layout.getResetLayoutURL(request);
998            }
999    
1000            @Override
1001            public java.lang.String getResetMaxStateURL(
1002                    javax.servlet.http.HttpServletRequest request)
1003                    throws com.liferay.portal.kernel.exception.PortalException {
1004                    return _layout.getResetMaxStateURL(request);
1005            }
1006    
1007            /**
1008            * Returns the robots of this layout.
1009            *
1010            * @return the robots of this layout
1011            */
1012            @Override
1013            public java.lang.String getRobots() {
1014                    return _layout.getRobots();
1015            }
1016    
1017            /**
1018            * Returns the localized robots of this layout in the language. Uses the default language if no localization exists for the requested language.
1019            *
1020            * @param languageId the ID of the language
1021            * @return the localized robots of this layout
1022            */
1023            @Override
1024            public java.lang.String getRobots(java.lang.String languageId) {
1025                    return _layout.getRobots(languageId);
1026            }
1027    
1028            /**
1029            * Returns the localized robots of this layout in the language, optionally using the default language if no localization exists for the requested language.
1030            *
1031            * @param languageId the ID of the language
1032            * @param useDefault whether to use the default language if no localization exists for the requested language
1033            * @return the localized robots of this layout
1034            */
1035            @Override
1036            public java.lang.String getRobots(java.lang.String languageId,
1037                    boolean useDefault) {
1038                    return _layout.getRobots(languageId, useDefault);
1039            }
1040    
1041            /**
1042            * Returns the localized robots of this layout in the language. Uses the default language if no localization exists for the requested language.
1043            *
1044            * @param locale the locale of the language
1045            * @return the localized robots of this layout
1046            */
1047            @Override
1048            public java.lang.String getRobots(java.util.Locale locale) {
1049                    return _layout.getRobots(locale);
1050            }
1051    
1052            /**
1053            * Returns the localized robots of this layout in the language, optionally using the default language if no localization exists for the requested language.
1054            *
1055            * @param locale the local of the language
1056            * @param useDefault whether to use the default language if no localization exists for the requested language
1057            * @return the localized robots of this layout. If <code>useDefault</code> is <code>false</code> and no localization exists for the requested language, an empty string will be returned.
1058            */
1059            @Override
1060            public java.lang.String getRobots(java.util.Locale locale,
1061                    boolean useDefault) {
1062                    return _layout.getRobots(locale, useDefault);
1063            }
1064    
1065            @Override
1066            public java.lang.String getRobotsCurrentLanguageId() {
1067                    return _layout.getRobotsCurrentLanguageId();
1068            }
1069    
1070            @Override
1071            public java.lang.String getRobotsCurrentValue() {
1072                    return _layout.getRobotsCurrentValue();
1073            }
1074    
1075            /**
1076            * Returns a map of the locales and localized robotses of this layout.
1077            *
1078            * @return the locales and localized robotses of this layout
1079            */
1080            @Override
1081            public Map<java.util.Locale, java.lang.String> getRobotsMap() {
1082                    return _layout.getRobotsMap();
1083            }
1084    
1085            @Override
1086            public com.liferay.portal.kernel.model.Group getScopeGroup()
1087                    throws com.liferay.portal.kernel.exception.PortalException {
1088                    return _layout.getScopeGroup();
1089            }
1090    
1091            /**
1092            * Returns the source prototype layout uuid of this layout.
1093            *
1094            * @return the source prototype layout uuid of this layout
1095            */
1096            @Override
1097            public java.lang.String getSourcePrototypeLayoutUuid() {
1098                    return _layout.getSourcePrototypeLayoutUuid();
1099            }
1100    
1101            @Override
1102            public java.lang.String getTarget() {
1103                    return _layout.getTarget();
1104            }
1105    
1106            /**
1107            * Returns the current layout's theme, or the layout set's theme if no
1108            * layout theme is configured.
1109            *
1110            * @return the current layout's theme, or the layout set's theme if no
1111            layout theme is configured
1112            */
1113            @Override
1114            public com.liferay.portal.kernel.model.Theme getTheme()
1115                    throws com.liferay.portal.kernel.exception.PortalException {
1116                    return _layout.getTheme();
1117            }
1118    
1119            /**
1120            * Returns the theme ID of this layout.
1121            *
1122            * @return the theme ID of this layout
1123            */
1124            @Override
1125            public java.lang.String getThemeId() {
1126                    return _layout.getThemeId();
1127            }
1128    
1129            @Override
1130            public java.lang.String getThemeSetting(java.lang.String key,
1131                    java.lang.String device) {
1132                    return _layout.getThemeSetting(key, device);
1133            }
1134    
1135            @Override
1136            public java.lang.String getThemeSetting(java.lang.String key,
1137                    java.lang.String device, boolean inheritLookAndFeel) {
1138                    return _layout.getThemeSetting(key, device, inheritLookAndFeel);
1139            }
1140    
1141            /**
1142            * Returns the title of this layout.
1143            *
1144            * @return the title of this layout
1145            */
1146            @Override
1147            public java.lang.String getTitle() {
1148                    return _layout.getTitle();
1149            }
1150    
1151            /**
1152            * Returns the localized title of this layout in the language. Uses the default language if no localization exists for the requested language.
1153            *
1154            * @param languageId the ID of the language
1155            * @return the localized title of this layout
1156            */
1157            @Override
1158            public java.lang.String getTitle(java.lang.String languageId) {
1159                    return _layout.getTitle(languageId);
1160            }
1161    
1162            /**
1163            * Returns the localized title of this layout in the language, optionally using the default language if no localization exists for the requested language.
1164            *
1165            * @param languageId the ID of the language
1166            * @param useDefault whether to use the default language if no localization exists for the requested language
1167            * @return the localized title of this layout
1168            */
1169            @Override
1170            public java.lang.String getTitle(java.lang.String languageId,
1171                    boolean useDefault) {
1172                    return _layout.getTitle(languageId, useDefault);
1173            }
1174    
1175            /**
1176            * Returns the localized title of this layout in the language. Uses the default language if no localization exists for the requested language.
1177            *
1178            * @param locale the locale of the language
1179            * @return the localized title of this layout
1180            */
1181            @Override
1182            public java.lang.String getTitle(java.util.Locale locale) {
1183                    return _layout.getTitle(locale);
1184            }
1185    
1186            /**
1187            * Returns the localized title of this layout in the language, optionally using the default language if no localization exists for the requested language.
1188            *
1189            * @param locale the local of the language
1190            * @param useDefault whether to use the default language if no localization exists for the requested language
1191            * @return the localized title of this layout. If <code>useDefault</code> is <code>false</code> and no localization exists for the requested language, an empty string will be returned.
1192            */
1193            @Override
1194            public java.lang.String getTitle(java.util.Locale locale, boolean useDefault) {
1195                    return _layout.getTitle(locale, useDefault);
1196            }
1197    
1198            @Override
1199            public java.lang.String getTitleCurrentLanguageId() {
1200                    return _layout.getTitleCurrentLanguageId();
1201            }
1202    
1203            @Override
1204            public java.lang.String getTitleCurrentValue() {
1205                    return _layout.getTitleCurrentValue();
1206            }
1207    
1208            /**
1209            * Returns a map of the locales and localized titles of this layout.
1210            *
1211            * @return the locales and localized titles of this layout
1212            */
1213            @Override
1214            public Map<java.util.Locale, java.lang.String> getTitleMap() {
1215                    return _layout.getTitleMap();
1216            }
1217    
1218            /**
1219            * Returns the type of this layout.
1220            *
1221            * @return the type of this layout
1222            */
1223            @Override
1224            public java.lang.String getType() {
1225                    return _layout.getType();
1226            }
1227    
1228            /**
1229            * Returns the type settings of this layout.
1230            *
1231            * @return the type settings of this layout
1232            */
1233            @Override
1234            public java.lang.String getTypeSettings() {
1235                    return _layout.getTypeSettings();
1236            }
1237    
1238            @Override
1239            public com.liferay.portal.kernel.util.UnicodeProperties getTypeSettingsProperties() {
1240                    return _layout.getTypeSettingsProperties();
1241            }
1242    
1243            @Override
1244            public java.lang.String getTypeSettingsProperty(java.lang.String key) {
1245                    return _layout.getTypeSettingsProperty(key);
1246            }
1247    
1248            @Override
1249            public java.lang.String getTypeSettingsProperty(java.lang.String key,
1250                    java.lang.String defaultValue) {
1251                    return _layout.getTypeSettingsProperty(key, defaultValue);
1252            }
1253    
1254            /**
1255            * Returns the user ID of this layout.
1256            *
1257            * @return the user ID of this layout
1258            */
1259            @Override
1260            public long getUserId() {
1261                    return _layout.getUserId();
1262            }
1263    
1264            /**
1265            * Returns the user name of this layout.
1266            *
1267            * @return the user name of this layout
1268            */
1269            @Override
1270            public java.lang.String getUserName() {
1271                    return _layout.getUserName();
1272            }
1273    
1274            /**
1275            * Returns the user uuid of this layout.
1276            *
1277            * @return the user uuid of this layout
1278            */
1279            @Override
1280            public java.lang.String getUserUuid() {
1281                    return _layout.getUserUuid();
1282            }
1283    
1284            /**
1285            * Returns the uuid of this layout.
1286            *
1287            * @return the uuid of this layout
1288            */
1289            @Override
1290            public java.lang.String getUuid() {
1291                    return _layout.getUuid();
1292            }
1293    
1294            /**
1295            * Returns <code>true</code> if the given layout ID matches one of the
1296            * current layout's hierarchical parents.
1297            *
1298            * @param layoutId the layout ID to search for in the current layout's
1299            parent list
1300            * @return <code>true</code> if the given layout ID matches one of the
1301            current layout's hierarchical parents; <code>false</code>
1302            otherwise
1303            */
1304            @Override
1305            public boolean hasAncestor(long layoutId)
1306                    throws com.liferay.portal.kernel.exception.PortalException {
1307                    return _layout.hasAncestor(layoutId);
1308            }
1309    
1310            /**
1311            * Returns <code>true</code> if the current layout has child layouts.
1312            *
1313            * @return <code>true</code> if the current layout has child layouts,
1314            <code>false</code> otherwise
1315            */
1316            @Override
1317            public boolean hasChildren() {
1318                    return _layout.hasChildren();
1319            }
1320    
1321            @Override
1322            public boolean hasScopeGroup()
1323                    throws com.liferay.portal.kernel.exception.PortalException {
1324                    return _layout.hasScopeGroup();
1325            }
1326    
1327            @Override
1328            public boolean hasSetModifiedDate() {
1329                    return _layout.hasSetModifiedDate();
1330            }
1331    
1332            @Override
1333            public int hashCode() {
1334                    return _layout.hashCode();
1335            }
1336    
1337            @Override
1338            public boolean includeLayoutContent(
1339                    javax.servlet.http.HttpServletRequest request,
1340                    javax.servlet.http.HttpServletResponse response)
1341                    throws java.lang.Exception {
1342                    return _layout.includeLayoutContent(request, response);
1343            }
1344    
1345            @Override
1346            public boolean isCachedModel() {
1347                    return _layout.isCachedModel();
1348            }
1349    
1350            @Override
1351            public boolean isChildSelected(boolean selectable,
1352                    com.liferay.portal.kernel.model.Layout layout)
1353                    throws com.liferay.portal.kernel.exception.PortalException {
1354                    return _layout.isChildSelected(selectable, layout);
1355            }
1356    
1357            /**
1358            * Returns <code>true</code> if the current layout can be used as a content
1359            * display page.
1360            *
1361            * <p>
1362            * A content display page must have an Asset Publisher portlet that is
1363            * configured as the default Asset Publisher for the layout.
1364            * </p>
1365            *
1366            * @return <code>true</code> if the current layout can be used as a content
1367            display page; <code>false</code> otherwise
1368            */
1369            @Override
1370            public boolean isContentDisplayPage() {
1371                    return _layout.isContentDisplayPage();
1372            }
1373    
1374            @Override
1375            public boolean isEscapedModel() {
1376                    return _layout.isEscapedModel();
1377            }
1378    
1379            /**
1380            * Returns <code>true</code> if the current layout is the first layout in
1381            * its parent's hierarchical list of children layouts.
1382            *
1383            * @return <code>true</code> if the current layout is the first layout in
1384            its parent's hierarchical list of children layouts;
1385            <code>false</code> otherwise
1386            */
1387            @Override
1388            public boolean isFirstChild() {
1389                    return _layout.isFirstChild();
1390            }
1391    
1392            /**
1393            * Returns <code>true</code> if the current layout is the topmost parent
1394            * layout.
1395            *
1396            * @return <code>true</code> if the current layout is the topmost parent
1397            layout; <code>false</code> otherwise
1398            */
1399            @Override
1400            public boolean isFirstParent() {
1401                    return _layout.isFirstParent();
1402            }
1403    
1404            /**
1405            * Returns <code>true</code> if this layout is hidden.
1406            *
1407            * @return <code>true</code> if this layout is hidden; <code>false</code> otherwise
1408            */
1409            @Override
1410            public boolean isHidden() {
1411                    return _layout.isHidden();
1412            }
1413    
1414            @Override
1415            public boolean isIconImage() {
1416                    return _layout.isIconImage();
1417            }
1418    
1419            /**
1420            * Returns <code>true</code> if the current layout utilizes its {@link
1421            * LayoutSet}'s look and feel options (e.g. theme and color scheme).
1422            *
1423            * @return <code>true</code> if the current layout utilizes its layout set's
1424            look and feel options; <code>false</code> otherwise
1425            */
1426            @Override
1427            public boolean isInheritLookAndFeel() {
1428                    return _layout.isInheritLookAndFeel();
1429            }
1430    
1431            /**
1432            * Returns <code>true</code> if the current layout is built from a layout
1433            * template and still maintains an active connection to it.
1434            *
1435            * @return <code>true</code> if the current layout is built from a layout
1436            template and still maintains an active connection to it;
1437            <code>false</code> otherwise
1438            */
1439            @Override
1440            public boolean isLayoutPrototypeLinkActive() {
1441                    return _layout.isLayoutPrototypeLinkActive();
1442            }
1443    
1444            /**
1445            * Returns <code>true</code> if this layout is layout prototype link enabled.
1446            *
1447            * @return <code>true</code> if this layout is layout prototype link enabled; <code>false</code> otherwise
1448            */
1449            @Override
1450            public boolean isLayoutPrototypeLinkEnabled() {
1451                    return _layout.isLayoutPrototypeLinkEnabled();
1452            }
1453    
1454            @Override
1455            public boolean isNew() {
1456                    return _layout.isNew();
1457            }
1458    
1459            @Override
1460            public boolean isPortletEmbedded(java.lang.String portletId, long groupId) {
1461                    return _layout.isPortletEmbedded(portletId, groupId);
1462            }
1463    
1464            /**
1465            * Returns <code>true</code> if this layout is private layout.
1466            *
1467            * @return <code>true</code> if this layout is private layout; <code>false</code> otherwise
1468            */
1469            @Override
1470            public boolean isPrivateLayout() {
1471                    return _layout.isPrivateLayout();
1472            }
1473    
1474            /**
1475            * Returns <code>true</code> if the current layout is part of the public
1476            * {@link LayoutSet}.
1477            *
1478            * <p>
1479            * Note, the returned value reflects the layout's default access options,
1480            * not its access permissions.
1481            * </p>
1482            *
1483            * @return <code>true</code> if the current layout is part of the public
1484            layout set; <code>false</code> otherwise
1485            */
1486            @Override
1487            public boolean isPublicLayout() {
1488                    return _layout.isPublicLayout();
1489            }
1490    
1491            /**
1492            * Returns <code>true</code> if the current layout is the root layout.
1493            *
1494            * @return <code>true</code> if the current layout is the root layout;
1495            <code>false</code> otherwise
1496            */
1497            @Override
1498            public boolean isRootLayout() {
1499                    return _layout.isRootLayout();
1500            }
1501    
1502            @Override
1503            public boolean isSelected(boolean selectable,
1504                    com.liferay.portal.kernel.model.Layout layout, long ancestorPlid) {
1505                    return _layout.isSelected(selectable, layout, ancestorPlid);
1506            }
1507    
1508            /**
1509            * Returns <code>true</code> if the current layout can hold embedded
1510            * portlets.
1511            *
1512            * @return <code>true</code> if the current layout can hold embedded
1513            portlets; <code>false</code> otherwise
1514            */
1515            @Override
1516            public boolean isSupportsEmbeddedPortlets() {
1517                    return _layout.isSupportsEmbeddedPortlets();
1518            }
1519    
1520            /**
1521            * @deprecated As of 7.0.0, with no direct replacement
1522            */
1523            @Deprecated
1524            @Override
1525            public boolean isTypeArticle() {
1526                    return _layout.isTypeArticle();
1527            }
1528    
1529            @Override
1530            public boolean isTypeControlPanel() {
1531                    return _layout.isTypeControlPanel();
1532            }
1533    
1534            @Override
1535            public boolean isTypeEmbedded() {
1536                    return _layout.isTypeEmbedded();
1537            }
1538    
1539            @Override
1540            public boolean isTypeLinkToLayout() {
1541                    return _layout.isTypeLinkToLayout();
1542            }
1543    
1544            @Override
1545            public boolean isTypePanel() {
1546                    return _layout.isTypePanel();
1547            }
1548    
1549            @Override
1550            public boolean isTypePortlet() {
1551                    return _layout.isTypePortlet();
1552            }
1553    
1554            @Override
1555            public boolean isTypeSharedPortlet() {
1556                    return _layout.isTypeSharedPortlet();
1557            }
1558    
1559            @Override
1560            public boolean isTypeURL() {
1561                    return _layout.isTypeURL();
1562            }
1563    
1564            @Override
1565            public boolean matches(javax.servlet.http.HttpServletRequest request,
1566                    java.lang.String friendlyURL) {
1567                    return _layout.matches(request, friendlyURL);
1568            }
1569    
1570            @Override
1571            public void persist() {
1572                    _layout.persist();
1573            }
1574    
1575            @Override
1576            public void prepareLocalizedFieldsForImport()
1577                    throws com.liferay.portal.kernel.exception.LocaleException {
1578                    _layout.prepareLocalizedFieldsForImport();
1579            }
1580    
1581            @Override
1582            public void prepareLocalizedFieldsForImport(
1583                    java.util.Locale defaultImportLocale)
1584                    throws com.liferay.portal.kernel.exception.LocaleException {
1585                    _layout.prepareLocalizedFieldsForImport(defaultImportLocale);
1586            }
1587    
1588            @Override
1589            public void setCachedModel(boolean cachedModel) {
1590                    _layout.setCachedModel(cachedModel);
1591            }
1592    
1593            /**
1594            * Sets the color scheme ID of this layout.
1595            *
1596            * @param colorSchemeId the color scheme ID of this layout
1597            */
1598            @Override
1599            public void setColorSchemeId(java.lang.String colorSchemeId) {
1600                    _layout.setColorSchemeId(colorSchemeId);
1601            }
1602    
1603            /**
1604            * Sets the company ID of this layout.
1605            *
1606            * @param companyId the company ID of this layout
1607            */
1608            @Override
1609            public void setCompanyId(long companyId) {
1610                    _layout.setCompanyId(companyId);
1611            }
1612    
1613            /**
1614            * Sets the create date of this layout.
1615            *
1616            * @param createDate the create date of this layout
1617            */
1618            @Override
1619            public void setCreateDate(Date createDate) {
1620                    _layout.setCreateDate(createDate);
1621            }
1622    
1623            /**
1624            * Sets the css of this layout.
1625            *
1626            * @param css the css of this layout
1627            */
1628            @Override
1629            public void setCss(java.lang.String css) {
1630                    _layout.setCss(css);
1631            }
1632    
1633            /**
1634            * Sets the description of this layout.
1635            *
1636            * @param description the description of this layout
1637            */
1638            @Override
1639            public void setDescription(java.lang.String description) {
1640                    _layout.setDescription(description);
1641            }
1642    
1643            /**
1644            * Sets the localized description of this layout in the language.
1645            *
1646            * @param description the localized description of this layout
1647            * @param locale the locale of the language
1648            */
1649            @Override
1650            public void setDescription(java.lang.String description,
1651                    java.util.Locale locale) {
1652                    _layout.setDescription(description, locale);
1653            }
1654    
1655            /**
1656            * Sets the localized description of this layout in the language, and sets the default locale.
1657            *
1658            * @param description the localized description of this layout
1659            * @param locale the locale of the language
1660            * @param defaultLocale the default locale
1661            */
1662            @Override
1663            public void setDescription(java.lang.String description,
1664                    java.util.Locale locale, java.util.Locale defaultLocale) {
1665                    _layout.setDescription(description, locale, defaultLocale);
1666            }
1667    
1668            @Override
1669            public void setDescriptionCurrentLanguageId(java.lang.String languageId) {
1670                    _layout.setDescriptionCurrentLanguageId(languageId);
1671            }
1672    
1673            /**
1674            * Sets the localized descriptions of this layout from the map of locales and localized descriptions.
1675            *
1676            * @param descriptionMap the locales and localized descriptions of this layout
1677            */
1678            @Override
1679            public void setDescriptionMap(
1680                    Map<java.util.Locale, java.lang.String> descriptionMap) {
1681                    _layout.setDescriptionMap(descriptionMap);
1682            }
1683    
1684            /**
1685            * Sets the localized descriptions of this layout from the map of locales and localized descriptions, and sets the default locale.
1686            *
1687            * @param descriptionMap the locales and localized descriptions of this layout
1688            * @param defaultLocale the default locale
1689            */
1690            @Override
1691            public void setDescriptionMap(
1692                    Map<java.util.Locale, java.lang.String> descriptionMap,
1693                    java.util.Locale defaultLocale) {
1694                    _layout.setDescriptionMap(descriptionMap, defaultLocale);
1695            }
1696    
1697            @Override
1698            public void setExpandoBridgeAttributes(BaseModel<?> baseModel) {
1699                    _layout.setExpandoBridgeAttributes(baseModel);
1700            }
1701    
1702            @Override
1703            public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge) {
1704                    _layout.setExpandoBridgeAttributes(expandoBridge);
1705            }
1706    
1707            @Override
1708            public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
1709                    _layout.setExpandoBridgeAttributes(serviceContext);
1710            }
1711    
1712            /**
1713            * Sets the friendly u r l of this layout.
1714            *
1715            * @param friendlyURL the friendly u r l of this layout
1716            */
1717            @Override
1718            public void setFriendlyURL(java.lang.String friendlyURL) {
1719                    _layout.setFriendlyURL(friendlyURL);
1720            }
1721    
1722            /**
1723            * Sets the group ID of this layout.
1724            *
1725            * @param groupId the group ID of this layout
1726            */
1727            @Override
1728            public void setGroupId(long groupId) {
1729                    _layout.setGroupId(groupId);
1730            }
1731    
1732            /**
1733            * Sets whether this layout is hidden.
1734            *
1735            * @param hidden the hidden of this layout
1736            */
1737            @Override
1738            public void setHidden(boolean hidden) {
1739                    _layout.setHidden(hidden);
1740            }
1741    
1742            /**
1743            * Sets the icon image ID of this layout.
1744            *
1745            * @param iconImageId the icon image ID of this layout
1746            */
1747            @Override
1748            public void setIconImageId(long iconImageId) {
1749                    _layout.setIconImageId(iconImageId);
1750            }
1751    
1752            /**
1753            * Sets the keywords of this layout.
1754            *
1755            * @param keywords the keywords of this layout
1756            */
1757            @Override
1758            public void setKeywords(java.lang.String keywords) {
1759                    _layout.setKeywords(keywords);
1760            }
1761    
1762            /**
1763            * Sets the localized keywords of this layout in the language.
1764            *
1765            * @param keywords the localized keywords of this layout
1766            * @param locale the locale of the language
1767            */
1768            @Override
1769            public void setKeywords(java.lang.String keywords, java.util.Locale locale) {
1770                    _layout.setKeywords(keywords, locale);
1771            }
1772    
1773            /**
1774            * Sets the localized keywords of this layout in the language, and sets the default locale.
1775            *
1776            * @param keywords the localized keywords of this layout
1777            * @param locale the locale of the language
1778            * @param defaultLocale the default locale
1779            */
1780            @Override
1781            public void setKeywords(java.lang.String keywords, java.util.Locale locale,
1782                    java.util.Locale defaultLocale) {
1783                    _layout.setKeywords(keywords, locale, defaultLocale);
1784            }
1785    
1786            @Override
1787            public void setKeywordsCurrentLanguageId(java.lang.String languageId) {
1788                    _layout.setKeywordsCurrentLanguageId(languageId);
1789            }
1790    
1791            /**
1792            * Sets the localized keywordses of this layout from the map of locales and localized keywordses.
1793            *
1794            * @param keywordsMap the locales and localized keywordses of this layout
1795            */
1796            @Override
1797            public void setKeywordsMap(
1798                    Map<java.util.Locale, java.lang.String> keywordsMap) {
1799                    _layout.setKeywordsMap(keywordsMap);
1800            }
1801    
1802            /**
1803            * Sets the localized keywordses of this layout from the map of locales and localized keywordses, and sets the default locale.
1804            *
1805            * @param keywordsMap the locales and localized keywordses of this layout
1806            * @param defaultLocale the default locale
1807            */
1808            @Override
1809            public void setKeywordsMap(
1810                    Map<java.util.Locale, java.lang.String> keywordsMap,
1811                    java.util.Locale defaultLocale) {
1812                    _layout.setKeywordsMap(keywordsMap, defaultLocale);
1813            }
1814    
1815            /**
1816            * Sets the last publish date of this layout.
1817            *
1818            * @param lastPublishDate the last publish date of this layout
1819            */
1820            @Override
1821            public void setLastPublishDate(Date lastPublishDate) {
1822                    _layout.setLastPublishDate(lastPublishDate);
1823            }
1824    
1825            /**
1826            * Sets the layout ID of this layout.
1827            *
1828            * @param layoutId the layout ID of this layout
1829            */
1830            @Override
1831            public void setLayoutId(long layoutId) {
1832                    _layout.setLayoutId(layoutId);
1833            }
1834    
1835            /**
1836            * Sets whether this layout is layout prototype link enabled.
1837            *
1838            * @param layoutPrototypeLinkEnabled the layout prototype link enabled of this layout
1839            */
1840            @Override
1841            public void setLayoutPrototypeLinkEnabled(
1842                    boolean layoutPrototypeLinkEnabled) {
1843                    _layout.setLayoutPrototypeLinkEnabled(layoutPrototypeLinkEnabled);
1844            }
1845    
1846            /**
1847            * Sets the layout prototype uuid of this layout.
1848            *
1849            * @param layoutPrototypeUuid the layout prototype uuid of this layout
1850            */
1851            @Override
1852            public void setLayoutPrototypeUuid(java.lang.String layoutPrototypeUuid) {
1853                    _layout.setLayoutPrototypeUuid(layoutPrototypeUuid);
1854            }
1855    
1856            @Override
1857            public void setLayoutSet(
1858                    com.liferay.portal.kernel.model.LayoutSet layoutSet) {
1859                    _layout.setLayoutSet(layoutSet);
1860            }
1861    
1862            /**
1863            * Sets the modified date of this layout.
1864            *
1865            * @param modifiedDate the modified date of this layout
1866            */
1867            @Override
1868            public void setModifiedDate(Date modifiedDate) {
1869                    _layout.setModifiedDate(modifiedDate);
1870            }
1871    
1872            /**
1873            * Sets the mvcc version of this layout.
1874            *
1875            * @param mvccVersion the mvcc version of this layout
1876            */
1877            @Override
1878            public void setMvccVersion(long mvccVersion) {
1879                    _layout.setMvccVersion(mvccVersion);
1880            }
1881    
1882            /**
1883            * Sets the name of this layout.
1884            *
1885            * @param name the name of this layout
1886            */
1887            @Override
1888            public void setName(java.lang.String name) {
1889                    _layout.setName(name);
1890            }
1891    
1892            /**
1893            * Sets the localized name of this layout in the language.
1894            *
1895            * @param name the localized name of this layout
1896            * @param locale the locale of the language
1897            */
1898            @Override
1899            public void setName(java.lang.String name, java.util.Locale locale) {
1900                    _layout.setName(name, locale);
1901            }
1902    
1903            /**
1904            * Sets the localized name of this layout in the language, and sets the default locale.
1905            *
1906            * @param name the localized name of this layout
1907            * @param locale the locale of the language
1908            * @param defaultLocale the default locale
1909            */
1910            @Override
1911            public void setName(java.lang.String name, java.util.Locale locale,
1912                    java.util.Locale defaultLocale) {
1913                    _layout.setName(name, locale, defaultLocale);
1914            }
1915    
1916            @Override
1917            public void setNameCurrentLanguageId(java.lang.String languageId) {
1918                    _layout.setNameCurrentLanguageId(languageId);
1919            }
1920    
1921            /**
1922            * Sets the localized names of this layout from the map of locales and localized names.
1923            *
1924            * @param nameMap the locales and localized names of this layout
1925            */
1926            @Override
1927            public void setNameMap(Map<java.util.Locale, java.lang.String> nameMap) {
1928                    _layout.setNameMap(nameMap);
1929            }
1930    
1931            /**
1932            * Sets the localized names of this layout from the map of locales and localized names, and sets the default locale.
1933            *
1934            * @param nameMap the locales and localized names of this layout
1935            * @param defaultLocale the default locale
1936            */
1937            @Override
1938            public void setNameMap(Map<java.util.Locale, java.lang.String> nameMap,
1939                    java.util.Locale defaultLocale) {
1940                    _layout.setNameMap(nameMap, defaultLocale);
1941            }
1942    
1943            @Override
1944            public void setNew(boolean n) {
1945                    _layout.setNew(n);
1946            }
1947    
1948            /**
1949            * Sets the parent layout ID of this layout.
1950            *
1951            * @param parentLayoutId the parent layout ID of this layout
1952            */
1953            @Override
1954            public void setParentLayoutId(long parentLayoutId) {
1955                    _layout.setParentLayoutId(parentLayoutId);
1956            }
1957    
1958            /**
1959            * Sets the plid of this layout.
1960            *
1961            * @param plid the plid of this layout
1962            */
1963            @Override
1964            public void setPlid(long plid) {
1965                    _layout.setPlid(plid);
1966            }
1967    
1968            /**
1969            * Sets the primary key of this layout.
1970            *
1971            * @param primaryKey the primary key of this layout
1972            */
1973            @Override
1974            public void setPrimaryKey(long primaryKey) {
1975                    _layout.setPrimaryKey(primaryKey);
1976            }
1977    
1978            @Override
1979            public void setPrimaryKeyObj(Serializable primaryKeyObj) {
1980                    _layout.setPrimaryKeyObj(primaryKeyObj);
1981            }
1982    
1983            /**
1984            * Sets the priority of this layout.
1985            *
1986            * @param priority the priority of this layout
1987            */
1988            @Override
1989            public void setPriority(int priority) {
1990                    _layout.setPriority(priority);
1991            }
1992    
1993            /**
1994            * Sets whether this layout is private layout.
1995            *
1996            * @param privateLayout the private layout of this layout
1997            */
1998            @Override
1999            public void setPrivateLayout(boolean privateLayout) {
2000                    _layout.setPrivateLayout(privateLayout);
2001            }
2002    
2003            /**
2004            * Sets the robots of this layout.
2005            *
2006            * @param robots the robots of this layout
2007            */
2008            @Override
2009            public void setRobots(java.lang.String robots) {
2010                    _layout.setRobots(robots);
2011            }
2012    
2013            /**
2014            * Sets the localized robots of this layout in the language.
2015            *
2016            * @param robots the localized robots of this layout
2017            * @param locale the locale of the language
2018            */
2019            @Override
2020            public void setRobots(java.lang.String robots, java.util.Locale locale) {
2021                    _layout.setRobots(robots, locale);
2022            }
2023    
2024            /**
2025            * Sets the localized robots of this layout in the language, and sets the default locale.
2026            *
2027            * @param robots the localized robots of this layout
2028            * @param locale the locale of the language
2029            * @param defaultLocale the default locale
2030            */
2031            @Override
2032            public void setRobots(java.lang.String robots, java.util.Locale locale,
2033                    java.util.Locale defaultLocale) {
2034                    _layout.setRobots(robots, locale, defaultLocale);
2035            }
2036    
2037            @Override
2038            public void setRobotsCurrentLanguageId(java.lang.String languageId) {
2039                    _layout.setRobotsCurrentLanguageId(languageId);
2040            }
2041    
2042            /**
2043            * Sets the localized robotses of this layout from the map of locales and localized robotses.
2044            *
2045            * @param robotsMap the locales and localized robotses of this layout
2046            */
2047            @Override
2048            public void setRobotsMap(Map<java.util.Locale, java.lang.String> robotsMap) {
2049                    _layout.setRobotsMap(robotsMap);
2050            }
2051    
2052            /**
2053            * Sets the localized robotses of this layout from the map of locales and localized robotses, and sets the default locale.
2054            *
2055            * @param robotsMap the locales and localized robotses of this layout
2056            * @param defaultLocale the default locale
2057            */
2058            @Override
2059            public void setRobotsMap(
2060                    Map<java.util.Locale, java.lang.String> robotsMap,
2061                    java.util.Locale defaultLocale) {
2062                    _layout.setRobotsMap(robotsMap, defaultLocale);
2063            }
2064    
2065            /**
2066            * Sets the source prototype layout uuid of this layout.
2067            *
2068            * @param sourcePrototypeLayoutUuid the source prototype layout uuid of this layout
2069            */
2070            @Override
2071            public void setSourcePrototypeLayoutUuid(
2072                    java.lang.String sourcePrototypeLayoutUuid) {
2073                    _layout.setSourcePrototypeLayoutUuid(sourcePrototypeLayoutUuid);
2074            }
2075    
2076            /**
2077            * Sets the theme ID of this layout.
2078            *
2079            * @param themeId the theme ID of this layout
2080            */
2081            @Override
2082            public void setThemeId(java.lang.String themeId) {
2083                    _layout.setThemeId(themeId);
2084            }
2085    
2086            /**
2087            * Sets the title of this layout.
2088            *
2089            * @param title the title of this layout
2090            */
2091            @Override
2092            public void setTitle(java.lang.String title) {
2093                    _layout.setTitle(title);
2094            }
2095    
2096            /**
2097            * Sets the localized title of this layout in the language.
2098            *
2099            * @param title the localized title of this layout
2100            * @param locale the locale of the language
2101            */
2102            @Override
2103            public void setTitle(java.lang.String title, java.util.Locale locale) {
2104                    _layout.setTitle(title, locale);
2105            }
2106    
2107            /**
2108            * Sets the localized title of this layout in the language, and sets the default locale.
2109            *
2110            * @param title the localized title of this layout
2111            * @param locale the locale of the language
2112            * @param defaultLocale the default locale
2113            */
2114            @Override
2115            public void setTitle(java.lang.String title, java.util.Locale locale,
2116                    java.util.Locale defaultLocale) {
2117                    _layout.setTitle(title, locale, defaultLocale);
2118            }
2119    
2120            @Override
2121            public void setTitleCurrentLanguageId(java.lang.String languageId) {
2122                    _layout.setTitleCurrentLanguageId(languageId);
2123            }
2124    
2125            /**
2126            * Sets the localized titles of this layout from the map of locales and localized titles.
2127            *
2128            * @param titleMap the locales and localized titles of this layout
2129            */
2130            @Override
2131            public void setTitleMap(Map<java.util.Locale, java.lang.String> titleMap) {
2132                    _layout.setTitleMap(titleMap);
2133            }
2134    
2135            /**
2136            * Sets the localized titles of this layout from the map of locales and localized titles, and sets the default locale.
2137            *
2138            * @param titleMap the locales and localized titles of this layout
2139            * @param defaultLocale the default locale
2140            */
2141            @Override
2142            public void setTitleMap(Map<java.util.Locale, java.lang.String> titleMap,
2143                    java.util.Locale defaultLocale) {
2144                    _layout.setTitleMap(titleMap, defaultLocale);
2145            }
2146    
2147            /**
2148            * Sets the type of this layout.
2149            *
2150            * @param type the type of this layout
2151            */
2152            @Override
2153            public void setType(java.lang.String type) {
2154                    _layout.setType(type);
2155            }
2156    
2157            /**
2158            * Sets the type settings of this layout.
2159            *
2160            * @param typeSettings the type settings of this layout
2161            */
2162            @Override
2163            public void setTypeSettings(java.lang.String typeSettings) {
2164                    _layout.setTypeSettings(typeSettings);
2165            }
2166    
2167            @Override
2168            public void setTypeSettingsProperties(
2169                    com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties) {
2170                    _layout.setTypeSettingsProperties(typeSettingsProperties);
2171            }
2172    
2173            /**
2174            * Sets the user ID of this layout.
2175            *
2176            * @param userId the user ID of this layout
2177            */
2178            @Override
2179            public void setUserId(long userId) {
2180                    _layout.setUserId(userId);
2181            }
2182    
2183            /**
2184            * Sets the user name of this layout.
2185            *
2186            * @param userName the user name of this layout
2187            */
2188            @Override
2189            public void setUserName(java.lang.String userName) {
2190                    _layout.setUserName(userName);
2191            }
2192    
2193            /**
2194            * Sets the user uuid of this layout.
2195            *
2196            * @param userUuid the user uuid of this layout
2197            */
2198            @Override
2199            public void setUserUuid(java.lang.String userUuid) {
2200                    _layout.setUserUuid(userUuid);
2201            }
2202    
2203            /**
2204            * Sets the uuid of this layout.
2205            *
2206            * @param uuid the uuid of this layout
2207            */
2208            @Override
2209            public void setUuid(java.lang.String uuid) {
2210                    _layout.setUuid(uuid);
2211            }
2212    
2213            @Override
2214            public CacheModel<com.liferay.portal.kernel.model.Layout> toCacheModel() {
2215                    return _layout.toCacheModel();
2216            }
2217    
2218            @Override
2219            public com.liferay.portal.kernel.model.Layout toEscapedModel() {
2220                    return new LayoutWrapper(_layout.toEscapedModel());
2221            }
2222    
2223            @Override
2224            public java.lang.String toString() {
2225                    return _layout.toString();
2226            }
2227    
2228            @Override
2229            public com.liferay.portal.kernel.model.Layout toUnescapedModel() {
2230                    return new LayoutWrapper(_layout.toUnescapedModel());
2231            }
2232    
2233            @Override
2234            public java.lang.String toXmlString() {
2235                    return _layout.toXmlString();
2236            }
2237    
2238            @Override
2239            public boolean equals(Object obj) {
2240                    if (this == obj) {
2241                            return true;
2242                    }
2243    
2244                    if (!(obj instanceof LayoutWrapper)) {
2245                            return false;
2246                    }
2247    
2248                    LayoutWrapper layoutWrapper = (LayoutWrapper)obj;
2249    
2250                    if (Validator.equals(_layout, layoutWrapper._layout)) {
2251                            return true;
2252                    }
2253    
2254                    return false;
2255            }
2256    
2257            @Override
2258            public StagedModelType getStagedModelType() {
2259                    return _layout.getStagedModelType();
2260            }
2261    
2262            @Override
2263            public Layout getWrappedModel() {
2264                    return _layout;
2265            }
2266    
2267            @Override
2268            public boolean isEntityCacheEnabled() {
2269                    return _layout.isEntityCacheEnabled();
2270            }
2271    
2272            @Override
2273            public boolean isFinderCacheEnabled() {
2274                    return _layout.isFinderCacheEnabled();
2275            }
2276    
2277            @Override
2278            public void resetOriginalValues() {
2279                    _layout.resetOriginalValues();
2280            }
2281    
2282            private final Layout _layout;
2283    }