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("mvccVersion", getMvccVersion());
056 attributes.put("layoutSetBranchId", getLayoutSetBranchId());
057 attributes.put("groupId", getGroupId());
058 attributes.put("companyId", getCompanyId());
059 attributes.put("userId", getUserId());
060 attributes.put("userName", getUserName());
061 attributes.put("createDate", getCreateDate());
062 attributes.put("modifiedDate", getModifiedDate());
063 attributes.put("privateLayout", getPrivateLayout());
064 attributes.put("name", getName());
065 attributes.put("description", getDescription());
066 attributes.put("master", getMaster());
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 mvccVersion = (Long)attributes.get("mvccVersion");
084
085 if (mvccVersion != null) {
086 setMvccVersion(mvccVersion);
087 }
088
089 Long layoutSetBranchId = (Long)attributes.get("layoutSetBranchId");
090
091 if (layoutSetBranchId != null) {
092 setLayoutSetBranchId(layoutSetBranchId);
093 }
094
095 Long groupId = (Long)attributes.get("groupId");
096
097 if (groupId != null) {
098 setGroupId(groupId);
099 }
100
101 Long companyId = (Long)attributes.get("companyId");
102
103 if (companyId != null) {
104 setCompanyId(companyId);
105 }
106
107 Long userId = (Long)attributes.get("userId");
108
109 if (userId != null) {
110 setUserId(userId);
111 }
112
113 String userName = (String)attributes.get("userName");
114
115 if (userName != null) {
116 setUserName(userName);
117 }
118
119 Date createDate = (Date)attributes.get("createDate");
120
121 if (createDate != null) {
122 setCreateDate(createDate);
123 }
124
125 Date modifiedDate = (Date)attributes.get("modifiedDate");
126
127 if (modifiedDate != null) {
128 setModifiedDate(modifiedDate);
129 }
130
131 Boolean privateLayout = (Boolean)attributes.get("privateLayout");
132
133 if (privateLayout != null) {
134 setPrivateLayout(privateLayout);
135 }
136
137 String name = (String)attributes.get("name");
138
139 if (name != null) {
140 setName(name);
141 }
142
143 String description = (String)attributes.get("description");
144
145 if (description != null) {
146 setDescription(description);
147 }
148
149 Boolean master = (Boolean)attributes.get("master");
150
151 if (master != null) {
152 setMaster(master);
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 @Override
213 public java.lang.Object clone() {
214 return new LayoutSetBranchWrapper((LayoutSetBranch)_layoutSetBranch.clone());
215 }
216
217 @Override
218 public int compareTo(
219 com.liferay.portal.model.LayoutSetBranch layoutSetBranch) {
220 return _layoutSetBranch.compareTo(layoutSetBranch);
221 }
222
223 @Override
224 public com.liferay.portal.model.ColorScheme getColorScheme() {
225 return _layoutSetBranch.getColorScheme();
226 }
227
228
233 @Override
234 public java.lang.String getColorSchemeId() {
235 return _layoutSetBranch.getColorSchemeId();
236 }
237
238
243 @Override
244 public long getCompanyId() {
245 return _layoutSetBranch.getCompanyId();
246 }
247
248
253 @Override
254 public Date getCreateDate() {
255 return _layoutSetBranch.getCreateDate();
256 }
257
258
263 @Override
264 public java.lang.String getCss() {
265 return _layoutSetBranch.getCss();
266 }
267
268
273 @Override
274 public java.lang.String getDescription() {
275 return _layoutSetBranch.getDescription();
276 }
277
278 @Override
279 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
280 return _layoutSetBranch.getExpandoBridge();
281 }
282
283 @Override
284 public com.liferay.portal.model.Group getGroup()
285 throws com.liferay.portal.kernel.exception.PortalException {
286 return _layoutSetBranch.getGroup();
287 }
288
289
294 @Override
295 public long getGroupId() {
296 return _layoutSetBranch.getGroupId();
297 }
298
299 @Override
300 public com.liferay.portal.model.LayoutSet getLayoutSet() {
301 return _layoutSetBranch.getLayoutSet();
302 }
303
304
309 @Override
310 public long getLayoutSetBranchId() {
311 return _layoutSetBranch.getLayoutSetBranchId();
312 }
313
314
319 @Override
320 public boolean getLayoutSetPrototypeLinkEnabled() {
321 return _layoutSetBranch.getLayoutSetPrototypeLinkEnabled();
322 }
323
324
329 @Override
330 public java.lang.String getLayoutSetPrototypeUuid() {
331 return _layoutSetBranch.getLayoutSetPrototypeUuid();
332 }
333
334 @Override
335 public long getLiveLogoId() {
336 return _layoutSetBranch.getLiveLogoId();
337 }
338
339 @Override
340 public boolean getLogo() {
341 return _layoutSetBranch.getLogo();
342 }
343
344
349 @Override
350 public long getLogoId() {
351 return _layoutSetBranch.getLogoId();
352 }
353
354
359 @Override
360 public boolean getMaster() {
361 return _layoutSetBranch.getMaster();
362 }
363
364
369 @Override
370 public Date getModifiedDate() {
371 return _layoutSetBranch.getModifiedDate();
372 }
373
374
379 @Override
380 public long getMvccVersion() {
381 return _layoutSetBranch.getMvccVersion();
382 }
383
384
389 @Override
390 public java.lang.String getName() {
391 return _layoutSetBranch.getName();
392 }
393
394
399 @Override
400 public long getPrimaryKey() {
401 return _layoutSetBranch.getPrimaryKey();
402 }
403
404 @Override
405 public java.io.Serializable getPrimaryKeyObj() {
406 return _layoutSetBranch.getPrimaryKeyObj();
407 }
408
409
414 @Override
415 public boolean getPrivateLayout() {
416 return _layoutSetBranch.getPrivateLayout();
417 }
418
419
424 @Override
425 public java.lang.String getSettings() {
426 return _layoutSetBranch.getSettings();
427 }
428
429 @Override
430 public com.liferay.portal.kernel.util.UnicodeProperties getSettingsProperties() {
431 return _layoutSetBranch.getSettingsProperties();
432 }
433
434 @Override
435 public java.lang.String getSettingsProperty(java.lang.String key) {
436 return _layoutSetBranch.getSettingsProperty(key);
437 }
438
439 @Override
440 public com.liferay.portal.model.Theme getTheme() {
441 return _layoutSetBranch.getTheme();
442 }
443
444
449 @Override
450 public java.lang.String getThemeId() {
451 return _layoutSetBranch.getThemeId();
452 }
453
454 @Override
455 public java.lang.String getThemeSetting(java.lang.String key,
456 java.lang.String device) {
457 return _layoutSetBranch.getThemeSetting(key, device);
458 }
459
460
465 @Override
466 public long getUserId() {
467 return _layoutSetBranch.getUserId();
468 }
469
470
475 @Override
476 public java.lang.String getUserName() {
477 return _layoutSetBranch.getUserName();
478 }
479
480
485 @Override
486 public java.lang.String getUserUuid() {
487 return _layoutSetBranch.getUserUuid();
488 }
489
490 @Override
491 public com.liferay.portal.model.ColorScheme getWapColorScheme() {
492 return _layoutSetBranch.getWapColorScheme();
493 }
494
495
500 @Override
501 public java.lang.String getWapColorSchemeId() {
502 return _layoutSetBranch.getWapColorSchemeId();
503 }
504
505 @Override
506 public com.liferay.portal.model.Theme getWapTheme() {
507 return _layoutSetBranch.getWapTheme();
508 }
509
510
515 @Override
516 public java.lang.String getWapThemeId() {
517 return _layoutSetBranch.getWapThemeId();
518 }
519
520 @Override
521 public int hashCode() {
522 return _layoutSetBranch.hashCode();
523 }
524
525 @Override
526 public boolean isCachedModel() {
527 return _layoutSetBranch.isCachedModel();
528 }
529
530 @Override
531 public boolean isEscapedModel() {
532 return _layoutSetBranch.isEscapedModel();
533 }
534
535 @Override
536 public boolean isLayoutSetPrototypeLinkActive() {
537 return _layoutSetBranch.isLayoutSetPrototypeLinkActive();
538 }
539
540
545 @Override
546 public boolean isLayoutSetPrototypeLinkEnabled() {
547 return _layoutSetBranch.isLayoutSetPrototypeLinkEnabled();
548 }
549
550 @Override
551 public boolean isLogo() {
552 return _layoutSetBranch.isLogo();
553 }
554
555
560 @Override
561 public boolean isMaster() {
562 return _layoutSetBranch.isMaster();
563 }
564
565 @Override
566 public boolean isNew() {
567 return _layoutSetBranch.isNew();
568 }
569
570
575 @Override
576 public boolean isPrivateLayout() {
577 return _layoutSetBranch.isPrivateLayout();
578 }
579
580 @Override
581 public void persist() {
582 _layoutSetBranch.persist();
583 }
584
585 @Override
586 public void setCachedModel(boolean cachedModel) {
587 _layoutSetBranch.setCachedModel(cachedModel);
588 }
589
590
595 @Override
596 public void setColorSchemeId(java.lang.String colorSchemeId) {
597 _layoutSetBranch.setColorSchemeId(colorSchemeId);
598 }
599
600
605 @Override
606 public void setCompanyId(long companyId) {
607 _layoutSetBranch.setCompanyId(companyId);
608 }
609
610
615 @Override
616 public void setCreateDate(Date createDate) {
617 _layoutSetBranch.setCreateDate(createDate);
618 }
619
620
625 @Override
626 public void setCss(java.lang.String css) {
627 _layoutSetBranch.setCss(css);
628 }
629
630
635 @Override
636 public void setDescription(java.lang.String description) {
637 _layoutSetBranch.setDescription(description);
638 }
639
640 @Override
641 public void setExpandoBridgeAttributes(BaseModel<?> baseModel) {
642 _layoutSetBranch.setExpandoBridgeAttributes(baseModel);
643 }
644
645 @Override
646 public void setExpandoBridgeAttributes(
647 com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
648 _layoutSetBranch.setExpandoBridgeAttributes(expandoBridge);
649 }
650
651 @Override
652 public void setExpandoBridgeAttributes(
653 com.liferay.portal.service.ServiceContext serviceContext) {
654 _layoutSetBranch.setExpandoBridgeAttributes(serviceContext);
655 }
656
657
662 @Override
663 public void setGroupId(long groupId) {
664 _layoutSetBranch.setGroupId(groupId);
665 }
666
667
672 @Override
673 public void setLayoutSetBranchId(long layoutSetBranchId) {
674 _layoutSetBranch.setLayoutSetBranchId(layoutSetBranchId);
675 }
676
677
682 @Override
683 public void setLayoutSetPrototypeLinkEnabled(
684 boolean layoutSetPrototypeLinkEnabled) {
685 _layoutSetBranch.setLayoutSetPrototypeLinkEnabled(layoutSetPrototypeLinkEnabled);
686 }
687
688
693 @Override
694 public void setLayoutSetPrototypeUuid(
695 java.lang.String layoutSetPrototypeUuid) {
696 _layoutSetBranch.setLayoutSetPrototypeUuid(layoutSetPrototypeUuid);
697 }
698
699
704 @Override
705 public void setLogoId(long logoId) {
706 _layoutSetBranch.setLogoId(logoId);
707 }
708
709
714 @Override
715 public void setMaster(boolean master) {
716 _layoutSetBranch.setMaster(master);
717 }
718
719
724 @Override
725 public void setModifiedDate(Date modifiedDate) {
726 _layoutSetBranch.setModifiedDate(modifiedDate);
727 }
728
729
734 @Override
735 public void setMvccVersion(long mvccVersion) {
736 _layoutSetBranch.setMvccVersion(mvccVersion);
737 }
738
739
744 @Override
745 public void setName(java.lang.String name) {
746 _layoutSetBranch.setName(name);
747 }
748
749 @Override
750 public void setNew(boolean n) {
751 _layoutSetBranch.setNew(n);
752 }
753
754
759 @Override
760 public void setPrimaryKey(long primaryKey) {
761 _layoutSetBranch.setPrimaryKey(primaryKey);
762 }
763
764 @Override
765 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
766 _layoutSetBranch.setPrimaryKeyObj(primaryKeyObj);
767 }
768
769
774 @Override
775 public void setPrivateLayout(boolean privateLayout) {
776 _layoutSetBranch.setPrivateLayout(privateLayout);
777 }
778
779
784 @Override
785 public void setSettings(java.lang.String settings) {
786 _layoutSetBranch.setSettings(settings);
787 }
788
789 @Override
790 public void setSettingsProperties(
791 com.liferay.portal.kernel.util.UnicodeProperties settingsProperties) {
792 _layoutSetBranch.setSettingsProperties(settingsProperties);
793 }
794
795
800 @Override
801 public void setThemeId(java.lang.String themeId) {
802 _layoutSetBranch.setThemeId(themeId);
803 }
804
805
810 @Override
811 public void setUserId(long userId) {
812 _layoutSetBranch.setUserId(userId);
813 }
814
815
820 @Override
821 public void setUserName(java.lang.String userName) {
822 _layoutSetBranch.setUserName(userName);
823 }
824
825
830 @Override
831 public void setUserUuid(java.lang.String userUuid) {
832 _layoutSetBranch.setUserUuid(userUuid);
833 }
834
835
840 @Override
841 public void setWapColorSchemeId(java.lang.String wapColorSchemeId) {
842 _layoutSetBranch.setWapColorSchemeId(wapColorSchemeId);
843 }
844
845
850 @Override
851 public void setWapThemeId(java.lang.String wapThemeId) {
852 _layoutSetBranch.setWapThemeId(wapThemeId);
853 }
854
855 @Override
856 public CacheModel<com.liferay.portal.model.LayoutSetBranch> toCacheModel() {
857 return _layoutSetBranch.toCacheModel();
858 }
859
860 @Override
861 public com.liferay.portal.model.LayoutSetBranch toEscapedModel() {
862 return new LayoutSetBranchWrapper(_layoutSetBranch.toEscapedModel());
863 }
864
865 @Override
866 public java.lang.String toString() {
867 return _layoutSetBranch.toString();
868 }
869
870 @Override
871 public com.liferay.portal.model.LayoutSetBranch toUnescapedModel() {
872 return new LayoutSetBranchWrapper(_layoutSetBranch.toUnescapedModel());
873 }
874
875 @Override
876 public java.lang.String toXmlString() {
877 return _layoutSetBranch.toXmlString();
878 }
879
880 @Override
881 public boolean equals(Object obj) {
882 if (this == obj) {
883 return true;
884 }
885
886 if (!(obj instanceof LayoutSetBranchWrapper)) {
887 return false;
888 }
889
890 LayoutSetBranchWrapper layoutSetBranchWrapper = (LayoutSetBranchWrapper)obj;
891
892 if (Validator.equals(_layoutSetBranch,
893 layoutSetBranchWrapper._layoutSetBranch)) {
894 return true;
895 }
896
897 return false;
898 }
899
900 @Override
901 public LayoutSetBranch getWrappedModel() {
902 return _layoutSetBranch;
903 }
904
905 @Override
906 public boolean isEntityCacheEnabled() {
907 return _layoutSetBranch.isEntityCacheEnabled();
908 }
909
910 @Override
911 public boolean isFinderCacheEnabled() {
912 return _layoutSetBranch.isFinderCacheEnabled();
913 }
914
915 @Override
916 public void resetOriginalValues() {
917 _layoutSetBranch.resetOriginalValues();
918 }
919
920 private final LayoutSetBranch _layoutSetBranch;
921 }