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