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