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