001
014
015 package com.liferay.portal.model;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.util.Validator;
020
021 import java.util.Date;
022 import java.util.HashMap;
023 import java.util.Map;
024
025
034 @ProviderType
035 public class LayoutSetBranchWrapper implements LayoutSetBranch,
036 ModelWrapper<LayoutSetBranch> {
037 public LayoutSetBranchWrapper(LayoutSetBranch layoutSetBranch) {
038 _layoutSetBranch = layoutSetBranch;
039 }
040
041 @Override
042 public Class<?> getModelClass() {
043 return LayoutSetBranch.class;
044 }
045
046 @Override
047 public String getModelClassName() {
048 return LayoutSetBranch.class.getName();
049 }
050
051 @Override
052 public Map<String, Object> getModelAttributes() {
053 Map<String, Object> attributes = new HashMap<String, Object>();
054
055 attributes.put("layoutSetBranchId", getLayoutSetBranchId());
056 attributes.put("groupId", getGroupId());
057 attributes.put("companyId", getCompanyId());
058 attributes.put("userId", getUserId());
059 attributes.put("userName", getUserName());
060 attributes.put("createDate", getCreateDate());
061 attributes.put("modifiedDate", getModifiedDate());
062 attributes.put("privateLayout", getPrivateLayout());
063 attributes.put("name", getName());
064 attributes.put("description", getDescription());
065 attributes.put("master", getMaster());
066 attributes.put("logo", getLogo());
067 attributes.put("logoId", getLogoId());
068 attributes.put("themeId", getThemeId());
069 attributes.put("colorSchemeId", getColorSchemeId());
070 attributes.put("wapThemeId", getWapThemeId());
071 attributes.put("wapColorSchemeId", getWapColorSchemeId());
072 attributes.put("css", getCss());
073 attributes.put("settings", getSettings());
074 attributes.put("layoutSetPrototypeUuid", getLayoutSetPrototypeUuid());
075 attributes.put("layoutSetPrototypeLinkEnabled",
076 getLayoutSetPrototypeLinkEnabled());
077
078 return attributes;
079 }
080
081 @Override
082 public void setModelAttributes(Map<String, Object> attributes) {
083 Long layoutSetBranchId = (Long)attributes.get("layoutSetBranchId");
084
085 if (layoutSetBranchId != null) {
086 setLayoutSetBranchId(layoutSetBranchId);
087 }
088
089 Long groupId = (Long)attributes.get("groupId");
090
091 if (groupId != null) {
092 setGroupId(groupId);
093 }
094
095 Long companyId = (Long)attributes.get("companyId");
096
097 if (companyId != null) {
098 setCompanyId(companyId);
099 }
100
101 Long userId = (Long)attributes.get("userId");
102
103 if (userId != null) {
104 setUserId(userId);
105 }
106
107 String userName = (String)attributes.get("userName");
108
109 if (userName != null) {
110 setUserName(userName);
111 }
112
113 Date createDate = (Date)attributes.get("createDate");
114
115 if (createDate != null) {
116 setCreateDate(createDate);
117 }
118
119 Date modifiedDate = (Date)attributes.get("modifiedDate");
120
121 if (modifiedDate != null) {
122 setModifiedDate(modifiedDate);
123 }
124
125 Boolean privateLayout = (Boolean)attributes.get("privateLayout");
126
127 if (privateLayout != null) {
128 setPrivateLayout(privateLayout);
129 }
130
131 String name = (String)attributes.get("name");
132
133 if (name != null) {
134 setName(name);
135 }
136
137 String description = (String)attributes.get("description");
138
139 if (description != null) {
140 setDescription(description);
141 }
142
143 Boolean master = (Boolean)attributes.get("master");
144
145 if (master != null) {
146 setMaster(master);
147 }
148
149 Boolean logo = (Boolean)attributes.get("logo");
150
151 if (logo != null) {
152 setLogo(logo);
153 }
154
155 Long logoId = (Long)attributes.get("logoId");
156
157 if (logoId != null) {
158 setLogoId(logoId);
159 }
160
161 String themeId = (String)attributes.get("themeId");
162
163 if (themeId != null) {
164 setThemeId(themeId);
165 }
166
167 String colorSchemeId = (String)attributes.get("colorSchemeId");
168
169 if (colorSchemeId != null) {
170 setColorSchemeId(colorSchemeId);
171 }
172
173 String wapThemeId = (String)attributes.get("wapThemeId");
174
175 if (wapThemeId != null) {
176 setWapThemeId(wapThemeId);
177 }
178
179 String wapColorSchemeId = (String)attributes.get("wapColorSchemeId");
180
181 if (wapColorSchemeId != null) {
182 setWapColorSchemeId(wapColorSchemeId);
183 }
184
185 String css = (String)attributes.get("css");
186
187 if (css != null) {
188 setCss(css);
189 }
190
191 String settings = (String)attributes.get("settings");
192
193 if (settings != null) {
194 setSettings(settings);
195 }
196
197 String layoutSetPrototypeUuid = (String)attributes.get(
198 "layoutSetPrototypeUuid");
199
200 if (layoutSetPrototypeUuid != null) {
201 setLayoutSetPrototypeUuid(layoutSetPrototypeUuid);
202 }
203
204 Boolean layoutSetPrototypeLinkEnabled = (Boolean)attributes.get(
205 "layoutSetPrototypeLinkEnabled");
206
207 if (layoutSetPrototypeLinkEnabled != null) {
208 setLayoutSetPrototypeLinkEnabled(layoutSetPrototypeLinkEnabled);
209 }
210 }
211
212
217 @Override
218 public long getPrimaryKey() {
219 return _layoutSetBranch.getPrimaryKey();
220 }
221
222
227 @Override
228 public void setPrimaryKey(long primaryKey) {
229 _layoutSetBranch.setPrimaryKey(primaryKey);
230 }
231
232
237 @Override
238 public long getLayoutSetBranchId() {
239 return _layoutSetBranch.getLayoutSetBranchId();
240 }
241
242
247 @Override
248 public void setLayoutSetBranchId(long layoutSetBranchId) {
249 _layoutSetBranch.setLayoutSetBranchId(layoutSetBranchId);
250 }
251
252
257 @Override
258 public long getGroupId() {
259 return _layoutSetBranch.getGroupId();
260 }
261
262
267 @Override
268 public void setGroupId(long groupId) {
269 _layoutSetBranch.setGroupId(groupId);
270 }
271
272
277 @Override
278 public long getCompanyId() {
279 return _layoutSetBranch.getCompanyId();
280 }
281
282
287 @Override
288 public void setCompanyId(long companyId) {
289 _layoutSetBranch.setCompanyId(companyId);
290 }
291
292
297 @Override
298 public long getUserId() {
299 return _layoutSetBranch.getUserId();
300 }
301
302
307 @Override
308 public void setUserId(long userId) {
309 _layoutSetBranch.setUserId(userId);
310 }
311
312
318 @Override
319 public java.lang.String getUserUuid()
320 throws com.liferay.portal.kernel.exception.SystemException {
321 return _layoutSetBranch.getUserUuid();
322 }
323
324
329 @Override
330 public void setUserUuid(java.lang.String userUuid) {
331 _layoutSetBranch.setUserUuid(userUuid);
332 }
333
334
339 @Override
340 public java.lang.String getUserName() {
341 return _layoutSetBranch.getUserName();
342 }
343
344
349 @Override
350 public void setUserName(java.lang.String userName) {
351 _layoutSetBranch.setUserName(userName);
352 }
353
354
359 @Override
360 public java.util.Date getCreateDate() {
361 return _layoutSetBranch.getCreateDate();
362 }
363
364
369 @Override
370 public void setCreateDate(java.util.Date createDate) {
371 _layoutSetBranch.setCreateDate(createDate);
372 }
373
374
379 @Override
380 public java.util.Date getModifiedDate() {
381 return _layoutSetBranch.getModifiedDate();
382 }
383
384
389 @Override
390 public void setModifiedDate(java.util.Date modifiedDate) {
391 _layoutSetBranch.setModifiedDate(modifiedDate);
392 }
393
394
399 @Override
400 public boolean getPrivateLayout() {
401 return _layoutSetBranch.getPrivateLayout();
402 }
403
404
409 @Override
410 public boolean isPrivateLayout() {
411 return _layoutSetBranch.isPrivateLayout();
412 }
413
414
419 @Override
420 public void setPrivateLayout(boolean privateLayout) {
421 _layoutSetBranch.setPrivateLayout(privateLayout);
422 }
423
424
429 @Override
430 public java.lang.String getName() {
431 return _layoutSetBranch.getName();
432 }
433
434
439 @Override
440 public void setName(java.lang.String name) {
441 _layoutSetBranch.setName(name);
442 }
443
444
449 @Override
450 public java.lang.String getDescription() {
451 return _layoutSetBranch.getDescription();
452 }
453
454
459 @Override
460 public void setDescription(java.lang.String description) {
461 _layoutSetBranch.setDescription(description);
462 }
463
464
469 @Override
470 public boolean getMaster() {
471 return _layoutSetBranch.getMaster();
472 }
473
474
479 @Override
480 public boolean isMaster() {
481 return _layoutSetBranch.isMaster();
482 }
483
484
489 @Override
490 public void setMaster(boolean master) {
491 _layoutSetBranch.setMaster(master);
492 }
493
494
499 @Override
500 public boolean getLogo() {
501 return _layoutSetBranch.getLogo();
502 }
503
504
509 @Override
510 public boolean isLogo() {
511 return _layoutSetBranch.isLogo();
512 }
513
514
519 @Override
520 public void setLogo(boolean logo) {
521 _layoutSetBranch.setLogo(logo);
522 }
523
524
529 @Override
530 public long getLogoId() {
531 return _layoutSetBranch.getLogoId();
532 }
533
534
539 @Override
540 public void setLogoId(long logoId) {
541 _layoutSetBranch.setLogoId(logoId);
542 }
543
544
549 @Override
550 public java.lang.String getThemeId() {
551 return _layoutSetBranch.getThemeId();
552 }
553
554
559 @Override
560 public void setThemeId(java.lang.String themeId) {
561 _layoutSetBranch.setThemeId(themeId);
562 }
563
564
569 @Override
570 public java.lang.String getColorSchemeId() {
571 return _layoutSetBranch.getColorSchemeId();
572 }
573
574
579 @Override
580 public void setColorSchemeId(java.lang.String colorSchemeId) {
581 _layoutSetBranch.setColorSchemeId(colorSchemeId);
582 }
583
584
589 @Override
590 public java.lang.String getWapThemeId() {
591 return _layoutSetBranch.getWapThemeId();
592 }
593
594
599 @Override
600 public void setWapThemeId(java.lang.String wapThemeId) {
601 _layoutSetBranch.setWapThemeId(wapThemeId);
602 }
603
604
609 @Override
610 public java.lang.String getWapColorSchemeId() {
611 return _layoutSetBranch.getWapColorSchemeId();
612 }
613
614
619 @Override
620 public void setWapColorSchemeId(java.lang.String wapColorSchemeId) {
621 _layoutSetBranch.setWapColorSchemeId(wapColorSchemeId);
622 }
623
624
629 @Override
630 public java.lang.String getCss() {
631 return _layoutSetBranch.getCss();
632 }
633
634
639 @Override
640 public void setCss(java.lang.String css) {
641 _layoutSetBranch.setCss(css);
642 }
643
644
649 @Override
650 public java.lang.String getSettings() {
651 return _layoutSetBranch.getSettings();
652 }
653
654
659 @Override
660 public void setSettings(java.lang.String settings) {
661 _layoutSetBranch.setSettings(settings);
662 }
663
664
669 @Override
670 public java.lang.String getLayoutSetPrototypeUuid() {
671 return _layoutSetBranch.getLayoutSetPrototypeUuid();
672 }
673
674
679 @Override
680 public void setLayoutSetPrototypeUuid(
681 java.lang.String layoutSetPrototypeUuid) {
682 _layoutSetBranch.setLayoutSetPrototypeUuid(layoutSetPrototypeUuid);
683 }
684
685
690 @Override
691 public boolean getLayoutSetPrototypeLinkEnabled() {
692 return _layoutSetBranch.getLayoutSetPrototypeLinkEnabled();
693 }
694
695
700 @Override
701 public boolean isLayoutSetPrototypeLinkEnabled() {
702 return _layoutSetBranch.isLayoutSetPrototypeLinkEnabled();
703 }
704
705
710 @Override
711 public void setLayoutSetPrototypeLinkEnabled(
712 boolean layoutSetPrototypeLinkEnabled) {
713 _layoutSetBranch.setLayoutSetPrototypeLinkEnabled(layoutSetPrototypeLinkEnabled);
714 }
715
716 @Override
717 public boolean isNew() {
718 return _layoutSetBranch.isNew();
719 }
720
721 @Override
722 public void setNew(boolean n) {
723 _layoutSetBranch.setNew(n);
724 }
725
726 @Override
727 public boolean isCachedModel() {
728 return _layoutSetBranch.isCachedModel();
729 }
730
731 @Override
732 public void setCachedModel(boolean cachedModel) {
733 _layoutSetBranch.setCachedModel(cachedModel);
734 }
735
736 @Override
737 public boolean isEscapedModel() {
738 return _layoutSetBranch.isEscapedModel();
739 }
740
741 @Override
742 public java.io.Serializable getPrimaryKeyObj() {
743 return _layoutSetBranch.getPrimaryKeyObj();
744 }
745
746 @Override
747 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
748 _layoutSetBranch.setPrimaryKeyObj(primaryKeyObj);
749 }
750
751 @Override
752 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
753 return _layoutSetBranch.getExpandoBridge();
754 }
755
756 @Override
757 public void setExpandoBridgeAttributes(
758 com.liferay.portal.model.BaseModel<?> baseModel) {
759 _layoutSetBranch.setExpandoBridgeAttributes(baseModel);
760 }
761
762 @Override
763 public void setExpandoBridgeAttributes(
764 com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
765 _layoutSetBranch.setExpandoBridgeAttributes(expandoBridge);
766 }
767
768 @Override
769 public void setExpandoBridgeAttributes(
770 com.liferay.portal.service.ServiceContext serviceContext) {
771 _layoutSetBranch.setExpandoBridgeAttributes(serviceContext);
772 }
773
774 @Override
775 public java.lang.Object clone() {
776 return new LayoutSetBranchWrapper((LayoutSetBranch)_layoutSetBranch.clone());
777 }
778
779 @Override
780 public int compareTo(
781 com.liferay.portal.model.LayoutSetBranch layoutSetBranch) {
782 return _layoutSetBranch.compareTo(layoutSetBranch);
783 }
784
785 @Override
786 public int hashCode() {
787 return _layoutSetBranch.hashCode();
788 }
789
790 @Override
791 public com.liferay.portal.model.CacheModel<com.liferay.portal.model.LayoutSetBranch> toCacheModel() {
792 return _layoutSetBranch.toCacheModel();
793 }
794
795 @Override
796 public com.liferay.portal.model.LayoutSetBranch toEscapedModel() {
797 return new LayoutSetBranchWrapper(_layoutSetBranch.toEscapedModel());
798 }
799
800 @Override
801 public com.liferay.portal.model.LayoutSetBranch toUnescapedModel() {
802 return new LayoutSetBranchWrapper(_layoutSetBranch.toUnescapedModel());
803 }
804
805 @Override
806 public java.lang.String toString() {
807 return _layoutSetBranch.toString();
808 }
809
810 @Override
811 public java.lang.String toXmlString() {
812 return _layoutSetBranch.toXmlString();
813 }
814
815 @Override
816 public void persist()
817 throws com.liferay.portal.kernel.exception.SystemException {
818 _layoutSetBranch.persist();
819 }
820
821 @Override
822 public com.liferay.portal.model.ColorScheme getColorScheme()
823 throws com.liferay.portal.kernel.exception.SystemException {
824 return _layoutSetBranch.getColorScheme();
825 }
826
827 @Override
828 public com.liferay.portal.model.Group getGroup()
829 throws com.liferay.portal.kernel.exception.PortalException,
830 com.liferay.portal.kernel.exception.SystemException {
831 return _layoutSetBranch.getGroup();
832 }
833
834 @Override
835 public com.liferay.portal.model.LayoutSet getLayoutSet() {
836 return _layoutSetBranch.getLayoutSet();
837 }
838
839 @Override
840 public long getLiveLogoId() {
841 return _layoutSetBranch.getLiveLogoId();
842 }
843
844 @Override
845 public com.liferay.portal.kernel.util.UnicodeProperties getSettingsProperties() {
846 return _layoutSetBranch.getSettingsProperties();
847 }
848
849 @Override
850 public java.lang.String getSettingsProperty(java.lang.String key) {
851 return _layoutSetBranch.getSettingsProperty(key);
852 }
853
854 @Override
855 public com.liferay.portal.model.Theme getTheme()
856 throws com.liferay.portal.kernel.exception.SystemException {
857 return _layoutSetBranch.getTheme();
858 }
859
860 @Override
861 public java.lang.String getThemeSetting(java.lang.String key,
862 java.lang.String device)
863 throws com.liferay.portal.kernel.exception.SystemException {
864 return _layoutSetBranch.getThemeSetting(key, device);
865 }
866
867 @Override
868 public com.liferay.portal.model.ColorScheme getWapColorScheme()
869 throws com.liferay.portal.kernel.exception.SystemException {
870 return _layoutSetBranch.getWapColorScheme();
871 }
872
873 @Override
874 public com.liferay.portal.model.Theme getWapTheme()
875 throws com.liferay.portal.kernel.exception.SystemException {
876 return _layoutSetBranch.getWapTheme();
877 }
878
879 @Override
880 public boolean isLayoutSetPrototypeLinkActive() {
881 return _layoutSetBranch.isLayoutSetPrototypeLinkActive();
882 }
883
884 @Override
885 public void setSettingsProperties(
886 com.liferay.portal.kernel.util.UnicodeProperties settingsProperties) {
887 _layoutSetBranch.setSettingsProperties(settingsProperties);
888 }
889
890 @Override
891 public boolean equals(Object obj) {
892 if (this == obj) {
893 return true;
894 }
895
896 if (!(obj instanceof LayoutSetBranchWrapper)) {
897 return false;
898 }
899
900 LayoutSetBranchWrapper layoutSetBranchWrapper = (LayoutSetBranchWrapper)obj;
901
902 if (Validator.equals(_layoutSetBranch,
903 layoutSetBranchWrapper._layoutSetBranch)) {
904 return true;
905 }
906
907 return false;
908 }
909
910
913 public LayoutSetBranch getWrappedLayoutSetBranch() {
914 return _layoutSetBranch;
915 }
916
917 @Override
918 public LayoutSetBranch getWrappedModel() {
919 return _layoutSetBranch;
920 }
921
922 @Override
923 public void resetOriginalValues() {
924 _layoutSetBranch.resetOriginalValues();
925 }
926
927 private LayoutSetBranch _layoutSetBranch;
928 }