001
014
015 package com.liferay.portal.model;
016
017 import com.liferay.portal.kernel.util.Validator;
018
019 import java.util.Date;
020 import java.util.HashMap;
021 import java.util.Map;
022
023
032 public class LayoutSetBranchWrapper implements LayoutSetBranch,
033 ModelWrapper<LayoutSetBranch> {
034 public LayoutSetBranchWrapper(LayoutSetBranch layoutSetBranch) {
035 _layoutSetBranch = layoutSetBranch;
036 }
037
038 @Override
039 public Class<?> getModelClass() {
040 return LayoutSetBranch.class;
041 }
042
043 @Override
044 public String getModelClassName() {
045 return LayoutSetBranch.class.getName();
046 }
047
048 @Override
049 public Map<String, Object> getModelAttributes() {
050 Map<String, Object> attributes = new HashMap<String, Object>();
051
052 attributes.put("layoutSetBranchId", getLayoutSetBranchId());
053 attributes.put("groupId", getGroupId());
054 attributes.put("companyId", getCompanyId());
055 attributes.put("userId", getUserId());
056 attributes.put("userName", getUserName());
057 attributes.put("createDate", getCreateDate());
058 attributes.put("modifiedDate", getModifiedDate());
059 attributes.put("privateLayout", getPrivateLayout());
060 attributes.put("name", getName());
061 attributes.put("description", getDescription());
062 attributes.put("master", getMaster());
063 attributes.put("logo", getLogo());
064 attributes.put("logoId", getLogoId());
065 attributes.put("themeId", getThemeId());
066 attributes.put("colorSchemeId", getColorSchemeId());
067 attributes.put("wapThemeId", getWapThemeId());
068 attributes.put("wapColorSchemeId", getWapColorSchemeId());
069 attributes.put("css", getCss());
070 attributes.put("settings", getSettings());
071 attributes.put("layoutSetPrototypeUuid", getLayoutSetPrototypeUuid());
072 attributes.put("layoutSetPrototypeLinkEnabled",
073 getLayoutSetPrototypeLinkEnabled());
074
075 return attributes;
076 }
077
078 @Override
079 public void setModelAttributes(Map<String, Object> attributes) {
080 Long layoutSetBranchId = (Long)attributes.get("layoutSetBranchId");
081
082 if (layoutSetBranchId != null) {
083 setLayoutSetBranchId(layoutSetBranchId);
084 }
085
086 Long groupId = (Long)attributes.get("groupId");
087
088 if (groupId != null) {
089 setGroupId(groupId);
090 }
091
092 Long companyId = (Long)attributes.get("companyId");
093
094 if (companyId != null) {
095 setCompanyId(companyId);
096 }
097
098 Long userId = (Long)attributes.get("userId");
099
100 if (userId != null) {
101 setUserId(userId);
102 }
103
104 String userName = (String)attributes.get("userName");
105
106 if (userName != null) {
107 setUserName(userName);
108 }
109
110 Date createDate = (Date)attributes.get("createDate");
111
112 if (createDate != null) {
113 setCreateDate(createDate);
114 }
115
116 Date modifiedDate = (Date)attributes.get("modifiedDate");
117
118 if (modifiedDate != null) {
119 setModifiedDate(modifiedDate);
120 }
121
122 Boolean privateLayout = (Boolean)attributes.get("privateLayout");
123
124 if (privateLayout != null) {
125 setPrivateLayout(privateLayout);
126 }
127
128 String name = (String)attributes.get("name");
129
130 if (name != null) {
131 setName(name);
132 }
133
134 String description = (String)attributes.get("description");
135
136 if (description != null) {
137 setDescription(description);
138 }
139
140 Boolean master = (Boolean)attributes.get("master");
141
142 if (master != null) {
143 setMaster(master);
144 }
145
146 Boolean logo = (Boolean)attributes.get("logo");
147
148 if (logo != null) {
149 setLogo(logo);
150 }
151
152 Long logoId = (Long)attributes.get("logoId");
153
154 if (logoId != null) {
155 setLogoId(logoId);
156 }
157
158 String themeId = (String)attributes.get("themeId");
159
160 if (themeId != null) {
161 setThemeId(themeId);
162 }
163
164 String colorSchemeId = (String)attributes.get("colorSchemeId");
165
166 if (colorSchemeId != null) {
167 setColorSchemeId(colorSchemeId);
168 }
169
170 String wapThemeId = (String)attributes.get("wapThemeId");
171
172 if (wapThemeId != null) {
173 setWapThemeId(wapThemeId);
174 }
175
176 String wapColorSchemeId = (String)attributes.get("wapColorSchemeId");
177
178 if (wapColorSchemeId != null) {
179 setWapColorSchemeId(wapColorSchemeId);
180 }
181
182 String css = (String)attributes.get("css");
183
184 if (css != null) {
185 setCss(css);
186 }
187
188 String settings = (String)attributes.get("settings");
189
190 if (settings != null) {
191 setSettings(settings);
192 }
193
194 String layoutSetPrototypeUuid = (String)attributes.get(
195 "layoutSetPrototypeUuid");
196
197 if (layoutSetPrototypeUuid != null) {
198 setLayoutSetPrototypeUuid(layoutSetPrototypeUuid);
199 }
200
201 Boolean layoutSetPrototypeLinkEnabled = (Boolean)attributes.get(
202 "layoutSetPrototypeLinkEnabled");
203
204 if (layoutSetPrototypeLinkEnabled != null) {
205 setLayoutSetPrototypeLinkEnabled(layoutSetPrototypeLinkEnabled);
206 }
207 }
208
209
214 @Override
215 public long getPrimaryKey() {
216 return _layoutSetBranch.getPrimaryKey();
217 }
218
219
224 @Override
225 public void setPrimaryKey(long primaryKey) {
226 _layoutSetBranch.setPrimaryKey(primaryKey);
227 }
228
229
234 @Override
235 public long getLayoutSetBranchId() {
236 return _layoutSetBranch.getLayoutSetBranchId();
237 }
238
239
244 @Override
245 public void setLayoutSetBranchId(long layoutSetBranchId) {
246 _layoutSetBranch.setLayoutSetBranchId(layoutSetBranchId);
247 }
248
249
254 @Override
255 public long getGroupId() {
256 return _layoutSetBranch.getGroupId();
257 }
258
259
264 @Override
265 public void setGroupId(long groupId) {
266 _layoutSetBranch.setGroupId(groupId);
267 }
268
269
274 @Override
275 public long getCompanyId() {
276 return _layoutSetBranch.getCompanyId();
277 }
278
279
284 @Override
285 public void setCompanyId(long companyId) {
286 _layoutSetBranch.setCompanyId(companyId);
287 }
288
289
294 @Override
295 public long getUserId() {
296 return _layoutSetBranch.getUserId();
297 }
298
299
304 @Override
305 public void setUserId(long userId) {
306 _layoutSetBranch.setUserId(userId);
307 }
308
309
315 @Override
316 public java.lang.String getUserUuid()
317 throws com.liferay.portal.kernel.exception.SystemException {
318 return _layoutSetBranch.getUserUuid();
319 }
320
321
326 @Override
327 public void setUserUuid(java.lang.String userUuid) {
328 _layoutSetBranch.setUserUuid(userUuid);
329 }
330
331
336 @Override
337 public java.lang.String getUserName() {
338 return _layoutSetBranch.getUserName();
339 }
340
341
346 @Override
347 public void setUserName(java.lang.String userName) {
348 _layoutSetBranch.setUserName(userName);
349 }
350
351
356 @Override
357 public java.util.Date getCreateDate() {
358 return _layoutSetBranch.getCreateDate();
359 }
360
361
366 @Override
367 public void setCreateDate(java.util.Date createDate) {
368 _layoutSetBranch.setCreateDate(createDate);
369 }
370
371
376 @Override
377 public java.util.Date getModifiedDate() {
378 return _layoutSetBranch.getModifiedDate();
379 }
380
381
386 @Override
387 public void setModifiedDate(java.util.Date modifiedDate) {
388 _layoutSetBranch.setModifiedDate(modifiedDate);
389 }
390
391
396 @Override
397 public boolean getPrivateLayout() {
398 return _layoutSetBranch.getPrivateLayout();
399 }
400
401
406 @Override
407 public boolean isPrivateLayout() {
408 return _layoutSetBranch.isPrivateLayout();
409 }
410
411
416 @Override
417 public void setPrivateLayout(boolean privateLayout) {
418 _layoutSetBranch.setPrivateLayout(privateLayout);
419 }
420
421
426 @Override
427 public java.lang.String getName() {
428 return _layoutSetBranch.getName();
429 }
430
431
436 @Override
437 public void setName(java.lang.String name) {
438 _layoutSetBranch.setName(name);
439 }
440
441
446 @Override
447 public java.lang.String getDescription() {
448 return _layoutSetBranch.getDescription();
449 }
450
451
456 @Override
457 public void setDescription(java.lang.String description) {
458 _layoutSetBranch.setDescription(description);
459 }
460
461
466 @Override
467 public boolean getMaster() {
468 return _layoutSetBranch.getMaster();
469 }
470
471
476 @Override
477 public boolean isMaster() {
478 return _layoutSetBranch.isMaster();
479 }
480
481
486 @Override
487 public void setMaster(boolean master) {
488 _layoutSetBranch.setMaster(master);
489 }
490
491
496 @Override
497 public boolean getLogo() {
498 return _layoutSetBranch.getLogo();
499 }
500
501
506 @Override
507 public boolean isLogo() {
508 return _layoutSetBranch.isLogo();
509 }
510
511
516 @Override
517 public void setLogo(boolean logo) {
518 _layoutSetBranch.setLogo(logo);
519 }
520
521
526 @Override
527 public long getLogoId() {
528 return _layoutSetBranch.getLogoId();
529 }
530
531
536 @Override
537 public void setLogoId(long logoId) {
538 _layoutSetBranch.setLogoId(logoId);
539 }
540
541
546 @Override
547 public java.lang.String getThemeId() {
548 return _layoutSetBranch.getThemeId();
549 }
550
551
556 @Override
557 public void setThemeId(java.lang.String themeId) {
558 _layoutSetBranch.setThemeId(themeId);
559 }
560
561
566 @Override
567 public java.lang.String getColorSchemeId() {
568 return _layoutSetBranch.getColorSchemeId();
569 }
570
571
576 @Override
577 public void setColorSchemeId(java.lang.String colorSchemeId) {
578 _layoutSetBranch.setColorSchemeId(colorSchemeId);
579 }
580
581
586 @Override
587 public java.lang.String getWapThemeId() {
588 return _layoutSetBranch.getWapThemeId();
589 }
590
591
596 @Override
597 public void setWapThemeId(java.lang.String wapThemeId) {
598 _layoutSetBranch.setWapThemeId(wapThemeId);
599 }
600
601
606 @Override
607 public java.lang.String getWapColorSchemeId() {
608 return _layoutSetBranch.getWapColorSchemeId();
609 }
610
611
616 @Override
617 public void setWapColorSchemeId(java.lang.String wapColorSchemeId) {
618 _layoutSetBranch.setWapColorSchemeId(wapColorSchemeId);
619 }
620
621
626 @Override
627 public java.lang.String getCss() {
628 return _layoutSetBranch.getCss();
629 }
630
631
636 @Override
637 public void setCss(java.lang.String css) {
638 _layoutSetBranch.setCss(css);
639 }
640
641
646 @Override
647 public java.lang.String getSettings() {
648 return _layoutSetBranch.getSettings();
649 }
650
651
656 @Override
657 public void setSettings(java.lang.String settings) {
658 _layoutSetBranch.setSettings(settings);
659 }
660
661
666 @Override
667 public java.lang.String getLayoutSetPrototypeUuid() {
668 return _layoutSetBranch.getLayoutSetPrototypeUuid();
669 }
670
671
676 @Override
677 public void setLayoutSetPrototypeUuid(
678 java.lang.String layoutSetPrototypeUuid) {
679 _layoutSetBranch.setLayoutSetPrototypeUuid(layoutSetPrototypeUuid);
680 }
681
682
687 @Override
688 public boolean getLayoutSetPrototypeLinkEnabled() {
689 return _layoutSetBranch.getLayoutSetPrototypeLinkEnabled();
690 }
691
692
697 @Override
698 public boolean isLayoutSetPrototypeLinkEnabled() {
699 return _layoutSetBranch.isLayoutSetPrototypeLinkEnabled();
700 }
701
702
707 @Override
708 public void setLayoutSetPrototypeLinkEnabled(
709 boolean layoutSetPrototypeLinkEnabled) {
710 _layoutSetBranch.setLayoutSetPrototypeLinkEnabled(layoutSetPrototypeLinkEnabled);
711 }
712
713 @Override
714 public boolean isNew() {
715 return _layoutSetBranch.isNew();
716 }
717
718 @Override
719 public void setNew(boolean n) {
720 _layoutSetBranch.setNew(n);
721 }
722
723 @Override
724 public boolean isCachedModel() {
725 return _layoutSetBranch.isCachedModel();
726 }
727
728 @Override
729 public void setCachedModel(boolean cachedModel) {
730 _layoutSetBranch.setCachedModel(cachedModel);
731 }
732
733 @Override
734 public boolean isEscapedModel() {
735 return _layoutSetBranch.isEscapedModel();
736 }
737
738 @Override
739 public java.io.Serializable getPrimaryKeyObj() {
740 return _layoutSetBranch.getPrimaryKeyObj();
741 }
742
743 @Override
744 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
745 _layoutSetBranch.setPrimaryKeyObj(primaryKeyObj);
746 }
747
748 @Override
749 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
750 return _layoutSetBranch.getExpandoBridge();
751 }
752
753 @Override
754 public void setExpandoBridgeAttributes(
755 com.liferay.portal.model.BaseModel<?> baseModel) {
756 _layoutSetBranch.setExpandoBridgeAttributes(baseModel);
757 }
758
759 @Override
760 public void setExpandoBridgeAttributes(
761 com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
762 _layoutSetBranch.setExpandoBridgeAttributes(expandoBridge);
763 }
764
765 @Override
766 public void setExpandoBridgeAttributes(
767 com.liferay.portal.service.ServiceContext serviceContext) {
768 _layoutSetBranch.setExpandoBridgeAttributes(serviceContext);
769 }
770
771 @Override
772 public java.lang.Object clone() {
773 return new LayoutSetBranchWrapper((LayoutSetBranch)_layoutSetBranch.clone());
774 }
775
776 @Override
777 public int compareTo(
778 com.liferay.portal.model.LayoutSetBranch layoutSetBranch) {
779 return _layoutSetBranch.compareTo(layoutSetBranch);
780 }
781
782 @Override
783 public int hashCode() {
784 return _layoutSetBranch.hashCode();
785 }
786
787 @Override
788 public com.liferay.portal.model.CacheModel<com.liferay.portal.model.LayoutSetBranch> toCacheModel() {
789 return _layoutSetBranch.toCacheModel();
790 }
791
792 @Override
793 public com.liferay.portal.model.LayoutSetBranch toEscapedModel() {
794 return new LayoutSetBranchWrapper(_layoutSetBranch.toEscapedModel());
795 }
796
797 @Override
798 public com.liferay.portal.model.LayoutSetBranch toUnescapedModel() {
799 return new LayoutSetBranchWrapper(_layoutSetBranch.toUnescapedModel());
800 }
801
802 @Override
803 public java.lang.String toString() {
804 return _layoutSetBranch.toString();
805 }
806
807 @Override
808 public java.lang.String toXmlString() {
809 return _layoutSetBranch.toXmlString();
810 }
811
812 @Override
813 public void persist()
814 throws com.liferay.portal.kernel.exception.SystemException {
815 _layoutSetBranch.persist();
816 }
817
818 @Override
819 public com.liferay.portal.model.ColorScheme getColorScheme()
820 throws com.liferay.portal.kernel.exception.SystemException {
821 return _layoutSetBranch.getColorScheme();
822 }
823
824 @Override
825 public com.liferay.portal.model.Group getGroup()
826 throws com.liferay.portal.kernel.exception.PortalException,
827 com.liferay.portal.kernel.exception.SystemException {
828 return _layoutSetBranch.getGroup();
829 }
830
831 @Override
832 public com.liferay.portal.model.LayoutSet getLayoutSet() {
833 return _layoutSetBranch.getLayoutSet();
834 }
835
836 @Override
837 public long getLiveLogoId() {
838 return _layoutSetBranch.getLiveLogoId();
839 }
840
841 @Override
842 public com.liferay.portal.kernel.util.UnicodeProperties getSettingsProperties() {
843 return _layoutSetBranch.getSettingsProperties();
844 }
845
846 @Override
847 public java.lang.String getSettingsProperty(java.lang.String key) {
848 return _layoutSetBranch.getSettingsProperty(key);
849 }
850
851 @Override
852 public com.liferay.portal.model.Theme getTheme()
853 throws com.liferay.portal.kernel.exception.SystemException {
854 return _layoutSetBranch.getTheme();
855 }
856
857 @Override
858 public java.lang.String getThemeSetting(java.lang.String key,
859 java.lang.String device)
860 throws com.liferay.portal.kernel.exception.SystemException {
861 return _layoutSetBranch.getThemeSetting(key, device);
862 }
863
864 @Override
865 public com.liferay.portal.model.ColorScheme getWapColorScheme()
866 throws com.liferay.portal.kernel.exception.SystemException {
867 return _layoutSetBranch.getWapColorScheme();
868 }
869
870 @Override
871 public com.liferay.portal.model.Theme getWapTheme()
872 throws com.liferay.portal.kernel.exception.SystemException {
873 return _layoutSetBranch.getWapTheme();
874 }
875
876 @Override
877 public boolean isLayoutSetPrototypeLinkActive() {
878 return _layoutSetBranch.isLayoutSetPrototypeLinkActive();
879 }
880
881 @Override
882 public void setSettingsProperties(
883 com.liferay.portal.kernel.util.UnicodeProperties settingsProperties) {
884 _layoutSetBranch.setSettingsProperties(settingsProperties);
885 }
886
887 @Override
888 public boolean equals(Object obj) {
889 if (this == obj) {
890 return true;
891 }
892
893 if (!(obj instanceof LayoutSetBranchWrapper)) {
894 return false;
895 }
896
897 LayoutSetBranchWrapper layoutSetBranchWrapper = (LayoutSetBranchWrapper)obj;
898
899 if (Validator.equals(_layoutSetBranch,
900 layoutSetBranchWrapper._layoutSetBranch)) {
901 return true;
902 }
903
904 return false;
905 }
906
907
910 public LayoutSetBranch getWrappedLayoutSetBranch() {
911 return _layoutSetBranch;
912 }
913
914 @Override
915 public LayoutSetBranch getWrappedModel() {
916 return _layoutSetBranch;
917 }
918
919 @Override
920 public void resetOriginalValues() {
921 _layoutSetBranch.resetOriginalValues();
922 }
923
924 private LayoutSetBranch _layoutSetBranch;
925 }