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
023 import java.io.Serializable;
024
025 import java.util.Date;
026 import java.util.HashMap;
027 import java.util.Map;
028 import java.util.Objects;
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 CacheModel<LayoutSetBranch> toCacheModel() {
205 return _layoutSetBranch.toCacheModel();
206 }
207
208 @Override
209 public ColorScheme getColorScheme() {
210 return _layoutSetBranch.getColorScheme();
211 }
212
213 @Override
214 public Group getGroup()
215 throws com.liferay.portal.kernel.exception.PortalException {
216 return _layoutSetBranch.getGroup();
217 }
218
219 @Override
220 public LayoutSet getLayoutSet() {
221 return _layoutSetBranch.getLayoutSet();
222 }
223
224 @Override
225 public LayoutSetBranch toEscapedModel() {
226 return new LayoutSetBranchWrapper(_layoutSetBranch.toEscapedModel());
227 }
228
229 @Override
230 public LayoutSetBranch toUnescapedModel() {
231 return new LayoutSetBranchWrapper(_layoutSetBranch.toUnescapedModel());
232 }
233
234 @Override
235 public Theme getTheme() {
236 return _layoutSetBranch.getTheme();
237 }
238
239
244 @Override
245 public boolean getLayoutSetPrototypeLinkEnabled() {
246 return _layoutSetBranch.getLayoutSetPrototypeLinkEnabled();
247 }
248
249 @Override
250 public boolean getLogo() {
251 return _layoutSetBranch.getLogo();
252 }
253
254
259 @Override
260 public boolean getMaster() {
261 return _layoutSetBranch.getMaster();
262 }
263
264
269 @Override
270 public boolean getPrivateLayout() {
271 return _layoutSetBranch.getPrivateLayout();
272 }
273
274 @Override
275 public boolean isCachedModel() {
276 return _layoutSetBranch.isCachedModel();
277 }
278
279 @Override
280 public boolean isEscapedModel() {
281 return _layoutSetBranch.isEscapedModel();
282 }
283
284 @Override
285 public boolean isLayoutSetPrototypeLinkActive() {
286 return _layoutSetBranch.isLayoutSetPrototypeLinkActive();
287 }
288
289
294 @Override
295 public boolean isLayoutSetPrototypeLinkEnabled() {
296 return _layoutSetBranch.isLayoutSetPrototypeLinkEnabled();
297 }
298
299 @Override
300 public boolean isLogo() {
301 return _layoutSetBranch.isLogo();
302 }
303
304
309 @Override
310 public boolean isMaster() {
311 return _layoutSetBranch.isMaster();
312 }
313
314 @Override
315 public boolean isNew() {
316 return _layoutSetBranch.isNew();
317 }
318
319
324 @Override
325 public boolean isPrivateLayout() {
326 return _layoutSetBranch.isPrivateLayout();
327 }
328
329 @Override
330 public ExpandoBridge getExpandoBridge() {
331 return _layoutSetBranch.getExpandoBridge();
332 }
333
334 @Override
335 public com.liferay.portal.kernel.util.UnicodeProperties getSettingsProperties() {
336 return _layoutSetBranch.getSettingsProperties();
337 }
338
339 @Override
340 public int compareTo(LayoutSetBranch layoutSetBranch) {
341 return _layoutSetBranch.compareTo(layoutSetBranch);
342 }
343
344 @Override
345 public int hashCode() {
346 return _layoutSetBranch.hashCode();
347 }
348
349 @Override
350 public Serializable getPrimaryKeyObj() {
351 return _layoutSetBranch.getPrimaryKeyObj();
352 }
353
354 @Override
355 public java.lang.Object clone() {
356 return new LayoutSetBranchWrapper((LayoutSetBranch)_layoutSetBranch.clone());
357 }
358
359
364 @Override
365 public java.lang.String getColorSchemeId() {
366 return _layoutSetBranch.getColorSchemeId();
367 }
368
369
374 @Override
375 public java.lang.String getCss() {
376 return _layoutSetBranch.getCss();
377 }
378
379
384 @Override
385 public java.lang.String getDescription() {
386 return _layoutSetBranch.getDescription();
387 }
388
389
394 @Override
395 public java.lang.String getLayoutSetPrototypeUuid() {
396 return _layoutSetBranch.getLayoutSetPrototypeUuid();
397 }
398
399
404 @Override
405 public java.lang.String getName() {
406 return _layoutSetBranch.getName();
407 }
408
409
414 @Override
415 public java.lang.String getSettings() {
416 return _layoutSetBranch.getSettings();
417 }
418
419 @Override
420 public java.lang.String getSettingsProperty(java.lang.String key) {
421 return _layoutSetBranch.getSettingsProperty(key);
422 }
423
424
429 @Override
430 public java.lang.String getThemeId() {
431 return _layoutSetBranch.getThemeId();
432 }
433
434 @Override
435 public java.lang.String getThemeSetting(java.lang.String key,
436 java.lang.String device) {
437 return _layoutSetBranch.getThemeSetting(key, device);
438 }
439
440
445 @Override
446 public java.lang.String getUserName() {
447 return _layoutSetBranch.getUserName();
448 }
449
450
455 @Override
456 public java.lang.String getUserUuid() {
457 return _layoutSetBranch.getUserUuid();
458 }
459
460 @Override
461 public java.lang.String toString() {
462 return _layoutSetBranch.toString();
463 }
464
465 @Override
466 public java.lang.String toXmlString() {
467 return _layoutSetBranch.toXmlString();
468 }
469
470
475 @Override
476 public Date getCreateDate() {
477 return _layoutSetBranch.getCreateDate();
478 }
479
480
485 @Override
486 public Date getModifiedDate() {
487 return _layoutSetBranch.getModifiedDate();
488 }
489
490
495 @Override
496 public long getCompanyId() {
497 return _layoutSetBranch.getCompanyId();
498 }
499
500
505 @Override
506 public long getGroupId() {
507 return _layoutSetBranch.getGroupId();
508 }
509
510
515 @Override
516 public long getLayoutSetBranchId() {
517 return _layoutSetBranch.getLayoutSetBranchId();
518 }
519
520 @Override
521 public long getLiveLogoId() {
522 return _layoutSetBranch.getLiveLogoId();
523 }
524
525
530 @Override
531 public long getLogoId() {
532 return _layoutSetBranch.getLogoId();
533 }
534
535
540 @Override
541 public long getMvccVersion() {
542 return _layoutSetBranch.getMvccVersion();
543 }
544
545
550 @Override
551 public long getPrimaryKey() {
552 return _layoutSetBranch.getPrimaryKey();
553 }
554
555
560 @Override
561 public long getUserId() {
562 return _layoutSetBranch.getUserId();
563 }
564
565 @Override
566 public void persist() {
567 _layoutSetBranch.persist();
568 }
569
570 @Override
571 public void setCachedModel(boolean cachedModel) {
572 _layoutSetBranch.setCachedModel(cachedModel);
573 }
574
575
580 @Override
581 public void setColorSchemeId(java.lang.String colorSchemeId) {
582 _layoutSetBranch.setColorSchemeId(colorSchemeId);
583 }
584
585
590 @Override
591 public void setCompanyId(long companyId) {
592 _layoutSetBranch.setCompanyId(companyId);
593 }
594
595
600 @Override
601 public void setCreateDate(Date createDate) {
602 _layoutSetBranch.setCreateDate(createDate);
603 }
604
605
610 @Override
611 public void setCss(java.lang.String css) {
612 _layoutSetBranch.setCss(css);
613 }
614
615
620 @Override
621 public void setDescription(java.lang.String description) {
622 _layoutSetBranch.setDescription(description);
623 }
624
625 @Override
626 public void setExpandoBridgeAttributes(BaseModel<?> baseModel) {
627 _layoutSetBranch.setExpandoBridgeAttributes(baseModel);
628 }
629
630 @Override
631 public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge) {
632 _layoutSetBranch.setExpandoBridgeAttributes(expandoBridge);
633 }
634
635 @Override
636 public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
637 _layoutSetBranch.setExpandoBridgeAttributes(serviceContext);
638 }
639
640
645 @Override
646 public void setGroupId(long groupId) {
647 _layoutSetBranch.setGroupId(groupId);
648 }
649
650
655 @Override
656 public void setLayoutSetBranchId(long layoutSetBranchId) {
657 _layoutSetBranch.setLayoutSetBranchId(layoutSetBranchId);
658 }
659
660
665 @Override
666 public void setLayoutSetPrototypeLinkEnabled(
667 boolean layoutSetPrototypeLinkEnabled) {
668 _layoutSetBranch.setLayoutSetPrototypeLinkEnabled(layoutSetPrototypeLinkEnabled);
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 void setLogoId(long logoId) {
689 _layoutSetBranch.setLogoId(logoId);
690 }
691
692
697 @Override
698 public void setMaster(boolean master) {
699 _layoutSetBranch.setMaster(master);
700 }
701
702
707 @Override
708 public void setModifiedDate(Date modifiedDate) {
709 _layoutSetBranch.setModifiedDate(modifiedDate);
710 }
711
712
717 @Override
718 public void setMvccVersion(long mvccVersion) {
719 _layoutSetBranch.setMvccVersion(mvccVersion);
720 }
721
722
727 @Override
728 public void setName(java.lang.String name) {
729 _layoutSetBranch.setName(name);
730 }
731
732 @Override
733 public void setNew(boolean n) {
734 _layoutSetBranch.setNew(n);
735 }
736
737
742 @Override
743 public void setPrimaryKey(long primaryKey) {
744 _layoutSetBranch.setPrimaryKey(primaryKey);
745 }
746
747 @Override
748 public void setPrimaryKeyObj(Serializable primaryKeyObj) {
749 _layoutSetBranch.setPrimaryKeyObj(primaryKeyObj);
750 }
751
752
757 @Override
758 public void setPrivateLayout(boolean privateLayout) {
759 _layoutSetBranch.setPrivateLayout(privateLayout);
760 }
761
762
767 @Override
768 public void setSettings(java.lang.String settings) {
769 _layoutSetBranch.setSettings(settings);
770 }
771
772 @Override
773 public void setSettingsProperties(
774 com.liferay.portal.kernel.util.UnicodeProperties settingsProperties) {
775 _layoutSetBranch.setSettingsProperties(settingsProperties);
776 }
777
778
783 @Override
784 public void setThemeId(java.lang.String themeId) {
785 _layoutSetBranch.setThemeId(themeId);
786 }
787
788
793 @Override
794 public void setUserId(long userId) {
795 _layoutSetBranch.setUserId(userId);
796 }
797
798
803 @Override
804 public void setUserName(java.lang.String userName) {
805 _layoutSetBranch.setUserName(userName);
806 }
807
808
813 @Override
814 public void setUserUuid(java.lang.String userUuid) {
815 _layoutSetBranch.setUserUuid(userUuid);
816 }
817
818 @Override
819 public boolean equals(Object obj) {
820 if (this == obj) {
821 return true;
822 }
823
824 if (!(obj instanceof LayoutSetBranchWrapper)) {
825 return false;
826 }
827
828 LayoutSetBranchWrapper layoutSetBranchWrapper = (LayoutSetBranchWrapper)obj;
829
830 if (Objects.equals(_layoutSetBranch,
831 layoutSetBranchWrapper._layoutSetBranch)) {
832 return true;
833 }
834
835 return false;
836 }
837
838 @Override
839 public LayoutSetBranch getWrappedModel() {
840 return _layoutSetBranch;
841 }
842
843 @Override
844 public boolean isEntityCacheEnabled() {
845 return _layoutSetBranch.isEntityCacheEnabled();
846 }
847
848 @Override
849 public boolean isFinderCacheEnabled() {
850 return _layoutSetBranch.isFinderCacheEnabled();
851 }
852
853 @Override
854 public void resetOriginalValues() {
855 _layoutSetBranch.resetOriginalValues();
856 }
857
858 private final LayoutSetBranch _layoutSetBranch;
859 }