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 import com.liferay.portal.service.ServiceContext;
021
022 import com.liferay.portlet.expando.model.ExpandoBridge;
023
024 import java.io.Serializable;
025
026 import java.util.Date;
027 import java.util.HashMap;
028 import java.util.Map;
029
030
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("wapThemeId", getWapThemeId());
076 attributes.put("wapColorSchemeId", getWapColorSchemeId());
077 attributes.put("css", getCss());
078 attributes.put("settings", getSettings());
079 attributes.put("layoutSetPrototypeUuid", getLayoutSetPrototypeUuid());
080 attributes.put("layoutSetPrototypeLinkEnabled",
081 getLayoutSetPrototypeLinkEnabled());
082
083 return attributes;
084 }
085
086 @Override
087 public void setModelAttributes(Map<String, Object> attributes) {
088 Long mvccVersion = (Long)attributes.get("mvccVersion");
089
090 if (mvccVersion != null) {
091 setMvccVersion(mvccVersion);
092 }
093
094 Long layoutSetBranchId = (Long)attributes.get("layoutSetBranchId");
095
096 if (layoutSetBranchId != null) {
097 setLayoutSetBranchId(layoutSetBranchId);
098 }
099
100 Long groupId = (Long)attributes.get("groupId");
101
102 if (groupId != null) {
103 setGroupId(groupId);
104 }
105
106 Long companyId = (Long)attributes.get("companyId");
107
108 if (companyId != null) {
109 setCompanyId(companyId);
110 }
111
112 Long userId = (Long)attributes.get("userId");
113
114 if (userId != null) {
115 setUserId(userId);
116 }
117
118 String userName = (String)attributes.get("userName");
119
120 if (userName != null) {
121 setUserName(userName);
122 }
123
124 Date createDate = (Date)attributes.get("createDate");
125
126 if (createDate != null) {
127 setCreateDate(createDate);
128 }
129
130 Date modifiedDate = (Date)attributes.get("modifiedDate");
131
132 if (modifiedDate != null) {
133 setModifiedDate(modifiedDate);
134 }
135
136 Boolean privateLayout = (Boolean)attributes.get("privateLayout");
137
138 if (privateLayout != null) {
139 setPrivateLayout(privateLayout);
140 }
141
142 String name = (String)attributes.get("name");
143
144 if (name != null) {
145 setName(name);
146 }
147
148 String description = (String)attributes.get("description");
149
150 if (description != null) {
151 setDescription(description);
152 }
153
154 Boolean master = (Boolean)attributes.get("master");
155
156 if (master != null) {
157 setMaster(master);
158 }
159
160 Long logoId = (Long)attributes.get("logoId");
161
162 if (logoId != null) {
163 setLogoId(logoId);
164 }
165
166 String themeId = (String)attributes.get("themeId");
167
168 if (themeId != null) {
169 setThemeId(themeId);
170 }
171
172 String colorSchemeId = (String)attributes.get("colorSchemeId");
173
174 if (colorSchemeId != null) {
175 setColorSchemeId(colorSchemeId);
176 }
177
178 String wapThemeId = (String)attributes.get("wapThemeId");
179
180 if (wapThemeId != null) {
181 setWapThemeId(wapThemeId);
182 }
183
184 String wapColorSchemeId = (String)attributes.get("wapColorSchemeId");
185
186 if (wapColorSchemeId != null) {
187 setWapColorSchemeId(wapColorSchemeId);
188 }
189
190 String css = (String)attributes.get("css");
191
192 if (css != null) {
193 setCss(css);
194 }
195
196 String settings = (String)attributes.get("settings");
197
198 if (settings != null) {
199 setSettings(settings);
200 }
201
202 String layoutSetPrototypeUuid = (String)attributes.get(
203 "layoutSetPrototypeUuid");
204
205 if (layoutSetPrototypeUuid != null) {
206 setLayoutSetPrototypeUuid(layoutSetPrototypeUuid);
207 }
208
209 Boolean layoutSetPrototypeLinkEnabled = (Boolean)attributes.get(
210 "layoutSetPrototypeLinkEnabled");
211
212 if (layoutSetPrototypeLinkEnabled != null) {
213 setLayoutSetPrototypeLinkEnabled(layoutSetPrototypeLinkEnabled);
214 }
215 }
216
217 @Override
218 public java.lang.Object clone() {
219 return new LayoutSetBranchWrapper((LayoutSetBranch)_layoutSetBranch.clone());
220 }
221
222 @Override
223 public int compareTo(
224 com.liferay.portal.model.LayoutSetBranch layoutSetBranch) {
225 return _layoutSetBranch.compareTo(layoutSetBranch);
226 }
227
228 @Override
229 public com.liferay.portal.model.ColorScheme getColorScheme() {
230 return _layoutSetBranch.getColorScheme();
231 }
232
233
238 @Override
239 public java.lang.String getColorSchemeId() {
240 return _layoutSetBranch.getColorSchemeId();
241 }
242
243
248 @Override
249 public long getCompanyId() {
250 return _layoutSetBranch.getCompanyId();
251 }
252
253
258 @Override
259 public Date getCreateDate() {
260 return _layoutSetBranch.getCreateDate();
261 }
262
263
268 @Override
269 public java.lang.String getCss() {
270 return _layoutSetBranch.getCss();
271 }
272
273
278 @Override
279 public java.lang.String getDescription() {
280 return _layoutSetBranch.getDescription();
281 }
282
283 @Override
284 public ExpandoBridge getExpandoBridge() {
285 return _layoutSetBranch.getExpandoBridge();
286 }
287
288 @Override
289 public com.liferay.portal.model.Group getGroup()
290 throws com.liferay.portal.kernel.exception.PortalException {
291 return _layoutSetBranch.getGroup();
292 }
293
294
299 @Override
300 public long getGroupId() {
301 return _layoutSetBranch.getGroupId();
302 }
303
304 @Override
305 public com.liferay.portal.model.LayoutSet getLayoutSet() {
306 return _layoutSetBranch.getLayoutSet();
307 }
308
309
314 @Override
315 public long getLayoutSetBranchId() {
316 return _layoutSetBranch.getLayoutSetBranchId();
317 }
318
319
324 @Override
325 public boolean getLayoutSetPrototypeLinkEnabled() {
326 return _layoutSetBranch.getLayoutSetPrototypeLinkEnabled();
327 }
328
329
334 @Override
335 public java.lang.String getLayoutSetPrototypeUuid() {
336 return _layoutSetBranch.getLayoutSetPrototypeUuid();
337 }
338
339 @Override
340 public long getLiveLogoId() {
341 return _layoutSetBranch.getLiveLogoId();
342 }
343
344 @Override
345 public boolean getLogo() {
346 return _layoutSetBranch.getLogo();
347 }
348
349
354 @Override
355 public long getLogoId() {
356 return _layoutSetBranch.getLogoId();
357 }
358
359
364 @Override
365 public boolean getMaster() {
366 return _layoutSetBranch.getMaster();
367 }
368
369
374 @Override
375 public Date getModifiedDate() {
376 return _layoutSetBranch.getModifiedDate();
377 }
378
379
384 @Override
385 public long getMvccVersion() {
386 return _layoutSetBranch.getMvccVersion();
387 }
388
389
394 @Override
395 public java.lang.String getName() {
396 return _layoutSetBranch.getName();
397 }
398
399
404 @Override
405 public long getPrimaryKey() {
406 return _layoutSetBranch.getPrimaryKey();
407 }
408
409 @Override
410 public Serializable getPrimaryKeyObj() {
411 return _layoutSetBranch.getPrimaryKeyObj();
412 }
413
414
419 @Override
420 public boolean getPrivateLayout() {
421 return _layoutSetBranch.getPrivateLayout();
422 }
423
424
429 @Override
430 public java.lang.String getSettings() {
431 return _layoutSetBranch.getSettings();
432 }
433
434 @Override
435 public com.liferay.portal.kernel.util.UnicodeProperties getSettingsProperties() {
436 return _layoutSetBranch.getSettingsProperties();
437 }
438
439 @Override
440 public java.lang.String getSettingsProperty(java.lang.String key) {
441 return _layoutSetBranch.getSettingsProperty(key);
442 }
443
444 @Override
445 public com.liferay.portal.model.Theme getTheme() {
446 return _layoutSetBranch.getTheme();
447 }
448
449
454 @Override
455 public java.lang.String getThemeId() {
456 return _layoutSetBranch.getThemeId();
457 }
458
459 @Override
460 public java.lang.String getThemeSetting(java.lang.String key,
461 java.lang.String device) {
462 return _layoutSetBranch.getThemeSetting(key, device);
463 }
464
465
470 @Override
471 public long getUserId() {
472 return _layoutSetBranch.getUserId();
473 }
474
475
480 @Override
481 public java.lang.String getUserName() {
482 return _layoutSetBranch.getUserName();
483 }
484
485
490 @Override
491 public java.lang.String getUserUuid() {
492 return _layoutSetBranch.getUserUuid();
493 }
494
495 @Override
496 public com.liferay.portal.model.ColorScheme getWapColorScheme() {
497 return _layoutSetBranch.getWapColorScheme();
498 }
499
500
505 @Override
506 public java.lang.String getWapColorSchemeId() {
507 return _layoutSetBranch.getWapColorSchemeId();
508 }
509
510 @Override
511 public com.liferay.portal.model.Theme getWapTheme() {
512 return _layoutSetBranch.getWapTheme();
513 }
514
515
520 @Override
521 public java.lang.String getWapThemeId() {
522 return _layoutSetBranch.getWapThemeId();
523 }
524
525 @Override
526 public int hashCode() {
527 return _layoutSetBranch.hashCode();
528 }
529
530 @Override
531 public boolean isCachedModel() {
532 return _layoutSetBranch.isCachedModel();
533 }
534
535 @Override
536 public boolean isEscapedModel() {
537 return _layoutSetBranch.isEscapedModel();
538 }
539
540 @Override
541 public boolean isLayoutSetPrototypeLinkActive() {
542 return _layoutSetBranch.isLayoutSetPrototypeLinkActive();
543 }
544
545
550 @Override
551 public boolean isLayoutSetPrototypeLinkEnabled() {
552 return _layoutSetBranch.isLayoutSetPrototypeLinkEnabled();
553 }
554
555 @Override
556 public boolean isLogo() {
557 return _layoutSetBranch.isLogo();
558 }
559
560
565 @Override
566 public boolean isMaster() {
567 return _layoutSetBranch.isMaster();
568 }
569
570 @Override
571 public boolean isNew() {
572 return _layoutSetBranch.isNew();
573 }
574
575
580 @Override
581 public boolean isPrivateLayout() {
582 return _layoutSetBranch.isPrivateLayout();
583 }
584
585 @Override
586 public void persist() {
587 _layoutSetBranch.persist();
588 }
589
590 @Override
591 public void setCachedModel(boolean cachedModel) {
592 _layoutSetBranch.setCachedModel(cachedModel);
593 }
594
595
600 @Override
601 public void setColorSchemeId(java.lang.String colorSchemeId) {
602 _layoutSetBranch.setColorSchemeId(colorSchemeId);
603 }
604
605
610 @Override
611 public void setCompanyId(long companyId) {
612 _layoutSetBranch.setCompanyId(companyId);
613 }
614
615
620 @Override
621 public void setCreateDate(Date createDate) {
622 _layoutSetBranch.setCreateDate(createDate);
623 }
624
625
630 @Override
631 public void setCss(java.lang.String css) {
632 _layoutSetBranch.setCss(css);
633 }
634
635
640 @Override
641 public void setDescription(java.lang.String description) {
642 _layoutSetBranch.setDescription(description);
643 }
644
645 @Override
646 public void setExpandoBridgeAttributes(BaseModel<?> baseModel) {
647 _layoutSetBranch.setExpandoBridgeAttributes(baseModel);
648 }
649
650 @Override
651 public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge) {
652 _layoutSetBranch.setExpandoBridgeAttributes(expandoBridge);
653 }
654
655 @Override
656 public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
657 _layoutSetBranch.setExpandoBridgeAttributes(serviceContext);
658 }
659
660
665 @Override
666 public void setGroupId(long groupId) {
667 _layoutSetBranch.setGroupId(groupId);
668 }
669
670
675 @Override
676 public void setLayoutSetBranchId(long layoutSetBranchId) {
677 _layoutSetBranch.setLayoutSetBranchId(layoutSetBranchId);
678 }
679
680
685 @Override
686 public void setLayoutSetPrototypeLinkEnabled(
687 boolean layoutSetPrototypeLinkEnabled) {
688 _layoutSetBranch.setLayoutSetPrototypeLinkEnabled(layoutSetPrototypeLinkEnabled);
689 }
690
691
696 @Override
697 public void setLayoutSetPrototypeUuid(
698 java.lang.String layoutSetPrototypeUuid) {
699 _layoutSetBranch.setLayoutSetPrototypeUuid(layoutSetPrototypeUuid);
700 }
701
702
707 @Override
708 public void setLogoId(long logoId) {
709 _layoutSetBranch.setLogoId(logoId);
710 }
711
712
717 @Override
718 public void setMaster(boolean master) {
719 _layoutSetBranch.setMaster(master);
720 }
721
722
727 @Override
728 public void setModifiedDate(Date modifiedDate) {
729 _layoutSetBranch.setModifiedDate(modifiedDate);
730 }
731
732
737 @Override
738 public void setMvccVersion(long mvccVersion) {
739 _layoutSetBranch.setMvccVersion(mvccVersion);
740 }
741
742
747 @Override
748 public void setName(java.lang.String name) {
749 _layoutSetBranch.setName(name);
750 }
751
752 @Override
753 public void setNew(boolean n) {
754 _layoutSetBranch.setNew(n);
755 }
756
757
762 @Override
763 public void setPrimaryKey(long primaryKey) {
764 _layoutSetBranch.setPrimaryKey(primaryKey);
765 }
766
767 @Override
768 public void setPrimaryKeyObj(Serializable primaryKeyObj) {
769 _layoutSetBranch.setPrimaryKeyObj(primaryKeyObj);
770 }
771
772
777 @Override
778 public void setPrivateLayout(boolean privateLayout) {
779 _layoutSetBranch.setPrivateLayout(privateLayout);
780 }
781
782
787 @Override
788 public void setSettings(java.lang.String settings) {
789 _layoutSetBranch.setSettings(settings);
790 }
791
792 @Override
793 public void setSettingsProperties(
794 com.liferay.portal.kernel.util.UnicodeProperties settingsProperties) {
795 _layoutSetBranch.setSettingsProperties(settingsProperties);
796 }
797
798
803 @Override
804 public void setThemeId(java.lang.String themeId) {
805 _layoutSetBranch.setThemeId(themeId);
806 }
807
808
813 @Override
814 public void setUserId(long userId) {
815 _layoutSetBranch.setUserId(userId);
816 }
817
818
823 @Override
824 public void setUserName(java.lang.String userName) {
825 _layoutSetBranch.setUserName(userName);
826 }
827
828
833 @Override
834 public void setUserUuid(java.lang.String userUuid) {
835 _layoutSetBranch.setUserUuid(userUuid);
836 }
837
838
843 @Override
844 public void setWapColorSchemeId(java.lang.String wapColorSchemeId) {
845 _layoutSetBranch.setWapColorSchemeId(wapColorSchemeId);
846 }
847
848
853 @Override
854 public void setWapThemeId(java.lang.String wapThemeId) {
855 _layoutSetBranch.setWapThemeId(wapThemeId);
856 }
857
858 @Override
859 public CacheModel<com.liferay.portal.model.LayoutSetBranch> toCacheModel() {
860 return _layoutSetBranch.toCacheModel();
861 }
862
863 @Override
864 public com.liferay.portal.model.LayoutSetBranch toEscapedModel() {
865 return new LayoutSetBranchWrapper(_layoutSetBranch.toEscapedModel());
866 }
867
868 @Override
869 public java.lang.String toString() {
870 return _layoutSetBranch.toString();
871 }
872
873 @Override
874 public com.liferay.portal.model.LayoutSetBranch toUnescapedModel() {
875 return new LayoutSetBranchWrapper(_layoutSetBranch.toUnescapedModel());
876 }
877
878 @Override
879 public java.lang.String toXmlString() {
880 return _layoutSetBranch.toXmlString();
881 }
882
883 @Override
884 public boolean equals(Object obj) {
885 if (this == obj) {
886 return true;
887 }
888
889 if (!(obj instanceof LayoutSetBranchWrapper)) {
890 return false;
891 }
892
893 LayoutSetBranchWrapper layoutSetBranchWrapper = (LayoutSetBranchWrapper)obj;
894
895 if (Validator.equals(_layoutSetBranch,
896 layoutSetBranchWrapper._layoutSetBranch)) {
897 return true;
898 }
899
900 return false;
901 }
902
903 @Override
904 public LayoutSetBranch getWrappedModel() {
905 return _layoutSetBranch;
906 }
907
908 @Override
909 public boolean isEntityCacheEnabled() {
910 return _layoutSetBranch.isEntityCacheEnabled();
911 }
912
913 @Override
914 public boolean isFinderCacheEnabled() {
915 return _layoutSetBranch.isFinderCacheEnabled();
916 }
917
918 @Override
919 public void resetOriginalValues() {
920 _layoutSetBranch.resetOriginalValues();
921 }
922
923 private final LayoutSetBranch _layoutSetBranch;
924 }