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