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