001
014
015 package com.liferay.portal.kernel.model;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.expando.kernel.model.ExpandoBridge;
020
021 import com.liferay.portal.kernel.service.ServiceContext;
022 import com.liferay.portal.kernel.util.Validator;
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("css", getCss());
076 attributes.put("settings", getSettings());
077 attributes.put("layoutSetPrototypeUuid", getLayoutSetPrototypeUuid());
078 attributes.put("layoutSetPrototypeLinkEnabled",
079 getLayoutSetPrototypeLinkEnabled());
080
081 return attributes;
082 }
083
084 @Override
085 public void setModelAttributes(Map<String, Object> attributes) {
086 Long mvccVersion = (Long)attributes.get("mvccVersion");
087
088 if (mvccVersion != null) {
089 setMvccVersion(mvccVersion);
090 }
091
092 Long layoutSetBranchId = (Long)attributes.get("layoutSetBranchId");
093
094 if (layoutSetBranchId != null) {
095 setLayoutSetBranchId(layoutSetBranchId);
096 }
097
098 Long groupId = (Long)attributes.get("groupId");
099
100 if (groupId != null) {
101 setGroupId(groupId);
102 }
103
104 Long companyId = (Long)attributes.get("companyId");
105
106 if (companyId != null) {
107 setCompanyId(companyId);
108 }
109
110 Long userId = (Long)attributes.get("userId");
111
112 if (userId != null) {
113 setUserId(userId);
114 }
115
116 String userName = (String)attributes.get("userName");
117
118 if (userName != null) {
119 setUserName(userName);
120 }
121
122 Date createDate = (Date)attributes.get("createDate");
123
124 if (createDate != null) {
125 setCreateDate(createDate);
126 }
127
128 Date modifiedDate = (Date)attributes.get("modifiedDate");
129
130 if (modifiedDate != null) {
131 setModifiedDate(modifiedDate);
132 }
133
134 Boolean privateLayout = (Boolean)attributes.get("privateLayout");
135
136 if (privateLayout != null) {
137 setPrivateLayout(privateLayout);
138 }
139
140 String name = (String)attributes.get("name");
141
142 if (name != null) {
143 setName(name);
144 }
145
146 String description = (String)attributes.get("description");
147
148 if (description != null) {
149 setDescription(description);
150 }
151
152 Boolean master = (Boolean)attributes.get("master");
153
154 if (master != null) {
155 setMaster(master);
156 }
157
158 Long logoId = (Long)attributes.get("logoId");
159
160 if (logoId != null) {
161 setLogoId(logoId);
162 }
163
164 String themeId = (String)attributes.get("themeId");
165
166 if (themeId != null) {
167 setThemeId(themeId);
168 }
169
170 String colorSchemeId = (String)attributes.get("colorSchemeId");
171
172 if (colorSchemeId != null) {
173 setColorSchemeId(colorSchemeId);
174 }
175
176 String css = (String)attributes.get("css");
177
178 if (css != null) {
179 setCss(css);
180 }
181
182 String settings = (String)attributes.get("settings");
183
184 if (settings != null) {
185 setSettings(settings);
186 }
187
188 String layoutSetPrototypeUuid = (String)attributes.get(
189 "layoutSetPrototypeUuid");
190
191 if (layoutSetPrototypeUuid != null) {
192 setLayoutSetPrototypeUuid(layoutSetPrototypeUuid);
193 }
194
195 Boolean layoutSetPrototypeLinkEnabled = (Boolean)attributes.get(
196 "layoutSetPrototypeLinkEnabled");
197
198 if (layoutSetPrototypeLinkEnabled != null) {
199 setLayoutSetPrototypeLinkEnabled(layoutSetPrototypeLinkEnabled);
200 }
201 }
202
203 @Override
204 public java.lang.Object clone() {
205 return new LayoutSetBranchWrapper((LayoutSetBranch)_layoutSetBranch.clone());
206 }
207
208 @Override
209 public int compareTo(
210 com.liferay.portal.kernel.model.LayoutSetBranch layoutSetBranch) {
211 return _layoutSetBranch.compareTo(layoutSetBranch);
212 }
213
214 @Override
215 public com.liferay.portal.kernel.model.ColorScheme getColorScheme() {
216 return _layoutSetBranch.getColorScheme();
217 }
218
219
224 @Override
225 public java.lang.String getColorSchemeId() {
226 return _layoutSetBranch.getColorSchemeId();
227 }
228
229
234 @Override
235 public long getCompanyId() {
236 return _layoutSetBranch.getCompanyId();
237 }
238
239
244 @Override
245 public Date getCreateDate() {
246 return _layoutSetBranch.getCreateDate();
247 }
248
249
254 @Override
255 public java.lang.String getCss() {
256 return _layoutSetBranch.getCss();
257 }
258
259
264 @Override
265 public java.lang.String getDescription() {
266 return _layoutSetBranch.getDescription();
267 }
268
269 @Override
270 public ExpandoBridge getExpandoBridge() {
271 return _layoutSetBranch.getExpandoBridge();
272 }
273
274 @Override
275 public com.liferay.portal.kernel.model.Group getGroup()
276 throws com.liferay.portal.kernel.exception.PortalException {
277 return _layoutSetBranch.getGroup();
278 }
279
280
285 @Override
286 public long getGroupId() {
287 return _layoutSetBranch.getGroupId();
288 }
289
290 @Override
291 public com.liferay.portal.kernel.model.LayoutSet getLayoutSet() {
292 return _layoutSetBranch.getLayoutSet();
293 }
294
295
300 @Override
301 public long getLayoutSetBranchId() {
302 return _layoutSetBranch.getLayoutSetBranchId();
303 }
304
305
310 @Override
311 public boolean getLayoutSetPrototypeLinkEnabled() {
312 return _layoutSetBranch.getLayoutSetPrototypeLinkEnabled();
313 }
314
315
320 @Override
321 public java.lang.String getLayoutSetPrototypeUuid() {
322 return _layoutSetBranch.getLayoutSetPrototypeUuid();
323 }
324
325 @Override
326 public long getLiveLogoId() {
327 return _layoutSetBranch.getLiveLogoId();
328 }
329
330 @Override
331 public boolean getLogo() {
332 return _layoutSetBranch.getLogo();
333 }
334
335
340 @Override
341 public long getLogoId() {
342 return _layoutSetBranch.getLogoId();
343 }
344
345
350 @Override
351 public boolean getMaster() {
352 return _layoutSetBranch.getMaster();
353 }
354
355
360 @Override
361 public Date getModifiedDate() {
362 return _layoutSetBranch.getModifiedDate();
363 }
364
365
370 @Override
371 public long getMvccVersion() {
372 return _layoutSetBranch.getMvccVersion();
373 }
374
375
380 @Override
381 public java.lang.String getName() {
382 return _layoutSetBranch.getName();
383 }
384
385
390 @Override
391 public long getPrimaryKey() {
392 return _layoutSetBranch.getPrimaryKey();
393 }
394
395 @Override
396 public Serializable getPrimaryKeyObj() {
397 return _layoutSetBranch.getPrimaryKeyObj();
398 }
399
400
405 @Override
406 public boolean getPrivateLayout() {
407 return _layoutSetBranch.getPrivateLayout();
408 }
409
410
415 @Override
416 public java.lang.String getSettings() {
417 return _layoutSetBranch.getSettings();
418 }
419
420 @Override
421 public com.liferay.portal.kernel.util.UnicodeProperties getSettingsProperties() {
422 return _layoutSetBranch.getSettingsProperties();
423 }
424
425 @Override
426 public java.lang.String getSettingsProperty(java.lang.String key) {
427 return _layoutSetBranch.getSettingsProperty(key);
428 }
429
430 @Override
431 public com.liferay.portal.kernel.model.Theme getTheme() {
432 return _layoutSetBranch.getTheme();
433 }
434
435
440 @Override
441 public java.lang.String getThemeId() {
442 return _layoutSetBranch.getThemeId();
443 }
444
445 @Override
446 public java.lang.String getThemeSetting(java.lang.String key,
447 java.lang.String device) {
448 return _layoutSetBranch.getThemeSetting(key, device);
449 }
450
451
456 @Override
457 public long getUserId() {
458 return _layoutSetBranch.getUserId();
459 }
460
461
466 @Override
467 public java.lang.String getUserName() {
468 return _layoutSetBranch.getUserName();
469 }
470
471
476 @Override
477 public java.lang.String getUserUuid() {
478 return _layoutSetBranch.getUserUuid();
479 }
480
481 @Override
482 public int hashCode() {
483 return _layoutSetBranch.hashCode();
484 }
485
486 @Override
487 public boolean isCachedModel() {
488 return _layoutSetBranch.isCachedModel();
489 }
490
491 @Override
492 public boolean isEscapedModel() {
493 return _layoutSetBranch.isEscapedModel();
494 }
495
496 @Override
497 public boolean isLayoutSetPrototypeLinkActive() {
498 return _layoutSetBranch.isLayoutSetPrototypeLinkActive();
499 }
500
501
506 @Override
507 public boolean isLayoutSetPrototypeLinkEnabled() {
508 return _layoutSetBranch.isLayoutSetPrototypeLinkEnabled();
509 }
510
511 @Override
512 public boolean isLogo() {
513 return _layoutSetBranch.isLogo();
514 }
515
516
521 @Override
522 public boolean isMaster() {
523 return _layoutSetBranch.isMaster();
524 }
525
526 @Override
527 public boolean isNew() {
528 return _layoutSetBranch.isNew();
529 }
530
531
536 @Override
537 public boolean isPrivateLayout() {
538 return _layoutSetBranch.isPrivateLayout();
539 }
540
541 @Override
542 public void persist() {
543 _layoutSetBranch.persist();
544 }
545
546 @Override
547 public void setCachedModel(boolean cachedModel) {
548 _layoutSetBranch.setCachedModel(cachedModel);
549 }
550
551
556 @Override
557 public void setColorSchemeId(java.lang.String colorSchemeId) {
558 _layoutSetBranch.setColorSchemeId(colorSchemeId);
559 }
560
561
566 @Override
567 public void setCompanyId(long companyId) {
568 _layoutSetBranch.setCompanyId(companyId);
569 }
570
571
576 @Override
577 public void setCreateDate(Date createDate) {
578 _layoutSetBranch.setCreateDate(createDate);
579 }
580
581
586 @Override
587 public void setCss(java.lang.String css) {
588 _layoutSetBranch.setCss(css);
589 }
590
591
596 @Override
597 public void setDescription(java.lang.String description) {
598 _layoutSetBranch.setDescription(description);
599 }
600
601 @Override
602 public void setExpandoBridgeAttributes(BaseModel<?> baseModel) {
603 _layoutSetBranch.setExpandoBridgeAttributes(baseModel);
604 }
605
606 @Override
607 public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge) {
608 _layoutSetBranch.setExpandoBridgeAttributes(expandoBridge);
609 }
610
611 @Override
612 public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
613 _layoutSetBranch.setExpandoBridgeAttributes(serviceContext);
614 }
615
616
621 @Override
622 public void setGroupId(long groupId) {
623 _layoutSetBranch.setGroupId(groupId);
624 }
625
626
631 @Override
632 public void setLayoutSetBranchId(long layoutSetBranchId) {
633 _layoutSetBranch.setLayoutSetBranchId(layoutSetBranchId);
634 }
635
636
641 @Override
642 public void setLayoutSetPrototypeLinkEnabled(
643 boolean layoutSetPrototypeLinkEnabled) {
644 _layoutSetBranch.setLayoutSetPrototypeLinkEnabled(layoutSetPrototypeLinkEnabled);
645 }
646
647
652 @Override
653 public void setLayoutSetPrototypeUuid(
654 java.lang.String layoutSetPrototypeUuid) {
655 _layoutSetBranch.setLayoutSetPrototypeUuid(layoutSetPrototypeUuid);
656 }
657
658
663 @Override
664 public void setLogoId(long logoId) {
665 _layoutSetBranch.setLogoId(logoId);
666 }
667
668
673 @Override
674 public void setMaster(boolean master) {
675 _layoutSetBranch.setMaster(master);
676 }
677
678
683 @Override
684 public void setModifiedDate(Date modifiedDate) {
685 _layoutSetBranch.setModifiedDate(modifiedDate);
686 }
687
688
693 @Override
694 public void setMvccVersion(long mvccVersion) {
695 _layoutSetBranch.setMvccVersion(mvccVersion);
696 }
697
698
703 @Override
704 public void setName(java.lang.String name) {
705 _layoutSetBranch.setName(name);
706 }
707
708 @Override
709 public void setNew(boolean n) {
710 _layoutSetBranch.setNew(n);
711 }
712
713
718 @Override
719 public void setPrimaryKey(long primaryKey) {
720 _layoutSetBranch.setPrimaryKey(primaryKey);
721 }
722
723 @Override
724 public void setPrimaryKeyObj(Serializable primaryKeyObj) {
725 _layoutSetBranch.setPrimaryKeyObj(primaryKeyObj);
726 }
727
728
733 @Override
734 public void setPrivateLayout(boolean privateLayout) {
735 _layoutSetBranch.setPrivateLayout(privateLayout);
736 }
737
738
743 @Override
744 public void setSettings(java.lang.String settings) {
745 _layoutSetBranch.setSettings(settings);
746 }
747
748 @Override
749 public void setSettingsProperties(
750 com.liferay.portal.kernel.util.UnicodeProperties settingsProperties) {
751 _layoutSetBranch.setSettingsProperties(settingsProperties);
752 }
753
754
759 @Override
760 public void setThemeId(java.lang.String themeId) {
761 _layoutSetBranch.setThemeId(themeId);
762 }
763
764
769 @Override
770 public void setUserId(long userId) {
771 _layoutSetBranch.setUserId(userId);
772 }
773
774
779 @Override
780 public void setUserName(java.lang.String userName) {
781 _layoutSetBranch.setUserName(userName);
782 }
783
784
789 @Override
790 public void setUserUuid(java.lang.String userUuid) {
791 _layoutSetBranch.setUserUuid(userUuid);
792 }
793
794 @Override
795 public CacheModel<com.liferay.portal.kernel.model.LayoutSetBranch> toCacheModel() {
796 return _layoutSetBranch.toCacheModel();
797 }
798
799 @Override
800 public com.liferay.portal.kernel.model.LayoutSetBranch toEscapedModel() {
801 return new LayoutSetBranchWrapper(_layoutSetBranch.toEscapedModel());
802 }
803
804 @Override
805 public java.lang.String toString() {
806 return _layoutSetBranch.toString();
807 }
808
809 @Override
810 public com.liferay.portal.kernel.model.LayoutSetBranch toUnescapedModel() {
811 return new LayoutSetBranchWrapper(_layoutSetBranch.toUnescapedModel());
812 }
813
814 @Override
815 public java.lang.String toXmlString() {
816 return _layoutSetBranch.toXmlString();
817 }
818
819 @Override
820 public boolean equals(Object obj) {
821 if (this == obj) {
822 return true;
823 }
824
825 if (!(obj instanceof LayoutSetBranchWrapper)) {
826 return false;
827 }
828
829 LayoutSetBranchWrapper layoutSetBranchWrapper = (LayoutSetBranchWrapper)obj;
830
831 if (Validator.equals(_layoutSetBranch,
832 layoutSetBranchWrapper._layoutSetBranch)) {
833 return true;
834 }
835
836 return false;
837 }
838
839 @Override
840 public LayoutSetBranch getWrappedModel() {
841 return _layoutSetBranch;
842 }
843
844 @Override
845 public boolean isEntityCacheEnabled() {
846 return _layoutSetBranch.isEntityCacheEnabled();
847 }
848
849 @Override
850 public boolean isFinderCacheEnabled() {
851 return _layoutSetBranch.isFinderCacheEnabled();
852 }
853
854 @Override
855 public void resetOriginalValues() {
856 _layoutSetBranch.resetOriginalValues();
857 }
858
859 private final LayoutSetBranch _layoutSetBranch;
860 }