001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.model;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.util.Validator;
020    
021    import java.util.Date;
022    import java.util.HashMap;
023    import java.util.Map;
024    
025    /**
026     * <p>
027     * This class is a wrapper for {@link LayoutSet}.
028     * </p>
029     *
030     * @author Brian Wing Shun Chan
031     * @see LayoutSet
032     * @generated
033     */
034    @ProviderType
035    public class LayoutSetWrapper implements LayoutSet, ModelWrapper<LayoutSet> {
036            public LayoutSetWrapper(LayoutSet layoutSet) {
037                    _layoutSet = layoutSet;
038            }
039    
040            @Override
041            public Class<?> getModelClass() {
042                    return LayoutSet.class;
043            }
044    
045            @Override
046            public String getModelClassName() {
047                    return LayoutSet.class.getName();
048            }
049    
050            @Override
051            public Map<String, Object> getModelAttributes() {
052                    Map<String, Object> attributes = new HashMap<String, Object>();
053    
054                    attributes.put("layoutSetId", getLayoutSetId());
055                    attributes.put("groupId", getGroupId());
056                    attributes.put("companyId", getCompanyId());
057                    attributes.put("createDate", getCreateDate());
058                    attributes.put("modifiedDate", getModifiedDate());
059                    attributes.put("privateLayout", getPrivateLayout());
060                    attributes.put("logo", getLogo());
061                    attributes.put("logoId", getLogoId());
062                    attributes.put("themeId", getThemeId());
063                    attributes.put("colorSchemeId", getColorSchemeId());
064                    attributes.put("wapThemeId", getWapThemeId());
065                    attributes.put("wapColorSchemeId", getWapColorSchemeId());
066                    attributes.put("css", getCss());
067                    attributes.put("pageCount", getPageCount());
068                    attributes.put("settings", getSettings());
069                    attributes.put("layoutSetPrototypeUuid", getLayoutSetPrototypeUuid());
070                    attributes.put("layoutSetPrototypeLinkEnabled",
071                            getLayoutSetPrototypeLinkEnabled());
072    
073                    return attributes;
074            }
075    
076            @Override
077            public void setModelAttributes(Map<String, Object> attributes) {
078                    Long layoutSetId = (Long)attributes.get("layoutSetId");
079    
080                    if (layoutSetId != null) {
081                            setLayoutSetId(layoutSetId);
082                    }
083    
084                    Long groupId = (Long)attributes.get("groupId");
085    
086                    if (groupId != null) {
087                            setGroupId(groupId);
088                    }
089    
090                    Long companyId = (Long)attributes.get("companyId");
091    
092                    if (companyId != null) {
093                            setCompanyId(companyId);
094                    }
095    
096                    Date createDate = (Date)attributes.get("createDate");
097    
098                    if (createDate != null) {
099                            setCreateDate(createDate);
100                    }
101    
102                    Date modifiedDate = (Date)attributes.get("modifiedDate");
103    
104                    if (modifiedDate != null) {
105                            setModifiedDate(modifiedDate);
106                    }
107    
108                    Boolean privateLayout = (Boolean)attributes.get("privateLayout");
109    
110                    if (privateLayout != null) {
111                            setPrivateLayout(privateLayout);
112                    }
113    
114                    Boolean logo = (Boolean)attributes.get("logo");
115    
116                    if (logo != null) {
117                            setLogo(logo);
118                    }
119    
120                    Long logoId = (Long)attributes.get("logoId");
121    
122                    if (logoId != null) {
123                            setLogoId(logoId);
124                    }
125    
126                    String themeId = (String)attributes.get("themeId");
127    
128                    if (themeId != null) {
129                            setThemeId(themeId);
130                    }
131    
132                    String colorSchemeId = (String)attributes.get("colorSchemeId");
133    
134                    if (colorSchemeId != null) {
135                            setColorSchemeId(colorSchemeId);
136                    }
137    
138                    String wapThemeId = (String)attributes.get("wapThemeId");
139    
140                    if (wapThemeId != null) {
141                            setWapThemeId(wapThemeId);
142                    }
143    
144                    String wapColorSchemeId = (String)attributes.get("wapColorSchemeId");
145    
146                    if (wapColorSchemeId != null) {
147                            setWapColorSchemeId(wapColorSchemeId);
148                    }
149    
150                    String css = (String)attributes.get("css");
151    
152                    if (css != null) {
153                            setCss(css);
154                    }
155    
156                    Integer pageCount = (Integer)attributes.get("pageCount");
157    
158                    if (pageCount != null) {
159                            setPageCount(pageCount);
160                    }
161    
162                    String settings = (String)attributes.get("settings");
163    
164                    if (settings != null) {
165                            setSettings(settings);
166                    }
167    
168                    String layoutSetPrototypeUuid = (String)attributes.get(
169                                    "layoutSetPrototypeUuid");
170    
171                    if (layoutSetPrototypeUuid != null) {
172                            setLayoutSetPrototypeUuid(layoutSetPrototypeUuid);
173                    }
174    
175                    Boolean layoutSetPrototypeLinkEnabled = (Boolean)attributes.get(
176                                    "layoutSetPrototypeLinkEnabled");
177    
178                    if (layoutSetPrototypeLinkEnabled != null) {
179                            setLayoutSetPrototypeLinkEnabled(layoutSetPrototypeLinkEnabled);
180                    }
181            }
182    
183            /**
184            * Returns the primary key of this layout set.
185            *
186            * @return the primary key of this layout set
187            */
188            @Override
189            public long getPrimaryKey() {
190                    return _layoutSet.getPrimaryKey();
191            }
192    
193            /**
194            * Sets the primary key of this layout set.
195            *
196            * @param primaryKey the primary key of this layout set
197            */
198            @Override
199            public void setPrimaryKey(long primaryKey) {
200                    _layoutSet.setPrimaryKey(primaryKey);
201            }
202    
203            /**
204            * Returns the layout set ID of this layout set.
205            *
206            * @return the layout set ID of this layout set
207            */
208            @Override
209            public long getLayoutSetId() {
210                    return _layoutSet.getLayoutSetId();
211            }
212    
213            /**
214            * Sets the layout set ID of this layout set.
215            *
216            * @param layoutSetId the layout set ID of this layout set
217            */
218            @Override
219            public void setLayoutSetId(long layoutSetId) {
220                    _layoutSet.setLayoutSetId(layoutSetId);
221            }
222    
223            /**
224            * Returns the group ID of this layout set.
225            *
226            * @return the group ID of this layout set
227            */
228            @Override
229            public long getGroupId() {
230                    return _layoutSet.getGroupId();
231            }
232    
233            /**
234            * Sets the group ID of this layout set.
235            *
236            * @param groupId the group ID of this layout set
237            */
238            @Override
239            public void setGroupId(long groupId) {
240                    _layoutSet.setGroupId(groupId);
241            }
242    
243            /**
244            * Returns the company ID of this layout set.
245            *
246            * @return the company ID of this layout set
247            */
248            @Override
249            public long getCompanyId() {
250                    return _layoutSet.getCompanyId();
251            }
252    
253            /**
254            * Sets the company ID of this layout set.
255            *
256            * @param companyId the company ID of this layout set
257            */
258            @Override
259            public void setCompanyId(long companyId) {
260                    _layoutSet.setCompanyId(companyId);
261            }
262    
263            /**
264            * Returns the create date of this layout set.
265            *
266            * @return the create date of this layout set
267            */
268            @Override
269            public java.util.Date getCreateDate() {
270                    return _layoutSet.getCreateDate();
271            }
272    
273            /**
274            * Sets the create date of this layout set.
275            *
276            * @param createDate the create date of this layout set
277            */
278            @Override
279            public void setCreateDate(java.util.Date createDate) {
280                    _layoutSet.setCreateDate(createDate);
281            }
282    
283            /**
284            * Returns the modified date of this layout set.
285            *
286            * @return the modified date of this layout set
287            */
288            @Override
289            public java.util.Date getModifiedDate() {
290                    return _layoutSet.getModifiedDate();
291            }
292    
293            /**
294            * Sets the modified date of this layout set.
295            *
296            * @param modifiedDate the modified date of this layout set
297            */
298            @Override
299            public void setModifiedDate(java.util.Date modifiedDate) {
300                    _layoutSet.setModifiedDate(modifiedDate);
301            }
302    
303            /**
304            * Returns the private layout of this layout set.
305            *
306            * @return the private layout of this layout set
307            */
308            @Override
309            public boolean getPrivateLayout() {
310                    return _layoutSet.getPrivateLayout();
311            }
312    
313            /**
314            * Returns <code>true</code> if this layout set is private layout.
315            *
316            * @return <code>true</code> if this layout set is private layout; <code>false</code> otherwise
317            */
318            @Override
319            public boolean isPrivateLayout() {
320                    return _layoutSet.isPrivateLayout();
321            }
322    
323            /**
324            * Sets whether this layout set is private layout.
325            *
326            * @param privateLayout the private layout of this layout set
327            */
328            @Override
329            public void setPrivateLayout(boolean privateLayout) {
330                    _layoutSet.setPrivateLayout(privateLayout);
331            }
332    
333            /**
334            * Returns the logo of this layout set.
335            *
336            * @return the logo of this layout set
337            */
338            @Override
339            public boolean getLogo() {
340                    return _layoutSet.getLogo();
341            }
342    
343            /**
344            * Returns <code>true</code> if this layout set is logo.
345            *
346            * @return <code>true</code> if this layout set is logo; <code>false</code> otherwise
347            */
348            @Override
349            public boolean isLogo() {
350                    return _layoutSet.isLogo();
351            }
352    
353            /**
354            * Sets whether this layout set is logo.
355            *
356            * @param logo the logo of this layout set
357            */
358            @Override
359            public void setLogo(boolean logo) {
360                    _layoutSet.setLogo(logo);
361            }
362    
363            /**
364            * Returns the logo ID of this layout set.
365            *
366            * @return the logo ID of this layout set
367            */
368            @Override
369            public long getLogoId() {
370                    return _layoutSet.getLogoId();
371            }
372    
373            /**
374            * Sets the logo ID of this layout set.
375            *
376            * @param logoId the logo ID of this layout set
377            */
378            @Override
379            public void setLogoId(long logoId) {
380                    _layoutSet.setLogoId(logoId);
381            }
382    
383            /**
384            * Returns the theme ID of this layout set.
385            *
386            * @return the theme ID of this layout set
387            */
388            @Override
389            public java.lang.String getThemeId() {
390                    return _layoutSet.getThemeId();
391            }
392    
393            /**
394            * Sets the theme ID of this layout set.
395            *
396            * @param themeId the theme ID of this layout set
397            */
398            @Override
399            public void setThemeId(java.lang.String themeId) {
400                    _layoutSet.setThemeId(themeId);
401            }
402    
403            /**
404            * Returns the color scheme ID of this layout set.
405            *
406            * @return the color scheme ID of this layout set
407            */
408            @Override
409            public java.lang.String getColorSchemeId() {
410                    return _layoutSet.getColorSchemeId();
411            }
412    
413            /**
414            * Sets the color scheme ID of this layout set.
415            *
416            * @param colorSchemeId the color scheme ID of this layout set
417            */
418            @Override
419            public void setColorSchemeId(java.lang.String colorSchemeId) {
420                    _layoutSet.setColorSchemeId(colorSchemeId);
421            }
422    
423            /**
424            * Returns the wap theme ID of this layout set.
425            *
426            * @return the wap theme ID of this layout set
427            */
428            @Override
429            public java.lang.String getWapThemeId() {
430                    return _layoutSet.getWapThemeId();
431            }
432    
433            /**
434            * Sets the wap theme ID of this layout set.
435            *
436            * @param wapThemeId the wap theme ID of this layout set
437            */
438            @Override
439            public void setWapThemeId(java.lang.String wapThemeId) {
440                    _layoutSet.setWapThemeId(wapThemeId);
441            }
442    
443            /**
444            * Returns the wap color scheme ID of this layout set.
445            *
446            * @return the wap color scheme ID of this layout set
447            */
448            @Override
449            public java.lang.String getWapColorSchemeId() {
450                    return _layoutSet.getWapColorSchemeId();
451            }
452    
453            /**
454            * Sets the wap color scheme ID of this layout set.
455            *
456            * @param wapColorSchemeId the wap color scheme ID of this layout set
457            */
458            @Override
459            public void setWapColorSchemeId(java.lang.String wapColorSchemeId) {
460                    _layoutSet.setWapColorSchemeId(wapColorSchemeId);
461            }
462    
463            /**
464            * Returns the css of this layout set.
465            *
466            * @return the css of this layout set
467            */
468            @Override
469            public java.lang.String getCss() {
470                    return _layoutSet.getCss();
471            }
472    
473            /**
474            * Sets the css of this layout set.
475            *
476            * @param css the css of this layout set
477            */
478            @Override
479            public void setCss(java.lang.String css) {
480                    _layoutSet.setCss(css);
481            }
482    
483            /**
484            * Returns the page count of this layout set.
485            *
486            * @return the page count of this layout set
487            */
488            @Override
489            public int getPageCount() {
490                    return _layoutSet.getPageCount();
491            }
492    
493            /**
494            * Sets the page count of this layout set.
495            *
496            * @param pageCount the page count of this layout set
497            */
498            @Override
499            public void setPageCount(int pageCount) {
500                    _layoutSet.setPageCount(pageCount);
501            }
502    
503            /**
504            * Returns the settings of this layout set.
505            *
506            * @return the settings of this layout set
507            */
508            @Override
509            public java.lang.String getSettings() {
510                    return _layoutSet.getSettings();
511            }
512    
513            /**
514            * Sets the settings of this layout set.
515            *
516            * @param settings the settings of this layout set
517            */
518            @Override
519            public void setSettings(java.lang.String settings) {
520                    _layoutSet.setSettings(settings);
521            }
522    
523            /**
524            * Returns the layout set prototype uuid of this layout set.
525            *
526            * @return the layout set prototype uuid of this layout set
527            */
528            @Override
529            public java.lang.String getLayoutSetPrototypeUuid() {
530                    return _layoutSet.getLayoutSetPrototypeUuid();
531            }
532    
533            /**
534            * Sets the layout set prototype uuid of this layout set.
535            *
536            * @param layoutSetPrototypeUuid the layout set prototype uuid of this layout set
537            */
538            @Override
539            public void setLayoutSetPrototypeUuid(
540                    java.lang.String layoutSetPrototypeUuid) {
541                    _layoutSet.setLayoutSetPrototypeUuid(layoutSetPrototypeUuid);
542            }
543    
544            /**
545            * Returns the layout set prototype link enabled of this layout set.
546            *
547            * @return the layout set prototype link enabled of this layout set
548            */
549            @Override
550            public boolean getLayoutSetPrototypeLinkEnabled() {
551                    return _layoutSet.getLayoutSetPrototypeLinkEnabled();
552            }
553    
554            /**
555            * Returns <code>true</code> if this layout set is layout set prototype link enabled.
556            *
557            * @return <code>true</code> if this layout set is layout set prototype link enabled; <code>false</code> otherwise
558            */
559            @Override
560            public boolean isLayoutSetPrototypeLinkEnabled() {
561                    return _layoutSet.isLayoutSetPrototypeLinkEnabled();
562            }
563    
564            /**
565            * Sets whether this layout set is layout set prototype link enabled.
566            *
567            * @param layoutSetPrototypeLinkEnabled the layout set prototype link enabled of this layout set
568            */
569            @Override
570            public void setLayoutSetPrototypeLinkEnabled(
571                    boolean layoutSetPrototypeLinkEnabled) {
572                    _layoutSet.setLayoutSetPrototypeLinkEnabled(layoutSetPrototypeLinkEnabled);
573            }
574    
575            @Override
576            public boolean isNew() {
577                    return _layoutSet.isNew();
578            }
579    
580            @Override
581            public void setNew(boolean n) {
582                    _layoutSet.setNew(n);
583            }
584    
585            @Override
586            public boolean isCachedModel() {
587                    return _layoutSet.isCachedModel();
588            }
589    
590            @Override
591            public void setCachedModel(boolean cachedModel) {
592                    _layoutSet.setCachedModel(cachedModel);
593            }
594    
595            @Override
596            public boolean isEscapedModel() {
597                    return _layoutSet.isEscapedModel();
598            }
599    
600            @Override
601            public java.io.Serializable getPrimaryKeyObj() {
602                    return _layoutSet.getPrimaryKeyObj();
603            }
604    
605            @Override
606            public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
607                    _layoutSet.setPrimaryKeyObj(primaryKeyObj);
608            }
609    
610            @Override
611            public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
612                    return _layoutSet.getExpandoBridge();
613            }
614    
615            @Override
616            public void setExpandoBridgeAttributes(
617                    com.liferay.portal.model.BaseModel<?> baseModel) {
618                    _layoutSet.setExpandoBridgeAttributes(baseModel);
619            }
620    
621            @Override
622            public void setExpandoBridgeAttributes(
623                    com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
624                    _layoutSet.setExpandoBridgeAttributes(expandoBridge);
625            }
626    
627            @Override
628            public void setExpandoBridgeAttributes(
629                    com.liferay.portal.service.ServiceContext serviceContext) {
630                    _layoutSet.setExpandoBridgeAttributes(serviceContext);
631            }
632    
633            @Override
634            public java.lang.Object clone() {
635                    return new LayoutSetWrapper((LayoutSet)_layoutSet.clone());
636            }
637    
638            @Override
639            public int compareTo(com.liferay.portal.model.LayoutSet layoutSet) {
640                    return _layoutSet.compareTo(layoutSet);
641            }
642    
643            @Override
644            public int hashCode() {
645                    return _layoutSet.hashCode();
646            }
647    
648            @Override
649            public com.liferay.portal.model.CacheModel<com.liferay.portal.model.LayoutSet> toCacheModel() {
650                    return _layoutSet.toCacheModel();
651            }
652    
653            @Override
654            public com.liferay.portal.model.LayoutSet toEscapedModel() {
655                    return new LayoutSetWrapper(_layoutSet.toEscapedModel());
656            }
657    
658            @Override
659            public com.liferay.portal.model.LayoutSet toUnescapedModel() {
660                    return new LayoutSetWrapper(_layoutSet.toUnescapedModel());
661            }
662    
663            @Override
664            public java.lang.String toString() {
665                    return _layoutSet.toString();
666            }
667    
668            @Override
669            public java.lang.String toXmlString() {
670                    return _layoutSet.toXmlString();
671            }
672    
673            @Override
674            public void persist()
675                    throws com.liferay.portal.kernel.exception.SystemException {
676                    _layoutSet.persist();
677            }
678    
679            @Override
680            public com.liferay.portal.model.ColorScheme getColorScheme()
681                    throws com.liferay.portal.kernel.exception.SystemException {
682                    return _layoutSet.getColorScheme();
683            }
684    
685            @Override
686            public java.lang.String getCompanyFallbackVirtualHostname() {
687                    return _layoutSet.getCompanyFallbackVirtualHostname();
688            }
689    
690            @Override
691            public com.liferay.portal.model.Group getGroup()
692                    throws com.liferay.portal.kernel.exception.PortalException,
693                            com.liferay.portal.kernel.exception.SystemException {
694                    return _layoutSet.getGroup();
695            }
696    
697            @Override
698            public long getLayoutSetPrototypeId()
699                    throws com.liferay.portal.kernel.exception.PortalException,
700                            com.liferay.portal.kernel.exception.SystemException {
701                    return _layoutSet.getLayoutSetPrototypeId();
702            }
703    
704            @Override
705            public long getLiveLogoId() {
706                    return _layoutSet.getLiveLogoId();
707            }
708    
709            @Override
710            public com.liferay.portal.kernel.util.UnicodeProperties getSettingsProperties() {
711                    return _layoutSet.getSettingsProperties();
712            }
713    
714            @Override
715            public java.lang.String getSettingsProperty(java.lang.String key) {
716                    return _layoutSet.getSettingsProperty(key);
717            }
718    
719            @Override
720            public com.liferay.portal.model.Theme getTheme()
721                    throws com.liferay.portal.kernel.exception.SystemException {
722                    return _layoutSet.getTheme();
723            }
724    
725            @Override
726            public java.lang.String getThemeSetting(java.lang.String key,
727                    java.lang.String device)
728                    throws com.liferay.portal.kernel.exception.SystemException {
729                    return _layoutSet.getThemeSetting(key, device);
730            }
731    
732            @Override
733            public java.lang.String getVirtualHostname() {
734                    return _layoutSet.getVirtualHostname();
735            }
736    
737            @Override
738            public com.liferay.portal.model.ColorScheme getWapColorScheme()
739                    throws com.liferay.portal.kernel.exception.SystemException {
740                    return _layoutSet.getWapColorScheme();
741            }
742    
743            @Override
744            public com.liferay.portal.model.Theme getWapTheme()
745                    throws com.liferay.portal.kernel.exception.SystemException {
746                    return _layoutSet.getWapTheme();
747            }
748    
749            @Override
750            public boolean isLayoutSetPrototypeLinkActive() {
751                    return _layoutSet.isLayoutSetPrototypeLinkActive();
752            }
753    
754            @Override
755            public void setCompanyFallbackVirtualHostname(
756                    java.lang.String companyFallbackVirtualHostname) {
757                    _layoutSet.setCompanyFallbackVirtualHostname(companyFallbackVirtualHostname);
758            }
759    
760            @Override
761            public void setSettingsProperties(
762                    com.liferay.portal.kernel.util.UnicodeProperties settingsProperties) {
763                    _layoutSet.setSettingsProperties(settingsProperties);
764            }
765    
766            @Override
767            public void setVirtualHostname(java.lang.String virtualHostname) {
768                    _layoutSet.setVirtualHostname(virtualHostname);
769            }
770    
771            @Override
772            public boolean equals(Object obj) {
773                    if (this == obj) {
774                            return true;
775                    }
776    
777                    if (!(obj instanceof LayoutSetWrapper)) {
778                            return false;
779                    }
780    
781                    LayoutSetWrapper layoutSetWrapper = (LayoutSetWrapper)obj;
782    
783                    if (Validator.equals(_layoutSet, layoutSetWrapper._layoutSet)) {
784                            return true;
785                    }
786    
787                    return false;
788            }
789    
790            /**
791             * @deprecated As of 6.1.0, replaced by {@link #getWrappedModel}
792             */
793            public LayoutSet getWrappedLayoutSet() {
794                    return _layoutSet;
795            }
796    
797            @Override
798            public LayoutSet getWrappedModel() {
799                    return _layoutSet;
800            }
801    
802            @Override
803            public void resetOriginalValues() {
804                    _layoutSet.resetOriginalValues();
805            }
806    
807            private LayoutSet _layoutSet;
808    }