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