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 isCustomizable() {
1376                    return _layout.isCustomizable();
1377            }
1378    
1379            @Override
1380            public boolean isEscapedModel() {
1381                    return _layout.isEscapedModel();
1382            }
1383    
1384            /**
1385            * Returns <code>true</code> if the current layout is the first layout in
1386            * its parent's hierarchical list of children layouts.
1387            *
1388            * @return <code>true</code> if the current layout is the first layout in
1389            its parent's hierarchical list of children layouts;
1390            <code>false</code> otherwise
1391            */
1392            @Override
1393            public boolean isFirstChild() {
1394                    return _layout.isFirstChild();
1395            }
1396    
1397            /**
1398            * Returns <code>true</code> if the current layout is the topmost parent
1399            * layout.
1400            *
1401            * @return <code>true</code> if the current layout is the topmost parent
1402            layout; <code>false</code> otherwise
1403            */
1404            @Override
1405            public boolean isFirstParent() {
1406                    return _layout.isFirstParent();
1407            }
1408    
1409            /**
1410            * Returns <code>true</code> if this layout is hidden.
1411            *
1412            * @return <code>true</code> if this layout is hidden; <code>false</code> otherwise
1413            */
1414            @Override
1415            public boolean isHidden() {
1416                    return _layout.isHidden();
1417            }
1418    
1419            @Override
1420            public boolean isIconImage() {
1421                    return _layout.isIconImage();
1422            }
1423    
1424            /**
1425            * Returns <code>true</code> if the current layout utilizes its {@link
1426            * LayoutSet}'s look and feel options (e.g. theme and color scheme).
1427            *
1428            * @return <code>true</code> if the current layout utilizes its layout set's
1429            look and feel options; <code>false</code> otherwise
1430            */
1431            @Override
1432            public boolean isInheritLookAndFeel() {
1433                    return _layout.isInheritLookAndFeel();
1434            }
1435    
1436            /**
1437            * Returns <code>true</code> if the current layout is built from a layout
1438            * template and still maintains an active connection to it.
1439            *
1440            * @return <code>true</code> if the current layout is built from a layout
1441            template and still maintains an active connection to it;
1442            <code>false</code> otherwise
1443            */
1444            @Override
1445            public boolean isLayoutPrototypeLinkActive() {
1446                    return _layout.isLayoutPrototypeLinkActive();
1447            }
1448    
1449            /**
1450            * Returns <code>true</code> if this layout is layout prototype link enabled.
1451            *
1452            * @return <code>true</code> if this layout is layout prototype link enabled; <code>false</code> otherwise
1453            */
1454            @Override
1455            public boolean isLayoutPrototypeLinkEnabled() {
1456                    return _layout.isLayoutPrototypeLinkEnabled();
1457            }
1458    
1459            @Override
1460            public boolean isNew() {
1461                    return _layout.isNew();
1462            }
1463    
1464            @Override
1465            public boolean isPortletEmbedded(java.lang.String portletId, long groupId) {
1466                    return _layout.isPortletEmbedded(portletId, groupId);
1467            }
1468    
1469            /**
1470            * Returns <code>true</code> if this layout is private layout.
1471            *
1472            * @return <code>true</code> if this layout is private layout; <code>false</code> otherwise
1473            */
1474            @Override
1475            public boolean isPrivateLayout() {
1476                    return _layout.isPrivateLayout();
1477            }
1478    
1479            /**
1480            * Returns <code>true</code> if the current layout is part of the public
1481            * {@link LayoutSet}.
1482            *
1483            * <p>
1484            * Note, the returned value reflects the layout's default access options,
1485            * not its access permissions.
1486            * </p>
1487            *
1488            * @return <code>true</code> if the current layout is part of the public
1489            layout set; <code>false</code> otherwise
1490            */
1491            @Override
1492            public boolean isPublicLayout() {
1493                    return _layout.isPublicLayout();
1494            }
1495    
1496            /**
1497            * Returns <code>true</code> if the current layout is the root layout.
1498            *
1499            * @return <code>true</code> if the current layout is the root layout;
1500            <code>false</code> otherwise
1501            */
1502            @Override
1503            public boolean isRootLayout() {
1504                    return _layout.isRootLayout();
1505            }
1506    
1507            @Override
1508            public boolean isSelected(boolean selectable,
1509                    com.liferay.portal.kernel.model.Layout layout, long ancestorPlid) {
1510                    return _layout.isSelected(selectable, layout, ancestorPlid);
1511            }
1512    
1513            /**
1514            * Returns <code>true</code> if the current layout can hold embedded
1515            * portlets.
1516            *
1517            * @return <code>true</code> if the current layout can hold embedded
1518            portlets; <code>false</code> otherwise
1519            */
1520            @Override
1521            public boolean isSupportsEmbeddedPortlets() {
1522                    return _layout.isSupportsEmbeddedPortlets();
1523            }
1524    
1525            /**
1526            * @deprecated As of 7.0.0, with no direct replacement
1527            */
1528            @Deprecated
1529            @Override
1530            public boolean isTypeArticle() {
1531                    return _layout.isTypeArticle();
1532            }
1533    
1534            @Override
1535            public boolean isTypeControlPanel() {
1536                    return _layout.isTypeControlPanel();
1537            }
1538    
1539            @Override
1540            public boolean isTypeEmbedded() {
1541                    return _layout.isTypeEmbedded();
1542            }
1543    
1544            @Override
1545            public boolean isTypeLinkToLayout() {
1546                    return _layout.isTypeLinkToLayout();
1547            }
1548    
1549            @Override
1550            public boolean isTypePanel() {
1551                    return _layout.isTypePanel();
1552            }
1553    
1554            @Override
1555            public boolean isTypePortlet() {
1556                    return _layout.isTypePortlet();
1557            }
1558    
1559            @Override
1560            public boolean isTypeSharedPortlet() {
1561                    return _layout.isTypeSharedPortlet();
1562            }
1563    
1564            @Override
1565            public boolean isTypeURL() {
1566                    return _layout.isTypeURL();
1567            }
1568    
1569            @Override
1570            public boolean matches(javax.servlet.http.HttpServletRequest request,
1571                    java.lang.String friendlyURL) {
1572                    return _layout.matches(request, friendlyURL);
1573            }
1574    
1575            @Override
1576            public void persist() {
1577                    _layout.persist();
1578            }
1579    
1580            @Override
1581            public void prepareLocalizedFieldsForImport()
1582                    throws com.liferay.portal.kernel.exception.LocaleException {
1583                    _layout.prepareLocalizedFieldsForImport();
1584            }
1585    
1586            @Override
1587            public void prepareLocalizedFieldsForImport(
1588                    java.util.Locale defaultImportLocale)
1589                    throws com.liferay.portal.kernel.exception.LocaleException {
1590                    _layout.prepareLocalizedFieldsForImport(defaultImportLocale);
1591            }
1592    
1593            @Override
1594            public void setCachedModel(boolean cachedModel) {
1595                    _layout.setCachedModel(cachedModel);
1596            }
1597    
1598            /**
1599            * Sets the color scheme ID of this layout.
1600            *
1601            * @param colorSchemeId the color scheme ID of this layout
1602            */
1603            @Override
1604            public void setColorSchemeId(java.lang.String colorSchemeId) {
1605                    _layout.setColorSchemeId(colorSchemeId);
1606            }
1607    
1608            /**
1609            * Sets the company ID of this layout.
1610            *
1611            * @param companyId the company ID of this layout
1612            */
1613            @Override
1614            public void setCompanyId(long companyId) {
1615                    _layout.setCompanyId(companyId);
1616            }
1617    
1618            /**
1619            * Sets the create date of this layout.
1620            *
1621            * @param createDate the create date of this layout
1622            */
1623            @Override
1624            public void setCreateDate(Date createDate) {
1625                    _layout.setCreateDate(createDate);
1626            }
1627    
1628            /**
1629            * Sets the css of this layout.
1630            *
1631            * @param css the css of this layout
1632            */
1633            @Override
1634            public void setCss(java.lang.String css) {
1635                    _layout.setCss(css);
1636            }
1637    
1638            /**
1639            * Sets the description of this layout.
1640            *
1641            * @param description the description of this layout
1642            */
1643            @Override
1644            public void setDescription(java.lang.String description) {
1645                    _layout.setDescription(description);
1646            }
1647    
1648            /**
1649            * Sets the localized description of this layout in the language.
1650            *
1651            * @param description the localized description of this layout
1652            * @param locale the locale of the language
1653            */
1654            @Override
1655            public void setDescription(java.lang.String description,
1656                    java.util.Locale locale) {
1657                    _layout.setDescription(description, locale);
1658            }
1659    
1660            /**
1661            * Sets the localized description of this layout in the language, and sets the default locale.
1662            *
1663            * @param description the localized description of this layout
1664            * @param locale the locale of the language
1665            * @param defaultLocale the default locale
1666            */
1667            @Override
1668            public void setDescription(java.lang.String description,
1669                    java.util.Locale locale, java.util.Locale defaultLocale) {
1670                    _layout.setDescription(description, locale, defaultLocale);
1671            }
1672    
1673            @Override
1674            public void setDescriptionCurrentLanguageId(java.lang.String languageId) {
1675                    _layout.setDescriptionCurrentLanguageId(languageId);
1676            }
1677    
1678            /**
1679            * Sets the localized descriptions of this layout from the map of locales and localized descriptions.
1680            *
1681            * @param descriptionMap the locales and localized descriptions of this layout
1682            */
1683            @Override
1684            public void setDescriptionMap(
1685                    Map<java.util.Locale, java.lang.String> descriptionMap) {
1686                    _layout.setDescriptionMap(descriptionMap);
1687            }
1688    
1689            /**
1690            * Sets the localized descriptions of this layout from the map of locales and localized descriptions, and sets the default locale.
1691            *
1692            * @param descriptionMap the locales and localized descriptions of this layout
1693            * @param defaultLocale the default locale
1694            */
1695            @Override
1696            public void setDescriptionMap(
1697                    Map<java.util.Locale, java.lang.String> descriptionMap,
1698                    java.util.Locale defaultLocale) {
1699                    _layout.setDescriptionMap(descriptionMap, defaultLocale);
1700            }
1701    
1702            @Override
1703            public void setExpandoBridgeAttributes(BaseModel<?> baseModel) {
1704                    _layout.setExpandoBridgeAttributes(baseModel);
1705            }
1706    
1707            @Override
1708            public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge) {
1709                    _layout.setExpandoBridgeAttributes(expandoBridge);
1710            }
1711    
1712            @Override
1713            public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
1714                    _layout.setExpandoBridgeAttributes(serviceContext);
1715            }
1716    
1717            /**
1718            * Sets the friendly u r l of this layout.
1719            *
1720            * @param friendlyURL the friendly u r l of this layout
1721            */
1722            @Override
1723            public void setFriendlyURL(java.lang.String friendlyURL) {
1724                    _layout.setFriendlyURL(friendlyURL);
1725            }
1726    
1727            /**
1728            * Sets the group ID of this layout.
1729            *
1730            * @param groupId the group ID of this layout
1731            */
1732            @Override
1733            public void setGroupId(long groupId) {
1734                    _layout.setGroupId(groupId);
1735            }
1736    
1737            /**
1738            * Sets whether this layout is hidden.
1739            *
1740            * @param hidden the hidden of this layout
1741            */
1742            @Override
1743            public void setHidden(boolean hidden) {
1744                    _layout.setHidden(hidden);
1745            }
1746    
1747            /**
1748            * Sets the icon image ID of this layout.
1749            *
1750            * @param iconImageId the icon image ID of this layout
1751            */
1752            @Override
1753            public void setIconImageId(long iconImageId) {
1754                    _layout.setIconImageId(iconImageId);
1755            }
1756    
1757            /**
1758            * Sets the keywords of this layout.
1759            *
1760            * @param keywords the keywords of this layout
1761            */
1762            @Override
1763            public void setKeywords(java.lang.String keywords) {
1764                    _layout.setKeywords(keywords);
1765            }
1766    
1767            /**
1768            * Sets the localized keywords of this layout in the language.
1769            *
1770            * @param keywords the localized keywords of this layout
1771            * @param locale the locale of the language
1772            */
1773            @Override
1774            public void setKeywords(java.lang.String keywords, java.util.Locale locale) {
1775                    _layout.setKeywords(keywords, locale);
1776            }
1777    
1778            /**
1779            * Sets the localized keywords of this layout in the language, and sets the default locale.
1780            *
1781            * @param keywords the localized keywords of this layout
1782            * @param locale the locale of the language
1783            * @param defaultLocale the default locale
1784            */
1785            @Override
1786            public void setKeywords(java.lang.String keywords, java.util.Locale locale,
1787                    java.util.Locale defaultLocale) {
1788                    _layout.setKeywords(keywords, locale, defaultLocale);
1789            }
1790    
1791            @Override
1792            public void setKeywordsCurrentLanguageId(java.lang.String languageId) {
1793                    _layout.setKeywordsCurrentLanguageId(languageId);
1794            }
1795    
1796            /**
1797            * Sets the localized keywordses of this layout from the map of locales and localized keywordses.
1798            *
1799            * @param keywordsMap the locales and localized keywordses of this layout
1800            */
1801            @Override
1802            public void setKeywordsMap(
1803                    Map<java.util.Locale, java.lang.String> keywordsMap) {
1804                    _layout.setKeywordsMap(keywordsMap);
1805            }
1806    
1807            /**
1808            * Sets the localized keywordses of this layout from the map of locales and localized keywordses, and sets the default locale.
1809            *
1810            * @param keywordsMap the locales and localized keywordses of this layout
1811            * @param defaultLocale the default locale
1812            */
1813            @Override
1814            public void setKeywordsMap(
1815                    Map<java.util.Locale, java.lang.String> keywordsMap,
1816                    java.util.Locale defaultLocale) {
1817                    _layout.setKeywordsMap(keywordsMap, defaultLocale);
1818            }
1819    
1820            /**
1821            * Sets the last publish date of this layout.
1822            *
1823            * @param lastPublishDate the last publish date of this layout
1824            */
1825            @Override
1826            public void setLastPublishDate(Date lastPublishDate) {
1827                    _layout.setLastPublishDate(lastPublishDate);
1828            }
1829    
1830            /**
1831            * Sets the layout ID of this layout.
1832            *
1833            * @param layoutId the layout ID of this layout
1834            */
1835            @Override
1836            public void setLayoutId(long layoutId) {
1837                    _layout.setLayoutId(layoutId);
1838            }
1839    
1840            /**
1841            * Sets whether this layout is layout prototype link enabled.
1842            *
1843            * @param layoutPrototypeLinkEnabled the layout prototype link enabled of this layout
1844            */
1845            @Override
1846            public void setLayoutPrototypeLinkEnabled(
1847                    boolean layoutPrototypeLinkEnabled) {
1848                    _layout.setLayoutPrototypeLinkEnabled(layoutPrototypeLinkEnabled);
1849            }
1850    
1851            /**
1852            * Sets the layout prototype uuid of this layout.
1853            *
1854            * @param layoutPrototypeUuid the layout prototype uuid of this layout
1855            */
1856            @Override
1857            public void setLayoutPrototypeUuid(java.lang.String layoutPrototypeUuid) {
1858                    _layout.setLayoutPrototypeUuid(layoutPrototypeUuid);
1859            }
1860    
1861            @Override
1862            public void setLayoutSet(
1863                    com.liferay.portal.kernel.model.LayoutSet layoutSet) {
1864                    _layout.setLayoutSet(layoutSet);
1865            }
1866    
1867            /**
1868            * Sets the modified date of this layout.
1869            *
1870            * @param modifiedDate the modified date of this layout
1871            */
1872            @Override
1873            public void setModifiedDate(Date modifiedDate) {
1874                    _layout.setModifiedDate(modifiedDate);
1875            }
1876    
1877            /**
1878            * Sets the mvcc version of this layout.
1879            *
1880            * @param mvccVersion the mvcc version of this layout
1881            */
1882            @Override
1883            public void setMvccVersion(long mvccVersion) {
1884                    _layout.setMvccVersion(mvccVersion);
1885            }
1886    
1887            /**
1888            * Sets the name of this layout.
1889            *
1890            * @param name the name of this layout
1891            */
1892            @Override
1893            public void setName(java.lang.String name) {
1894                    _layout.setName(name);
1895            }
1896    
1897            /**
1898            * Sets the localized name of this layout in the language.
1899            *
1900            * @param name the localized name of this layout
1901            * @param locale the locale of the language
1902            */
1903            @Override
1904            public void setName(java.lang.String name, java.util.Locale locale) {
1905                    _layout.setName(name, locale);
1906            }
1907    
1908            /**
1909            * Sets the localized name of this layout in the language, and sets the default locale.
1910            *
1911            * @param name the localized name of this layout
1912            * @param locale the locale of the language
1913            * @param defaultLocale the default locale
1914            */
1915            @Override
1916            public void setName(java.lang.String name, java.util.Locale locale,
1917                    java.util.Locale defaultLocale) {
1918                    _layout.setName(name, locale, defaultLocale);
1919            }
1920    
1921            @Override
1922            public void setNameCurrentLanguageId(java.lang.String languageId) {
1923                    _layout.setNameCurrentLanguageId(languageId);
1924            }
1925    
1926            /**
1927            * Sets the localized names of this layout from the map of locales and localized names.
1928            *
1929            * @param nameMap the locales and localized names of this layout
1930            */
1931            @Override
1932            public void setNameMap(Map<java.util.Locale, java.lang.String> nameMap) {
1933                    _layout.setNameMap(nameMap);
1934            }
1935    
1936            /**
1937            * Sets the localized names of this layout from the map of locales and localized names, and sets the default locale.
1938            *
1939            * @param nameMap the locales and localized names of this layout
1940            * @param defaultLocale the default locale
1941            */
1942            @Override
1943            public void setNameMap(Map<java.util.Locale, java.lang.String> nameMap,
1944                    java.util.Locale defaultLocale) {
1945                    _layout.setNameMap(nameMap, defaultLocale);
1946            }
1947    
1948            @Override
1949            public void setNew(boolean n) {
1950                    _layout.setNew(n);
1951            }
1952    
1953            /**
1954            * Sets the parent layout ID of this layout.
1955            *
1956            * @param parentLayoutId the parent layout ID of this layout
1957            */
1958            @Override
1959            public void setParentLayoutId(long parentLayoutId) {
1960                    _layout.setParentLayoutId(parentLayoutId);
1961            }
1962    
1963            /**
1964            * Sets the plid of this layout.
1965            *
1966            * @param plid the plid of this layout
1967            */
1968            @Override
1969            public void setPlid(long plid) {
1970                    _layout.setPlid(plid);
1971            }
1972    
1973            /**
1974            * Sets the primary key of this layout.
1975            *
1976            * @param primaryKey the primary key of this layout
1977            */
1978            @Override
1979            public void setPrimaryKey(long primaryKey) {
1980                    _layout.setPrimaryKey(primaryKey);
1981            }
1982    
1983            @Override
1984            public void setPrimaryKeyObj(Serializable primaryKeyObj) {
1985                    _layout.setPrimaryKeyObj(primaryKeyObj);
1986            }
1987    
1988            /**
1989            * Sets the priority of this layout.
1990            *
1991            * @param priority the priority of this layout
1992            */
1993            @Override
1994            public void setPriority(int priority) {
1995                    _layout.setPriority(priority);
1996            }
1997    
1998            /**
1999            * Sets whether this layout is private layout.
2000            *
2001            * @param privateLayout the private layout of this layout
2002            */
2003            @Override
2004            public void setPrivateLayout(boolean privateLayout) {
2005                    _layout.setPrivateLayout(privateLayout);
2006            }
2007    
2008            /**
2009            * Sets the robots of this layout.
2010            *
2011            * @param robots the robots of this layout
2012            */
2013            @Override
2014            public void setRobots(java.lang.String robots) {
2015                    _layout.setRobots(robots);
2016            }
2017    
2018            /**
2019            * Sets the localized robots of this layout in the language.
2020            *
2021            * @param robots the localized robots of this layout
2022            * @param locale the locale of the language
2023            */
2024            @Override
2025            public void setRobots(java.lang.String robots, java.util.Locale locale) {
2026                    _layout.setRobots(robots, locale);
2027            }
2028    
2029            /**
2030            * Sets the localized robots of this layout in the language, and sets the default locale.
2031            *
2032            * @param robots the localized robots of this layout
2033            * @param locale the locale of the language
2034            * @param defaultLocale the default locale
2035            */
2036            @Override
2037            public void setRobots(java.lang.String robots, java.util.Locale locale,
2038                    java.util.Locale defaultLocale) {
2039                    _layout.setRobots(robots, locale, defaultLocale);
2040            }
2041    
2042            @Override
2043            public void setRobotsCurrentLanguageId(java.lang.String languageId) {
2044                    _layout.setRobotsCurrentLanguageId(languageId);
2045            }
2046    
2047            /**
2048            * Sets the localized robotses of this layout from the map of locales and localized robotses.
2049            *
2050            * @param robotsMap the locales and localized robotses of this layout
2051            */
2052            @Override
2053            public void setRobotsMap(Map<java.util.Locale, java.lang.String> robotsMap) {
2054                    _layout.setRobotsMap(robotsMap);
2055            }
2056    
2057            /**
2058            * Sets the localized robotses of this layout from the map of locales and localized robotses, and sets the default locale.
2059            *
2060            * @param robotsMap the locales and localized robotses of this layout
2061            * @param defaultLocale the default locale
2062            */
2063            @Override
2064            public void setRobotsMap(
2065                    Map<java.util.Locale, java.lang.String> robotsMap,
2066                    java.util.Locale defaultLocale) {
2067                    _layout.setRobotsMap(robotsMap, defaultLocale);
2068            }
2069    
2070            /**
2071            * Sets the source prototype layout uuid of this layout.
2072            *
2073            * @param sourcePrototypeLayoutUuid the source prototype layout uuid of this layout
2074            */
2075            @Override
2076            public void setSourcePrototypeLayoutUuid(
2077                    java.lang.String sourcePrototypeLayoutUuid) {
2078                    _layout.setSourcePrototypeLayoutUuid(sourcePrototypeLayoutUuid);
2079            }
2080    
2081            /**
2082            * Sets the theme ID of this layout.
2083            *
2084            * @param themeId the theme ID of this layout
2085            */
2086            @Override
2087            public void setThemeId(java.lang.String themeId) {
2088                    _layout.setThemeId(themeId);
2089            }
2090    
2091            /**
2092            * Sets the title of this layout.
2093            *
2094            * @param title the title of this layout
2095            */
2096            @Override
2097            public void setTitle(java.lang.String title) {
2098                    _layout.setTitle(title);
2099            }
2100    
2101            /**
2102            * Sets the localized title of this layout in the language.
2103            *
2104            * @param title the localized title of this layout
2105            * @param locale the locale of the language
2106            */
2107            @Override
2108            public void setTitle(java.lang.String title, java.util.Locale locale) {
2109                    _layout.setTitle(title, locale);
2110            }
2111    
2112            /**
2113            * Sets the localized title of this layout in the language, and sets the default locale.
2114            *
2115            * @param title the localized title of this layout
2116            * @param locale the locale of the language
2117            * @param defaultLocale the default locale
2118            */
2119            @Override
2120            public void setTitle(java.lang.String title, java.util.Locale locale,
2121                    java.util.Locale defaultLocale) {
2122                    _layout.setTitle(title, locale, defaultLocale);
2123            }
2124    
2125            @Override
2126            public void setTitleCurrentLanguageId(java.lang.String languageId) {
2127                    _layout.setTitleCurrentLanguageId(languageId);
2128            }
2129    
2130            /**
2131            * Sets the localized titles of this layout from the map of locales and localized titles.
2132            *
2133            * @param titleMap the locales and localized titles of this layout
2134            */
2135            @Override
2136            public void setTitleMap(Map<java.util.Locale, java.lang.String> titleMap) {
2137                    _layout.setTitleMap(titleMap);
2138            }
2139    
2140            /**
2141            * Sets the localized titles of this layout from the map of locales and localized titles, and sets the default locale.
2142            *
2143            * @param titleMap the locales and localized titles of this layout
2144            * @param defaultLocale the default locale
2145            */
2146            @Override
2147            public void setTitleMap(Map<java.util.Locale, java.lang.String> titleMap,
2148                    java.util.Locale defaultLocale) {
2149                    _layout.setTitleMap(titleMap, defaultLocale);
2150            }
2151    
2152            /**
2153            * Sets the type of this layout.
2154            *
2155            * @param type the type of this layout
2156            */
2157            @Override
2158            public void setType(java.lang.String type) {
2159                    _layout.setType(type);
2160            }
2161    
2162            /**
2163            * Sets the type settings of this layout.
2164            *
2165            * @param typeSettings the type settings of this layout
2166            */
2167            @Override
2168            public void setTypeSettings(java.lang.String typeSettings) {
2169                    _layout.setTypeSettings(typeSettings);
2170            }
2171    
2172            @Override
2173            public void setTypeSettingsProperties(
2174                    com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties) {
2175                    _layout.setTypeSettingsProperties(typeSettingsProperties);
2176            }
2177    
2178            /**
2179            * Sets the user ID of this layout.
2180            *
2181            * @param userId the user ID of this layout
2182            */
2183            @Override
2184            public void setUserId(long userId) {
2185                    _layout.setUserId(userId);
2186            }
2187    
2188            /**
2189            * Sets the user name of this layout.
2190            *
2191            * @param userName the user name of this layout
2192            */
2193            @Override
2194            public void setUserName(java.lang.String userName) {
2195                    _layout.setUserName(userName);
2196            }
2197    
2198            /**
2199            * Sets the user uuid of this layout.
2200            *
2201            * @param userUuid the user uuid of this layout
2202            */
2203            @Override
2204            public void setUserUuid(java.lang.String userUuid) {
2205                    _layout.setUserUuid(userUuid);
2206            }
2207    
2208            /**
2209            * Sets the uuid of this layout.
2210            *
2211            * @param uuid the uuid of this layout
2212            */
2213            @Override
2214            public void setUuid(java.lang.String uuid) {
2215                    _layout.setUuid(uuid);
2216            }
2217    
2218            @Override
2219            public CacheModel<com.liferay.portal.kernel.model.Layout> toCacheModel() {
2220                    return _layout.toCacheModel();
2221            }
2222    
2223            @Override
2224            public com.liferay.portal.kernel.model.Layout toEscapedModel() {
2225                    return new LayoutWrapper(_layout.toEscapedModel());
2226            }
2227    
2228            @Override
2229            public java.lang.String toString() {
2230                    return _layout.toString();
2231            }
2232    
2233            @Override
2234            public com.liferay.portal.kernel.model.Layout toUnescapedModel() {
2235                    return new LayoutWrapper(_layout.toUnescapedModel());
2236            }
2237    
2238            @Override
2239            public java.lang.String toXmlString() {
2240                    return _layout.toXmlString();
2241            }
2242    
2243            @Override
2244            public boolean equals(Object obj) {
2245                    if (this == obj) {
2246                            return true;
2247                    }
2248    
2249                    if (!(obj instanceof LayoutWrapper)) {
2250                            return false;
2251                    }
2252    
2253                    LayoutWrapper layoutWrapper = (LayoutWrapper)obj;
2254    
2255                    if (Validator.equals(_layout, layoutWrapper._layout)) {
2256                            return true;
2257                    }
2258    
2259                    return false;
2260            }
2261    
2262            @Override
2263            public StagedModelType getStagedModelType() {
2264                    return _layout.getStagedModelType();
2265            }
2266    
2267            @Override
2268            public Layout getWrappedModel() {
2269                    return _layout;
2270            }
2271    
2272            @Override
2273            public boolean isEntityCacheEnabled() {
2274                    return _layout.isEntityCacheEnabled();
2275            }
2276    
2277            @Override
2278            public boolean isFinderCacheEnabled() {
2279                    return _layout.isFinderCacheEnabled();
2280            }
2281    
2282            @Override
2283            public void resetOriginalValues() {
2284                    _layout.resetOriginalValues();
2285            }
2286    
2287            private final Layout _layout;
2288    }