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 public Class<?> getModelClass() {
039 return LayoutSetBranch.class;
040 }
041
042 public String getModelClassName() {
043 return LayoutSetBranch.class.getName();
044 }
045
046 public Map<String, Object> getModelAttributes() {
047 Map<String, Object> attributes = new HashMap<String, Object>();
048
049 attributes.put("layoutSetBranchId", getLayoutSetBranchId());
050 attributes.put("groupId", getGroupId());
051 attributes.put("companyId", getCompanyId());
052 attributes.put("userId", getUserId());
053 attributes.put("userName", getUserName());
054 attributes.put("createDate", getCreateDate());
055 attributes.put("modifiedDate", getModifiedDate());
056 attributes.put("privateLayout", getPrivateLayout());
057 attributes.put("name", getName());
058 attributes.put("description", getDescription());
059 attributes.put("master", getMaster());
060 attributes.put("logo", getLogo());
061 attributes.put("logoId", getLogoId());
062 attributes.put("themeId", getThemeId());
063 attributes.put("colorSchemeId", getColorSchemeId());
064 attributes.put("wapThemeId", getWapThemeId());
065 attributes.put("wapColorSchemeId", getWapColorSchemeId());
066 attributes.put("css", getCss());
067 attributes.put("settings", getSettings());
068 attributes.put("layoutSetPrototypeUuid", getLayoutSetPrototypeUuid());
069 attributes.put("layoutSetPrototypeLinkEnabled",
070 getLayoutSetPrototypeLinkEnabled());
071
072 return attributes;
073 }
074
075 public void setModelAttributes(Map<String, Object> attributes) {
076 Long layoutSetBranchId = (Long)attributes.get("layoutSetBranchId");
077
078 if (layoutSetBranchId != null) {
079 setLayoutSetBranchId(layoutSetBranchId);
080 }
081
082 Long groupId = (Long)attributes.get("groupId");
083
084 if (groupId != null) {
085 setGroupId(groupId);
086 }
087
088 Long companyId = (Long)attributes.get("companyId");
089
090 if (companyId != null) {
091 setCompanyId(companyId);
092 }
093
094 Long userId = (Long)attributes.get("userId");
095
096 if (userId != null) {
097 setUserId(userId);
098 }
099
100 String userName = (String)attributes.get("userName");
101
102 if (userName != null) {
103 setUserName(userName);
104 }
105
106 Date createDate = (Date)attributes.get("createDate");
107
108 if (createDate != null) {
109 setCreateDate(createDate);
110 }
111
112 Date modifiedDate = (Date)attributes.get("modifiedDate");
113
114 if (modifiedDate != null) {
115 setModifiedDate(modifiedDate);
116 }
117
118 Boolean privateLayout = (Boolean)attributes.get("privateLayout");
119
120 if (privateLayout != null) {
121 setPrivateLayout(privateLayout);
122 }
123
124 String name = (String)attributes.get("name");
125
126 if (name != null) {
127 setName(name);
128 }
129
130 String description = (String)attributes.get("description");
131
132 if (description != null) {
133 setDescription(description);
134 }
135
136 Boolean master = (Boolean)attributes.get("master");
137
138 if (master != null) {
139 setMaster(master);
140 }
141
142 Boolean logo = (Boolean)attributes.get("logo");
143
144 if (logo != null) {
145 setLogo(logo);
146 }
147
148 Long logoId = (Long)attributes.get("logoId");
149
150 if (logoId != null) {
151 setLogoId(logoId);
152 }
153
154 String themeId = (String)attributes.get("themeId");
155
156 if (themeId != null) {
157 setThemeId(themeId);
158 }
159
160 String colorSchemeId = (String)attributes.get("colorSchemeId");
161
162 if (colorSchemeId != null) {
163 setColorSchemeId(colorSchemeId);
164 }
165
166 String wapThemeId = (String)attributes.get("wapThemeId");
167
168 if (wapThemeId != null) {
169 setWapThemeId(wapThemeId);
170 }
171
172 String wapColorSchemeId = (String)attributes.get("wapColorSchemeId");
173
174 if (wapColorSchemeId != null) {
175 setWapColorSchemeId(wapColorSchemeId);
176 }
177
178 String css = (String)attributes.get("css");
179
180 if (css != null) {
181 setCss(css);
182 }
183
184 String settings = (String)attributes.get("settings");
185
186 if (settings != null) {
187 setSettings(settings);
188 }
189
190 String layoutSetPrototypeUuid = (String)attributes.get(
191 "layoutSetPrototypeUuid");
192
193 if (layoutSetPrototypeUuid != null) {
194 setLayoutSetPrototypeUuid(layoutSetPrototypeUuid);
195 }
196
197 Boolean layoutSetPrototypeLinkEnabled = (Boolean)attributes.get(
198 "layoutSetPrototypeLinkEnabled");
199
200 if (layoutSetPrototypeLinkEnabled != null) {
201 setLayoutSetPrototypeLinkEnabled(layoutSetPrototypeLinkEnabled);
202 }
203 }
204
205
210 public long getPrimaryKey() {
211 return _layoutSetBranch.getPrimaryKey();
212 }
213
214
219 public void setPrimaryKey(long primaryKey) {
220 _layoutSetBranch.setPrimaryKey(primaryKey);
221 }
222
223
228 public long getLayoutSetBranchId() {
229 return _layoutSetBranch.getLayoutSetBranchId();
230 }
231
232
237 public void setLayoutSetBranchId(long layoutSetBranchId) {
238 _layoutSetBranch.setLayoutSetBranchId(layoutSetBranchId);
239 }
240
241
246 public long getGroupId() {
247 return _layoutSetBranch.getGroupId();
248 }
249
250
255 public void setGroupId(long groupId) {
256 _layoutSetBranch.setGroupId(groupId);
257 }
258
259
264 public long getCompanyId() {
265 return _layoutSetBranch.getCompanyId();
266 }
267
268
273 public void setCompanyId(long companyId) {
274 _layoutSetBranch.setCompanyId(companyId);
275 }
276
277
282 public long getUserId() {
283 return _layoutSetBranch.getUserId();
284 }
285
286
291 public void setUserId(long userId) {
292 _layoutSetBranch.setUserId(userId);
293 }
294
295
301 public java.lang.String getUserUuid()
302 throws com.liferay.portal.kernel.exception.SystemException {
303 return _layoutSetBranch.getUserUuid();
304 }
305
306
311 public void setUserUuid(java.lang.String userUuid) {
312 _layoutSetBranch.setUserUuid(userUuid);
313 }
314
315
320 public java.lang.String getUserName() {
321 return _layoutSetBranch.getUserName();
322 }
323
324
329 public void setUserName(java.lang.String userName) {
330 _layoutSetBranch.setUserName(userName);
331 }
332
333
338 public java.util.Date getCreateDate() {
339 return _layoutSetBranch.getCreateDate();
340 }
341
342
347 public void setCreateDate(java.util.Date createDate) {
348 _layoutSetBranch.setCreateDate(createDate);
349 }
350
351
356 public java.util.Date getModifiedDate() {
357 return _layoutSetBranch.getModifiedDate();
358 }
359
360
365 public void setModifiedDate(java.util.Date modifiedDate) {
366 _layoutSetBranch.setModifiedDate(modifiedDate);
367 }
368
369
374 public boolean getPrivateLayout() {
375 return _layoutSetBranch.getPrivateLayout();
376 }
377
378
383 public boolean isPrivateLayout() {
384 return _layoutSetBranch.isPrivateLayout();
385 }
386
387
392 public void setPrivateLayout(boolean privateLayout) {
393 _layoutSetBranch.setPrivateLayout(privateLayout);
394 }
395
396
401 public java.lang.String getName() {
402 return _layoutSetBranch.getName();
403 }
404
405
410 public void setName(java.lang.String name) {
411 _layoutSetBranch.setName(name);
412 }
413
414
419 public java.lang.String getDescription() {
420 return _layoutSetBranch.getDescription();
421 }
422
423
428 public void setDescription(java.lang.String description) {
429 _layoutSetBranch.setDescription(description);
430 }
431
432
437 public boolean getMaster() {
438 return _layoutSetBranch.getMaster();
439 }
440
441
446 public boolean isMaster() {
447 return _layoutSetBranch.isMaster();
448 }
449
450
455 public void setMaster(boolean master) {
456 _layoutSetBranch.setMaster(master);
457 }
458
459
464 public boolean getLogo() {
465 return _layoutSetBranch.getLogo();
466 }
467
468
473 public boolean isLogo() {
474 return _layoutSetBranch.isLogo();
475 }
476
477
482 public void setLogo(boolean logo) {
483 _layoutSetBranch.setLogo(logo);
484 }
485
486
491 public long getLogoId() {
492 return _layoutSetBranch.getLogoId();
493 }
494
495
500 public void setLogoId(long logoId) {
501 _layoutSetBranch.setLogoId(logoId);
502 }
503
504
509 public java.lang.String getThemeId() {
510 return _layoutSetBranch.getThemeId();
511 }
512
513
518 public void setThemeId(java.lang.String themeId) {
519 _layoutSetBranch.setThemeId(themeId);
520 }
521
522
527 public java.lang.String getColorSchemeId() {
528 return _layoutSetBranch.getColorSchemeId();
529 }
530
531
536 public void setColorSchemeId(java.lang.String colorSchemeId) {
537 _layoutSetBranch.setColorSchemeId(colorSchemeId);
538 }
539
540
545 public java.lang.String getWapThemeId() {
546 return _layoutSetBranch.getWapThemeId();
547 }
548
549
554 public void setWapThemeId(java.lang.String wapThemeId) {
555 _layoutSetBranch.setWapThemeId(wapThemeId);
556 }
557
558
563 public java.lang.String getWapColorSchemeId() {
564 return _layoutSetBranch.getWapColorSchemeId();
565 }
566
567
572 public void setWapColorSchemeId(java.lang.String wapColorSchemeId) {
573 _layoutSetBranch.setWapColorSchemeId(wapColorSchemeId);
574 }
575
576
581 public java.lang.String getCss() {
582 return _layoutSetBranch.getCss();
583 }
584
585
590 public void setCss(java.lang.String css) {
591 _layoutSetBranch.setCss(css);
592 }
593
594
599 public java.lang.String getSettings() {
600 return _layoutSetBranch.getSettings();
601 }
602
603
608 public void setSettings(java.lang.String settings) {
609 _layoutSetBranch.setSettings(settings);
610 }
611
612
617 public java.lang.String getLayoutSetPrototypeUuid() {
618 return _layoutSetBranch.getLayoutSetPrototypeUuid();
619 }
620
621
626 public void setLayoutSetPrototypeUuid(
627 java.lang.String layoutSetPrototypeUuid) {
628 _layoutSetBranch.setLayoutSetPrototypeUuid(layoutSetPrototypeUuid);
629 }
630
631
636 public boolean getLayoutSetPrototypeLinkEnabled() {
637 return _layoutSetBranch.getLayoutSetPrototypeLinkEnabled();
638 }
639
640
645 public boolean isLayoutSetPrototypeLinkEnabled() {
646 return _layoutSetBranch.isLayoutSetPrototypeLinkEnabled();
647 }
648
649
654 public void setLayoutSetPrototypeLinkEnabled(
655 boolean layoutSetPrototypeLinkEnabled) {
656 _layoutSetBranch.setLayoutSetPrototypeLinkEnabled(layoutSetPrototypeLinkEnabled);
657 }
658
659 public boolean isNew() {
660 return _layoutSetBranch.isNew();
661 }
662
663 public void setNew(boolean n) {
664 _layoutSetBranch.setNew(n);
665 }
666
667 public boolean isCachedModel() {
668 return _layoutSetBranch.isCachedModel();
669 }
670
671 public void setCachedModel(boolean cachedModel) {
672 _layoutSetBranch.setCachedModel(cachedModel);
673 }
674
675 public boolean isEscapedModel() {
676 return _layoutSetBranch.isEscapedModel();
677 }
678
679 public java.io.Serializable getPrimaryKeyObj() {
680 return _layoutSetBranch.getPrimaryKeyObj();
681 }
682
683 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
684 _layoutSetBranch.setPrimaryKeyObj(primaryKeyObj);
685 }
686
687 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
688 return _layoutSetBranch.getExpandoBridge();
689 }
690
691 public void setExpandoBridgeAttributes(
692 com.liferay.portal.service.ServiceContext serviceContext) {
693 _layoutSetBranch.setExpandoBridgeAttributes(serviceContext);
694 }
695
696 @Override
697 public java.lang.Object clone() {
698 return new LayoutSetBranchWrapper((LayoutSetBranch)_layoutSetBranch.clone());
699 }
700
701 public int compareTo(
702 com.liferay.portal.model.LayoutSetBranch layoutSetBranch) {
703 return _layoutSetBranch.compareTo(layoutSetBranch);
704 }
705
706 @Override
707 public int hashCode() {
708 return _layoutSetBranch.hashCode();
709 }
710
711 public com.liferay.portal.model.CacheModel<com.liferay.portal.model.LayoutSetBranch> toCacheModel() {
712 return _layoutSetBranch.toCacheModel();
713 }
714
715 public com.liferay.portal.model.LayoutSetBranch toEscapedModel() {
716 return new LayoutSetBranchWrapper(_layoutSetBranch.toEscapedModel());
717 }
718
719 public com.liferay.portal.model.LayoutSetBranch toUnescapedModel() {
720 return new LayoutSetBranchWrapper(_layoutSetBranch.toUnescapedModel());
721 }
722
723 @Override
724 public java.lang.String toString() {
725 return _layoutSetBranch.toString();
726 }
727
728 public java.lang.String toXmlString() {
729 return _layoutSetBranch.toXmlString();
730 }
731
732 public void persist()
733 throws com.liferay.portal.kernel.exception.SystemException {
734 _layoutSetBranch.persist();
735 }
736
737 public com.liferay.portal.model.ColorScheme getColorScheme()
738 throws com.liferay.portal.kernel.exception.SystemException {
739 return _layoutSetBranch.getColorScheme();
740 }
741
742 public com.liferay.portal.model.Group getGroup()
743 throws com.liferay.portal.kernel.exception.PortalException,
744 com.liferay.portal.kernel.exception.SystemException {
745 return _layoutSetBranch.getGroup();
746 }
747
748 public com.liferay.portal.model.LayoutSet getLayoutSet() {
749 return _layoutSetBranch.getLayoutSet();
750 }
751
752 public long getLiveLogoId() {
753 return _layoutSetBranch.getLiveLogoId();
754 }
755
756 public com.liferay.portal.kernel.util.UnicodeProperties getSettingsProperties() {
757 return _layoutSetBranch.getSettingsProperties();
758 }
759
760 public java.lang.String getSettingsProperty(java.lang.String key) {
761 return _layoutSetBranch.getSettingsProperty(key);
762 }
763
764 public com.liferay.portal.model.Theme getTheme()
765 throws com.liferay.portal.kernel.exception.SystemException {
766 return _layoutSetBranch.getTheme();
767 }
768
769 public java.lang.String getThemeSetting(java.lang.String key,
770 java.lang.String device)
771 throws com.liferay.portal.kernel.exception.SystemException {
772 return _layoutSetBranch.getThemeSetting(key, device);
773 }
774
775 public com.liferay.portal.model.ColorScheme getWapColorScheme()
776 throws com.liferay.portal.kernel.exception.SystemException {
777 return _layoutSetBranch.getWapColorScheme();
778 }
779
780 public com.liferay.portal.model.Theme getWapTheme()
781 throws com.liferay.portal.kernel.exception.SystemException {
782 return _layoutSetBranch.getWapTheme();
783 }
784
785 public boolean isLayoutSetPrototypeLinkActive() {
786 return _layoutSetBranch.isLayoutSetPrototypeLinkActive();
787 }
788
789 public void setSettingsProperties(
790 com.liferay.portal.kernel.util.UnicodeProperties settingsProperties) {
791 _layoutSetBranch.setSettingsProperties(settingsProperties);
792 }
793
794 @Override
795 public boolean equals(Object obj) {
796 if (this == obj) {
797 return true;
798 }
799
800 if (!(obj instanceof LayoutSetBranchWrapper)) {
801 return false;
802 }
803
804 LayoutSetBranchWrapper layoutSetBranchWrapper = (LayoutSetBranchWrapper)obj;
805
806 if (Validator.equals(_layoutSetBranch,
807 layoutSetBranchWrapper._layoutSetBranch)) {
808 return true;
809 }
810
811 return false;
812 }
813
814
817 public LayoutSetBranch getWrappedLayoutSetBranch() {
818 return _layoutSetBranch;
819 }
820
821 public LayoutSetBranch getWrappedModel() {
822 return _layoutSetBranch;
823 }
824
825 public void resetOriginalValues() {
826 _layoutSetBranch.resetOriginalValues();
827 }
828
829 private LayoutSetBranch _layoutSetBranch;
830 }