001
014
015 package com.liferay.portal.model;
016
017 import com.liferay.portal.kernel.util.Validator;
018
019 import java.util.Date;
020 import java.util.HashMap;
021 import java.util.Map;
022
023
032 public class LayoutSetWrapper implements LayoutSet, ModelWrapper<LayoutSet> {
033 public LayoutSetWrapper(LayoutSet layoutSet) {
034 _layoutSet = layoutSet;
035 }
036
037 public Class<?> getModelClass() {
038 return LayoutSet.class;
039 }
040
041 public String getModelClassName() {
042 return LayoutSet.class.getName();
043 }
044
045 public Map<String, Object> getModelAttributes() {
046 Map<String, Object> attributes = new HashMap<String, Object>();
047
048 attributes.put("layoutSetId", getLayoutSetId());
049 attributes.put("groupId", getGroupId());
050 attributes.put("companyId", getCompanyId());
051 attributes.put("createDate", getCreateDate());
052 attributes.put("modifiedDate", getModifiedDate());
053 attributes.put("privateLayout", getPrivateLayout());
054 attributes.put("logo", getLogo());
055 attributes.put("logoId", getLogoId());
056 attributes.put("themeId", getThemeId());
057 attributes.put("colorSchemeId", getColorSchemeId());
058 attributes.put("wapThemeId", getWapThemeId());
059 attributes.put("wapColorSchemeId", getWapColorSchemeId());
060 attributes.put("css", getCss());
061 attributes.put("pageCount", getPageCount());
062 attributes.put("settings", getSettings());
063 attributes.put("layoutSetPrototypeUuid", getLayoutSetPrototypeUuid());
064 attributes.put("layoutSetPrototypeLinkEnabled",
065 getLayoutSetPrototypeLinkEnabled());
066
067 return attributes;
068 }
069
070 public void setModelAttributes(Map<String, Object> attributes) {
071 Long layoutSetId = (Long)attributes.get("layoutSetId");
072
073 if (layoutSetId != null) {
074 setLayoutSetId(layoutSetId);
075 }
076
077 Long groupId = (Long)attributes.get("groupId");
078
079 if (groupId != null) {
080 setGroupId(groupId);
081 }
082
083 Long companyId = (Long)attributes.get("companyId");
084
085 if (companyId != null) {
086 setCompanyId(companyId);
087 }
088
089 Date createDate = (Date)attributes.get("createDate");
090
091 if (createDate != null) {
092 setCreateDate(createDate);
093 }
094
095 Date modifiedDate = (Date)attributes.get("modifiedDate");
096
097 if (modifiedDate != null) {
098 setModifiedDate(modifiedDate);
099 }
100
101 Boolean privateLayout = (Boolean)attributes.get("privateLayout");
102
103 if (privateLayout != null) {
104 setPrivateLayout(privateLayout);
105 }
106
107 Boolean logo = (Boolean)attributes.get("logo");
108
109 if (logo != null) {
110 setLogo(logo);
111 }
112
113 Long logoId = (Long)attributes.get("logoId");
114
115 if (logoId != null) {
116 setLogoId(logoId);
117 }
118
119 String themeId = (String)attributes.get("themeId");
120
121 if (themeId != null) {
122 setThemeId(themeId);
123 }
124
125 String colorSchemeId = (String)attributes.get("colorSchemeId");
126
127 if (colorSchemeId != null) {
128 setColorSchemeId(colorSchemeId);
129 }
130
131 String wapThemeId = (String)attributes.get("wapThemeId");
132
133 if (wapThemeId != null) {
134 setWapThemeId(wapThemeId);
135 }
136
137 String wapColorSchemeId = (String)attributes.get("wapColorSchemeId");
138
139 if (wapColorSchemeId != null) {
140 setWapColorSchemeId(wapColorSchemeId);
141 }
142
143 String css = (String)attributes.get("css");
144
145 if (css != null) {
146 setCss(css);
147 }
148
149 Integer pageCount = (Integer)attributes.get("pageCount");
150
151 if (pageCount != null) {
152 setPageCount(pageCount);
153 }
154
155 String settings = (String)attributes.get("settings");
156
157 if (settings != null) {
158 setSettings(settings);
159 }
160
161 String layoutSetPrototypeUuid = (String)attributes.get(
162 "layoutSetPrototypeUuid");
163
164 if (layoutSetPrototypeUuid != null) {
165 setLayoutSetPrototypeUuid(layoutSetPrototypeUuid);
166 }
167
168 Boolean layoutSetPrototypeLinkEnabled = (Boolean)attributes.get(
169 "layoutSetPrototypeLinkEnabled");
170
171 if (layoutSetPrototypeLinkEnabled != null) {
172 setLayoutSetPrototypeLinkEnabled(layoutSetPrototypeLinkEnabled);
173 }
174 }
175
176
181 public long getPrimaryKey() {
182 return _layoutSet.getPrimaryKey();
183 }
184
185
190 public void setPrimaryKey(long primaryKey) {
191 _layoutSet.setPrimaryKey(primaryKey);
192 }
193
194
199 public long getLayoutSetId() {
200 return _layoutSet.getLayoutSetId();
201 }
202
203
208 public void setLayoutSetId(long layoutSetId) {
209 _layoutSet.setLayoutSetId(layoutSetId);
210 }
211
212
217 public long getGroupId() {
218 return _layoutSet.getGroupId();
219 }
220
221
226 public void setGroupId(long groupId) {
227 _layoutSet.setGroupId(groupId);
228 }
229
230
235 public long getCompanyId() {
236 return _layoutSet.getCompanyId();
237 }
238
239
244 public void setCompanyId(long companyId) {
245 _layoutSet.setCompanyId(companyId);
246 }
247
248
253 public java.util.Date getCreateDate() {
254 return _layoutSet.getCreateDate();
255 }
256
257
262 public void setCreateDate(java.util.Date createDate) {
263 _layoutSet.setCreateDate(createDate);
264 }
265
266
271 public java.util.Date getModifiedDate() {
272 return _layoutSet.getModifiedDate();
273 }
274
275
280 public void setModifiedDate(java.util.Date modifiedDate) {
281 _layoutSet.setModifiedDate(modifiedDate);
282 }
283
284
289 public boolean getPrivateLayout() {
290 return _layoutSet.getPrivateLayout();
291 }
292
293
298 public boolean isPrivateLayout() {
299 return _layoutSet.isPrivateLayout();
300 }
301
302
307 public void setPrivateLayout(boolean privateLayout) {
308 _layoutSet.setPrivateLayout(privateLayout);
309 }
310
311
316 public boolean getLogo() {
317 return _layoutSet.getLogo();
318 }
319
320
325 public boolean isLogo() {
326 return _layoutSet.isLogo();
327 }
328
329
334 public void setLogo(boolean logo) {
335 _layoutSet.setLogo(logo);
336 }
337
338
343 public long getLogoId() {
344 return _layoutSet.getLogoId();
345 }
346
347
352 public void setLogoId(long logoId) {
353 _layoutSet.setLogoId(logoId);
354 }
355
356
361 public java.lang.String getThemeId() {
362 return _layoutSet.getThemeId();
363 }
364
365
370 public void setThemeId(java.lang.String themeId) {
371 _layoutSet.setThemeId(themeId);
372 }
373
374
379 public java.lang.String getColorSchemeId() {
380 return _layoutSet.getColorSchemeId();
381 }
382
383
388 public void setColorSchemeId(java.lang.String colorSchemeId) {
389 _layoutSet.setColorSchemeId(colorSchemeId);
390 }
391
392
397 public java.lang.String getWapThemeId() {
398 return _layoutSet.getWapThemeId();
399 }
400
401
406 public void setWapThemeId(java.lang.String wapThemeId) {
407 _layoutSet.setWapThemeId(wapThemeId);
408 }
409
410
415 public java.lang.String getWapColorSchemeId() {
416 return _layoutSet.getWapColorSchemeId();
417 }
418
419
424 public void setWapColorSchemeId(java.lang.String wapColorSchemeId) {
425 _layoutSet.setWapColorSchemeId(wapColorSchemeId);
426 }
427
428
433 public java.lang.String getCss() {
434 return _layoutSet.getCss();
435 }
436
437
442 public void setCss(java.lang.String css) {
443 _layoutSet.setCss(css);
444 }
445
446
451 public int getPageCount() {
452 return _layoutSet.getPageCount();
453 }
454
455
460 public void setPageCount(int pageCount) {
461 _layoutSet.setPageCount(pageCount);
462 }
463
464
469 public java.lang.String getSettings() {
470 return _layoutSet.getSettings();
471 }
472
473
478 public void setSettings(java.lang.String settings) {
479 _layoutSet.setSettings(settings);
480 }
481
482
487 public java.lang.String getLayoutSetPrototypeUuid() {
488 return _layoutSet.getLayoutSetPrototypeUuid();
489 }
490
491
496 public void setLayoutSetPrototypeUuid(
497 java.lang.String layoutSetPrototypeUuid) {
498 _layoutSet.setLayoutSetPrototypeUuid(layoutSetPrototypeUuid);
499 }
500
501
506 public boolean getLayoutSetPrototypeLinkEnabled() {
507 return _layoutSet.getLayoutSetPrototypeLinkEnabled();
508 }
509
510
515 public boolean isLayoutSetPrototypeLinkEnabled() {
516 return _layoutSet.isLayoutSetPrototypeLinkEnabled();
517 }
518
519
524 public void setLayoutSetPrototypeLinkEnabled(
525 boolean layoutSetPrototypeLinkEnabled) {
526 _layoutSet.setLayoutSetPrototypeLinkEnabled(layoutSetPrototypeLinkEnabled);
527 }
528
529 public boolean isNew() {
530 return _layoutSet.isNew();
531 }
532
533 public void setNew(boolean n) {
534 _layoutSet.setNew(n);
535 }
536
537 public boolean isCachedModel() {
538 return _layoutSet.isCachedModel();
539 }
540
541 public void setCachedModel(boolean cachedModel) {
542 _layoutSet.setCachedModel(cachedModel);
543 }
544
545 public boolean isEscapedModel() {
546 return _layoutSet.isEscapedModel();
547 }
548
549 public java.io.Serializable getPrimaryKeyObj() {
550 return _layoutSet.getPrimaryKeyObj();
551 }
552
553 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
554 _layoutSet.setPrimaryKeyObj(primaryKeyObj);
555 }
556
557 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
558 return _layoutSet.getExpandoBridge();
559 }
560
561 public void setExpandoBridgeAttributes(
562 com.liferay.portal.service.ServiceContext serviceContext) {
563 _layoutSet.setExpandoBridgeAttributes(serviceContext);
564 }
565
566 @Override
567 public java.lang.Object clone() {
568 return new LayoutSetWrapper((LayoutSet)_layoutSet.clone());
569 }
570
571 public int compareTo(com.liferay.portal.model.LayoutSet layoutSet) {
572 return _layoutSet.compareTo(layoutSet);
573 }
574
575 @Override
576 public int hashCode() {
577 return _layoutSet.hashCode();
578 }
579
580 public com.liferay.portal.model.CacheModel<com.liferay.portal.model.LayoutSet> toCacheModel() {
581 return _layoutSet.toCacheModel();
582 }
583
584 public com.liferay.portal.model.LayoutSet toEscapedModel() {
585 return new LayoutSetWrapper(_layoutSet.toEscapedModel());
586 }
587
588 public com.liferay.portal.model.LayoutSet toUnescapedModel() {
589 return new LayoutSetWrapper(_layoutSet.toUnescapedModel());
590 }
591
592 @Override
593 public java.lang.String toString() {
594 return _layoutSet.toString();
595 }
596
597 public java.lang.String toXmlString() {
598 return _layoutSet.toXmlString();
599 }
600
601 public void persist()
602 throws com.liferay.portal.kernel.exception.SystemException {
603 _layoutSet.persist();
604 }
605
606 public com.liferay.portal.model.ColorScheme getColorScheme()
607 throws com.liferay.portal.kernel.exception.SystemException {
608 return _layoutSet.getColorScheme();
609 }
610
611 public com.liferay.portal.model.Group getGroup()
612 throws com.liferay.portal.kernel.exception.PortalException,
613 com.liferay.portal.kernel.exception.SystemException {
614 return _layoutSet.getGroup();
615 }
616
617 public long getLayoutSetPrototypeId()
618 throws com.liferay.portal.kernel.exception.PortalException,
619 com.liferay.portal.kernel.exception.SystemException {
620 return _layoutSet.getLayoutSetPrototypeId();
621 }
622
623 public long getLiveLogoId() {
624 return _layoutSet.getLiveLogoId();
625 }
626
627 public com.liferay.portal.kernel.util.UnicodeProperties getSettingsProperties() {
628 return _layoutSet.getSettingsProperties();
629 }
630
631 public java.lang.String getSettingsProperty(java.lang.String key) {
632 return _layoutSet.getSettingsProperty(key);
633 }
634
635 public com.liferay.portal.model.Theme getTheme()
636 throws com.liferay.portal.kernel.exception.SystemException {
637 return _layoutSet.getTheme();
638 }
639
640 public java.lang.String getThemeSetting(java.lang.String key,
641 java.lang.String device)
642 throws com.liferay.portal.kernel.exception.SystemException {
643 return _layoutSet.getThemeSetting(key, device);
644 }
645
646 public java.lang.String getVirtualHostname() {
647 return _layoutSet.getVirtualHostname();
648 }
649
650 public com.liferay.portal.model.ColorScheme getWapColorScheme()
651 throws com.liferay.portal.kernel.exception.SystemException {
652 return _layoutSet.getWapColorScheme();
653 }
654
655 public com.liferay.portal.model.Theme getWapTheme()
656 throws com.liferay.portal.kernel.exception.SystemException {
657 return _layoutSet.getWapTheme();
658 }
659
660 public boolean isLayoutSetPrototypeLinkActive() {
661 return _layoutSet.isLayoutSetPrototypeLinkActive();
662 }
663
664 public void setSettingsProperties(
665 com.liferay.portal.kernel.util.UnicodeProperties settingsProperties) {
666 _layoutSet.setSettingsProperties(settingsProperties);
667 }
668
669 @Override
670 public boolean equals(Object obj) {
671 if (this == obj) {
672 return true;
673 }
674
675 if (!(obj instanceof LayoutSetWrapper)) {
676 return false;
677 }
678
679 LayoutSetWrapper layoutSetWrapper = (LayoutSetWrapper)obj;
680
681 if (Validator.equals(_layoutSet, layoutSetWrapper._layoutSet)) {
682 return true;
683 }
684
685 return false;
686 }
687
688
691 public LayoutSet getWrappedLayoutSet() {
692 return _layoutSet;
693 }
694
695 public LayoutSet getWrappedModel() {
696 return _layoutSet;
697 }
698
699 public void resetOriginalValues() {
700 _layoutSet.resetOriginalValues();
701 }
702
703 private LayoutSet _layoutSet;
704 }