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