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