001
014
015 package com.liferay.portal.model;
016
017 import java.util.Date;
018 import java.util.HashMap;
019 import java.util.Map;
020
021
030 public class LayoutSetWrapper implements LayoutSet, ModelWrapper<LayoutSet> {
031 public LayoutSetWrapper(LayoutSet layoutSet) {
032 _layoutSet = layoutSet;
033 }
034
035 public Class<?> getModelClass() {
036 return LayoutSet.class;
037 }
038
039 public String getModelClassName() {
040 return LayoutSet.class.getName();
041 }
042
043 public Map<String, Object> getModelAttributes() {
044 Map<String, Object> attributes = new HashMap<String, Object>();
045
046 attributes.put("layoutSetId", getLayoutSetId());
047 attributes.put("groupId", getGroupId());
048 attributes.put("companyId", getCompanyId());
049 attributes.put("createDate", getCreateDate());
050 attributes.put("modifiedDate", getModifiedDate());
051 attributes.put("privateLayout", getPrivateLayout());
052 attributes.put("logo", getLogo());
053 attributes.put("logoId", getLogoId());
054 attributes.put("themeId", getThemeId());
055 attributes.put("colorSchemeId", getColorSchemeId());
056 attributes.put("wapThemeId", getWapThemeId());
057 attributes.put("wapColorSchemeId", getWapColorSchemeId());
058 attributes.put("css", getCss());
059 attributes.put("pageCount", getPageCount());
060 attributes.put("settings", getSettings());
061 attributes.put("layoutSetPrototypeUuid", getLayoutSetPrototypeUuid());
062 attributes.put("layoutSetPrototypeLinkEnabled",
063 getLayoutSetPrototypeLinkEnabled());
064
065 return attributes;
066 }
067
068 public void setModelAttributes(Map<String, Object> attributes) {
069 Long layoutSetId = (Long)attributes.get("layoutSetId");
070
071 if (layoutSetId != null) {
072 setLayoutSetId(layoutSetId);
073 }
074
075 Long groupId = (Long)attributes.get("groupId");
076
077 if (groupId != null) {
078 setGroupId(groupId);
079 }
080
081 Long companyId = (Long)attributes.get("companyId");
082
083 if (companyId != null) {
084 setCompanyId(companyId);
085 }
086
087 Date createDate = (Date)attributes.get("createDate");
088
089 if (createDate != null) {
090 setCreateDate(createDate);
091 }
092
093 Date modifiedDate = (Date)attributes.get("modifiedDate");
094
095 if (modifiedDate != null) {
096 setModifiedDate(modifiedDate);
097 }
098
099 Boolean privateLayout = (Boolean)attributes.get("privateLayout");
100
101 if (privateLayout != null) {
102 setPrivateLayout(privateLayout);
103 }
104
105 Boolean logo = (Boolean)attributes.get("logo");
106
107 if (logo != null) {
108 setLogo(logo);
109 }
110
111 Long logoId = (Long)attributes.get("logoId");
112
113 if (logoId != null) {
114 setLogoId(logoId);
115 }
116
117 String themeId = (String)attributes.get("themeId");
118
119 if (themeId != null) {
120 setThemeId(themeId);
121 }
122
123 String colorSchemeId = (String)attributes.get("colorSchemeId");
124
125 if (colorSchemeId != null) {
126 setColorSchemeId(colorSchemeId);
127 }
128
129 String wapThemeId = (String)attributes.get("wapThemeId");
130
131 if (wapThemeId != null) {
132 setWapThemeId(wapThemeId);
133 }
134
135 String wapColorSchemeId = (String)attributes.get("wapColorSchemeId");
136
137 if (wapColorSchemeId != null) {
138 setWapColorSchemeId(wapColorSchemeId);
139 }
140
141 String css = (String)attributes.get("css");
142
143 if (css != null) {
144 setCss(css);
145 }
146
147 Integer pageCount = (Integer)attributes.get("pageCount");
148
149 if (pageCount != null) {
150 setPageCount(pageCount);
151 }
152
153 String settings = (String)attributes.get("settings");
154
155 if (settings != null) {
156 setSettings(settings);
157 }
158
159 String layoutSetPrototypeUuid = (String)attributes.get(
160 "layoutSetPrototypeUuid");
161
162 if (layoutSetPrototypeUuid != null) {
163 setLayoutSetPrototypeUuid(layoutSetPrototypeUuid);
164 }
165
166 Boolean layoutSetPrototypeLinkEnabled = (Boolean)attributes.get(
167 "layoutSetPrototypeLinkEnabled");
168
169 if (layoutSetPrototypeLinkEnabled != null) {
170 setLayoutSetPrototypeLinkEnabled(layoutSetPrototypeLinkEnabled);
171 }
172 }
173
174
179 public long getPrimaryKey() {
180 return _layoutSet.getPrimaryKey();
181 }
182
183
188 public void setPrimaryKey(long primaryKey) {
189 _layoutSet.setPrimaryKey(primaryKey);
190 }
191
192
197 public long getLayoutSetId() {
198 return _layoutSet.getLayoutSetId();
199 }
200
201
206 public void setLayoutSetId(long layoutSetId) {
207 _layoutSet.setLayoutSetId(layoutSetId);
208 }
209
210
215 public long getGroupId() {
216 return _layoutSet.getGroupId();
217 }
218
219
224 public void setGroupId(long groupId) {
225 _layoutSet.setGroupId(groupId);
226 }
227
228
233 public long getCompanyId() {
234 return _layoutSet.getCompanyId();
235 }
236
237
242 public void setCompanyId(long companyId) {
243 _layoutSet.setCompanyId(companyId);
244 }
245
246
251 public java.util.Date getCreateDate() {
252 return _layoutSet.getCreateDate();
253 }
254
255
260 public void setCreateDate(java.util.Date createDate) {
261 _layoutSet.setCreateDate(createDate);
262 }
263
264
269 public java.util.Date getModifiedDate() {
270 return _layoutSet.getModifiedDate();
271 }
272
273
278 public void setModifiedDate(java.util.Date modifiedDate) {
279 _layoutSet.setModifiedDate(modifiedDate);
280 }
281
282
287 public boolean getPrivateLayout() {
288 return _layoutSet.getPrivateLayout();
289 }
290
291
296 public boolean isPrivateLayout() {
297 return _layoutSet.isPrivateLayout();
298 }
299
300
305 public void setPrivateLayout(boolean privateLayout) {
306 _layoutSet.setPrivateLayout(privateLayout);
307 }
308
309
314 public boolean getLogo() {
315 return _layoutSet.getLogo();
316 }
317
318
323 public boolean isLogo() {
324 return _layoutSet.isLogo();
325 }
326
327
332 public void setLogo(boolean logo) {
333 _layoutSet.setLogo(logo);
334 }
335
336
341 public long getLogoId() {
342 return _layoutSet.getLogoId();
343 }
344
345
350 public void setLogoId(long logoId) {
351 _layoutSet.setLogoId(logoId);
352 }
353
354
359 public java.lang.String getThemeId() {
360 return _layoutSet.getThemeId();
361 }
362
363
368 public void setThemeId(java.lang.String themeId) {
369 _layoutSet.setThemeId(themeId);
370 }
371
372
377 public java.lang.String getColorSchemeId() {
378 return _layoutSet.getColorSchemeId();
379 }
380
381
386 public void setColorSchemeId(java.lang.String colorSchemeId) {
387 _layoutSet.setColorSchemeId(colorSchemeId);
388 }
389
390
395 public java.lang.String getWapThemeId() {
396 return _layoutSet.getWapThemeId();
397 }
398
399
404 public void setWapThemeId(java.lang.String wapThemeId) {
405 _layoutSet.setWapThemeId(wapThemeId);
406 }
407
408
413 public java.lang.String getWapColorSchemeId() {
414 return _layoutSet.getWapColorSchemeId();
415 }
416
417
422 public void setWapColorSchemeId(java.lang.String wapColorSchemeId) {
423 _layoutSet.setWapColorSchemeId(wapColorSchemeId);
424 }
425
426
431 public java.lang.String getCss() {
432 return _layoutSet.getCss();
433 }
434
435
440 public void setCss(java.lang.String css) {
441 _layoutSet.setCss(css);
442 }
443
444
449 public int getPageCount() {
450 return _layoutSet.getPageCount();
451 }
452
453
458 public void setPageCount(int pageCount) {
459 _layoutSet.setPageCount(pageCount);
460 }
461
462
467 public java.lang.String getSettings() {
468 return _layoutSet.getSettings();
469 }
470
471
476 public void setSettings(java.lang.String settings) {
477 _layoutSet.setSettings(settings);
478 }
479
480
485 public java.lang.String getLayoutSetPrototypeUuid() {
486 return _layoutSet.getLayoutSetPrototypeUuid();
487 }
488
489
494 public void setLayoutSetPrototypeUuid(
495 java.lang.String layoutSetPrototypeUuid) {
496 _layoutSet.setLayoutSetPrototypeUuid(layoutSetPrototypeUuid);
497 }
498
499
504 public boolean getLayoutSetPrototypeLinkEnabled() {
505 return _layoutSet.getLayoutSetPrototypeLinkEnabled();
506 }
507
508
513 public boolean isLayoutSetPrototypeLinkEnabled() {
514 return _layoutSet.isLayoutSetPrototypeLinkEnabled();
515 }
516
517
522 public void setLayoutSetPrototypeLinkEnabled(
523 boolean layoutSetPrototypeLinkEnabled) {
524 _layoutSet.setLayoutSetPrototypeLinkEnabled(layoutSetPrototypeLinkEnabled);
525 }
526
527 public boolean isNew() {
528 return _layoutSet.isNew();
529 }
530
531 public void setNew(boolean n) {
532 _layoutSet.setNew(n);
533 }
534
535 public boolean isCachedModel() {
536 return _layoutSet.isCachedModel();
537 }
538
539 public void setCachedModel(boolean cachedModel) {
540 _layoutSet.setCachedModel(cachedModel);
541 }
542
543 public boolean isEscapedModel() {
544 return _layoutSet.isEscapedModel();
545 }
546
547 public java.io.Serializable getPrimaryKeyObj() {
548 return _layoutSet.getPrimaryKeyObj();
549 }
550
551 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
552 _layoutSet.setPrimaryKeyObj(primaryKeyObj);
553 }
554
555 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
556 return _layoutSet.getExpandoBridge();
557 }
558
559 public void setExpandoBridgeAttributes(
560 com.liferay.portal.model.BaseModel<?> baseModel) {
561 _layoutSet.setExpandoBridgeAttributes(baseModel);
562 }
563
564 public void setExpandoBridgeAttributes(
565 com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
566 _layoutSet.setExpandoBridgeAttributes(expandoBridge);
567 }
568
569 public void setExpandoBridgeAttributes(
570 com.liferay.portal.service.ServiceContext serviceContext) {
571 _layoutSet.setExpandoBridgeAttributes(serviceContext);
572 }
573
574 @Override
575 public java.lang.Object clone() {
576 return new LayoutSetWrapper((LayoutSet)_layoutSet.clone());
577 }
578
579 public int compareTo(com.liferay.portal.model.LayoutSet layoutSet) {
580 return _layoutSet.compareTo(layoutSet);
581 }
582
583 @Override
584 public int hashCode() {
585 return _layoutSet.hashCode();
586 }
587
588 public com.liferay.portal.model.CacheModel<com.liferay.portal.model.LayoutSet> toCacheModel() {
589 return _layoutSet.toCacheModel();
590 }
591
592 public com.liferay.portal.model.LayoutSet toEscapedModel() {
593 return new LayoutSetWrapper(_layoutSet.toEscapedModel());
594 }
595
596 public com.liferay.portal.model.LayoutSet toUnescapedModel() {
597 return new LayoutSetWrapper(_layoutSet.toUnescapedModel());
598 }
599
600 @Override
601 public java.lang.String toString() {
602 return _layoutSet.toString();
603 }
604
605 public java.lang.String toXmlString() {
606 return _layoutSet.toXmlString();
607 }
608
609 public void persist()
610 throws com.liferay.portal.kernel.exception.SystemException {
611 _layoutSet.persist();
612 }
613
614 public com.liferay.portal.model.ColorScheme getColorScheme()
615 throws com.liferay.portal.kernel.exception.SystemException {
616 return _layoutSet.getColorScheme();
617 }
618
619 public com.liferay.portal.model.Group getGroup()
620 throws com.liferay.portal.kernel.exception.PortalException,
621 com.liferay.portal.kernel.exception.SystemException {
622 return _layoutSet.getGroup();
623 }
624
625 public long getLayoutSetPrototypeId()
626 throws com.liferay.portal.kernel.exception.PortalException,
627 com.liferay.portal.kernel.exception.SystemException {
628 return _layoutSet.getLayoutSetPrototypeId();
629 }
630
631 public long getLiveLogoId() {
632 return _layoutSet.getLiveLogoId();
633 }
634
635 public com.liferay.portal.kernel.util.UnicodeProperties getSettingsProperties() {
636 return _layoutSet.getSettingsProperties();
637 }
638
639 public java.lang.String getSettingsProperty(java.lang.String key) {
640 return _layoutSet.getSettingsProperty(key);
641 }
642
643 public com.liferay.portal.model.Theme getTheme()
644 throws com.liferay.portal.kernel.exception.SystemException {
645 return _layoutSet.getTheme();
646 }
647
648 public java.lang.String getThemeSetting(java.lang.String key,
649 java.lang.String device)
650 throws com.liferay.portal.kernel.exception.SystemException {
651 return _layoutSet.getThemeSetting(key, device);
652 }
653
654 public java.lang.String getVirtualHostname() {
655 return _layoutSet.getVirtualHostname();
656 }
657
658 public com.liferay.portal.model.ColorScheme getWapColorScheme()
659 throws com.liferay.portal.kernel.exception.SystemException {
660 return _layoutSet.getWapColorScheme();
661 }
662
663 public com.liferay.portal.model.Theme getWapTheme()
664 throws com.liferay.portal.kernel.exception.SystemException {
665 return _layoutSet.getWapTheme();
666 }
667
668 public boolean isLayoutSetPrototypeLinkActive() {
669 return _layoutSet.isLayoutSetPrototypeLinkActive();
670 }
671
672 public void setSettingsProperties(
673 com.liferay.portal.kernel.util.UnicodeProperties settingsProperties) {
674 _layoutSet.setSettingsProperties(settingsProperties);
675 }
676
677 public void setVirtualHostname(java.lang.String virtualHostname) {
678 _layoutSet.setVirtualHostname(virtualHostname);
679 }
680
681
684 public LayoutSet getWrappedLayoutSet() {
685 return _layoutSet;
686 }
687
688 public LayoutSet getWrappedModel() {
689 return _layoutSet;
690 }
691
692 public void resetOriginalValues() {
693 _layoutSet.resetOriginalValues();
694 }
695
696 private LayoutSet _layoutSet;
697 }