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 import com.liferay.portlet.exportimport.lar.StagedModelType;
024
025 import java.io.Serializable;
026
027 import java.util.Date;
028 import java.util.HashMap;
029 import java.util.Map;
030
031
040 @ProviderType
041 public class LayoutSetPrototypeWrapper implements LayoutSetPrototype,
042 ModelWrapper<LayoutSetPrototype> {
043 public LayoutSetPrototypeWrapper(LayoutSetPrototype layoutSetPrototype) {
044 _layoutSetPrototype = layoutSetPrototype;
045 }
046
047 @Override
048 public Class<?> getModelClass() {
049 return LayoutSetPrototype.class;
050 }
051
052 @Override
053 public String getModelClassName() {
054 return LayoutSetPrototype.class.getName();
055 }
056
057 @Override
058 public Map<String, Object> getModelAttributes() {
059 Map<String, Object> attributes = new HashMap<String, Object>();
060
061 attributes.put("mvccVersion", getMvccVersion());
062 attributes.put("uuid", getUuid());
063 attributes.put("layoutSetPrototypeId", getLayoutSetPrototypeId());
064 attributes.put("companyId", getCompanyId());
065 attributes.put("userId", getUserId());
066 attributes.put("userName", getUserName());
067 attributes.put("createDate", getCreateDate());
068 attributes.put("modifiedDate", getModifiedDate());
069 attributes.put("name", getName());
070 attributes.put("description", getDescription());
071 attributes.put("settings", getSettings());
072 attributes.put("active", getActive());
073
074 return attributes;
075 }
076
077 @Override
078 public void setModelAttributes(Map<String, Object> attributes) {
079 Long mvccVersion = (Long)attributes.get("mvccVersion");
080
081 if (mvccVersion != null) {
082 setMvccVersion(mvccVersion);
083 }
084
085 String uuid = (String)attributes.get("uuid");
086
087 if (uuid != null) {
088 setUuid(uuid);
089 }
090
091 Long layoutSetPrototypeId = (Long)attributes.get("layoutSetPrototypeId");
092
093 if (layoutSetPrototypeId != null) {
094 setLayoutSetPrototypeId(layoutSetPrototypeId);
095 }
096
097 Long companyId = (Long)attributes.get("companyId");
098
099 if (companyId != null) {
100 setCompanyId(companyId);
101 }
102
103 Long userId = (Long)attributes.get("userId");
104
105 if (userId != null) {
106 setUserId(userId);
107 }
108
109 String userName = (String)attributes.get("userName");
110
111 if (userName != null) {
112 setUserName(userName);
113 }
114
115 Date createDate = (Date)attributes.get("createDate");
116
117 if (createDate != null) {
118 setCreateDate(createDate);
119 }
120
121 Date modifiedDate = (Date)attributes.get("modifiedDate");
122
123 if (modifiedDate != null) {
124 setModifiedDate(modifiedDate);
125 }
126
127 String name = (String)attributes.get("name");
128
129 if (name != null) {
130 setName(name);
131 }
132
133 String description = (String)attributes.get("description");
134
135 if (description != null) {
136 setDescription(description);
137 }
138
139 String settings = (String)attributes.get("settings");
140
141 if (settings != null) {
142 setSettings(settings);
143 }
144
145 Boolean active = (Boolean)attributes.get("active");
146
147 if (active != null) {
148 setActive(active);
149 }
150 }
151
152 @Override
153 public java.lang.Object clone() {
154 return new LayoutSetPrototypeWrapper((LayoutSetPrototype)_layoutSetPrototype.clone());
155 }
156
157 @Override
158 public int compareTo(
159 com.liferay.portal.model.LayoutSetPrototype layoutSetPrototype) {
160 return _layoutSetPrototype.compareTo(layoutSetPrototype);
161 }
162
163
168 @Override
169 public boolean getActive() {
170 return _layoutSetPrototype.getActive();
171 }
172
173 @Override
174 public java.lang.String[] getAvailableLanguageIds() {
175 return _layoutSetPrototype.getAvailableLanguageIds();
176 }
177
178
183 @Override
184 public long getCompanyId() {
185 return _layoutSetPrototype.getCompanyId();
186 }
187
188
193 @Override
194 public Date getCreateDate() {
195 return _layoutSetPrototype.getCreateDate();
196 }
197
198 @Override
199 public java.lang.String getDefaultLanguageId() {
200 return _layoutSetPrototype.getDefaultLanguageId();
201 }
202
203
208 @Override
209 public java.lang.String getDescription() {
210 return _layoutSetPrototype.getDescription();
211 }
212
213
219 @Override
220 public java.lang.String getDescription(java.lang.String languageId) {
221 return _layoutSetPrototype.getDescription(languageId);
222 }
223
224
231 @Override
232 public java.lang.String getDescription(java.lang.String languageId,
233 boolean useDefault) {
234 return _layoutSetPrototype.getDescription(languageId, useDefault);
235 }
236
237
243 @Override
244 public java.lang.String getDescription(java.util.Locale locale) {
245 return _layoutSetPrototype.getDescription(locale);
246 }
247
248
255 @Override
256 public java.lang.String getDescription(java.util.Locale locale,
257 boolean useDefault) {
258 return _layoutSetPrototype.getDescription(locale, useDefault);
259 }
260
261 @Override
262 public java.lang.String getDescriptionCurrentLanguageId() {
263 return _layoutSetPrototype.getDescriptionCurrentLanguageId();
264 }
265
266 @Override
267 public java.lang.String getDescriptionCurrentValue() {
268 return _layoutSetPrototype.getDescriptionCurrentValue();
269 }
270
271
276 @Override
277 public Map<java.util.Locale, java.lang.String> getDescriptionMap() {
278 return _layoutSetPrototype.getDescriptionMap();
279 }
280
281 @Override
282 public ExpandoBridge getExpandoBridge() {
283 return _layoutSetPrototype.getExpandoBridge();
284 }
285
286 @Override
287 public com.liferay.portal.model.Group getGroup()
288 throws com.liferay.portal.kernel.exception.PortalException {
289 return _layoutSetPrototype.getGroup();
290 }
291
292 @Override
293 public long getGroupId()
294 throws com.liferay.portal.kernel.exception.PortalException {
295 return _layoutSetPrototype.getGroupId();
296 }
297
298 @Override
299 public com.liferay.portal.model.LayoutSet getLayoutSet()
300 throws com.liferay.portal.kernel.exception.PortalException {
301 return _layoutSetPrototype.getLayoutSet();
302 }
303
304
309 @Override
310 public long getLayoutSetPrototypeId() {
311 return _layoutSetPrototype.getLayoutSetPrototypeId();
312 }
313
314
319 @Override
320 public Date getModifiedDate() {
321 return _layoutSetPrototype.getModifiedDate();
322 }
323
324
329 @Override
330 public long getMvccVersion() {
331 return _layoutSetPrototype.getMvccVersion();
332 }
333
334
339 @Override
340 public java.lang.String getName() {
341 return _layoutSetPrototype.getName();
342 }
343
344
350 @Override
351 public java.lang.String getName(java.lang.String languageId) {
352 return _layoutSetPrototype.getName(languageId);
353 }
354
355
362 @Override
363 public java.lang.String getName(java.lang.String languageId,
364 boolean useDefault) {
365 return _layoutSetPrototype.getName(languageId, useDefault);
366 }
367
368
374 @Override
375 public java.lang.String getName(java.util.Locale locale) {
376 return _layoutSetPrototype.getName(locale);
377 }
378
379
386 @Override
387 public java.lang.String getName(java.util.Locale locale, boolean useDefault) {
388 return _layoutSetPrototype.getName(locale, useDefault);
389 }
390
391 @Override
392 public java.lang.String getNameCurrentLanguageId() {
393 return _layoutSetPrototype.getNameCurrentLanguageId();
394 }
395
396 @Override
397 public java.lang.String getNameCurrentValue() {
398 return _layoutSetPrototype.getNameCurrentValue();
399 }
400
401
406 @Override
407 public Map<java.util.Locale, java.lang.String> getNameMap() {
408 return _layoutSetPrototype.getNameMap();
409 }
410
411
416 @Override
417 public long getPrimaryKey() {
418 return _layoutSetPrototype.getPrimaryKey();
419 }
420
421 @Override
422 public Serializable getPrimaryKeyObj() {
423 return _layoutSetPrototype.getPrimaryKeyObj();
424 }
425
426
431 @Override
432 public java.lang.String getSettings() {
433 return _layoutSetPrototype.getSettings();
434 }
435
436 @Override
437 public com.liferay.portal.kernel.util.UnicodeProperties getSettingsProperties() {
438 return _layoutSetPrototype.getSettingsProperties();
439 }
440
441 @Override
442 public java.lang.String getSettingsProperty(java.lang.String key) {
443 return _layoutSetPrototype.getSettingsProperty(key);
444 }
445
446
451 @Override
452 public long getUserId() {
453 return _layoutSetPrototype.getUserId();
454 }
455
456
461 @Override
462 public java.lang.String getUserName() {
463 return _layoutSetPrototype.getUserName();
464 }
465
466
471 @Override
472 public java.lang.String getUserUuid() {
473 return _layoutSetPrototype.getUserUuid();
474 }
475
476
481 @Override
482 public java.lang.String getUuid() {
483 return _layoutSetPrototype.getUuid();
484 }
485
486 @Override
487 public boolean hasSetModifiedDate() {
488 return _layoutSetPrototype.hasSetModifiedDate();
489 }
490
491 @Override
492 public int hashCode() {
493 return _layoutSetPrototype.hashCode();
494 }
495
496
501 @Override
502 public boolean isActive() {
503 return _layoutSetPrototype.isActive();
504 }
505
506 @Override
507 public boolean isCachedModel() {
508 return _layoutSetPrototype.isCachedModel();
509 }
510
511 @Override
512 public boolean isEscapedModel() {
513 return _layoutSetPrototype.isEscapedModel();
514 }
515
516 @Override
517 public boolean isNew() {
518 return _layoutSetPrototype.isNew();
519 }
520
521 @Override
522 public void persist() {
523 _layoutSetPrototype.persist();
524 }
525
526 @Override
527 public void prepareLocalizedFieldsForImport()
528 throws com.liferay.portal.LocaleException {
529 _layoutSetPrototype.prepareLocalizedFieldsForImport();
530 }
531
532 @Override
533 public void prepareLocalizedFieldsForImport(
534 java.util.Locale defaultImportLocale)
535 throws com.liferay.portal.LocaleException {
536 _layoutSetPrototype.prepareLocalizedFieldsForImport(defaultImportLocale);
537 }
538
539
544 @Override
545 public void setActive(boolean active) {
546 _layoutSetPrototype.setActive(active);
547 }
548
549 @Override
550 public void setCachedModel(boolean cachedModel) {
551 _layoutSetPrototype.setCachedModel(cachedModel);
552 }
553
554
559 @Override
560 public void setCompanyId(long companyId) {
561 _layoutSetPrototype.setCompanyId(companyId);
562 }
563
564
569 @Override
570 public void setCreateDate(Date createDate) {
571 _layoutSetPrototype.setCreateDate(createDate);
572 }
573
574
579 @Override
580 public void setDescription(java.lang.String description) {
581 _layoutSetPrototype.setDescription(description);
582 }
583
584
590 @Override
591 public void setDescription(java.lang.String description,
592 java.util.Locale locale) {
593 _layoutSetPrototype.setDescription(description, locale);
594 }
595
596
603 @Override
604 public void setDescription(java.lang.String description,
605 java.util.Locale locale, java.util.Locale defaultLocale) {
606 _layoutSetPrototype.setDescription(description, locale, defaultLocale);
607 }
608
609 @Override
610 public void setDescriptionCurrentLanguageId(java.lang.String languageId) {
611 _layoutSetPrototype.setDescriptionCurrentLanguageId(languageId);
612 }
613
614
619 @Override
620 public void setDescriptionMap(
621 Map<java.util.Locale, java.lang.String> descriptionMap) {
622 _layoutSetPrototype.setDescriptionMap(descriptionMap);
623 }
624
625
631 @Override
632 public void setDescriptionMap(
633 Map<java.util.Locale, java.lang.String> descriptionMap,
634 java.util.Locale defaultLocale) {
635 _layoutSetPrototype.setDescriptionMap(descriptionMap, defaultLocale);
636 }
637
638 @Override
639 public void setExpandoBridgeAttributes(BaseModel<?> baseModel) {
640 _layoutSetPrototype.setExpandoBridgeAttributes(baseModel);
641 }
642
643 @Override
644 public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge) {
645 _layoutSetPrototype.setExpandoBridgeAttributes(expandoBridge);
646 }
647
648 @Override
649 public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
650 _layoutSetPrototype.setExpandoBridgeAttributes(serviceContext);
651 }
652
653
658 @Override
659 public void setLayoutSetPrototypeId(long layoutSetPrototypeId) {
660 _layoutSetPrototype.setLayoutSetPrototypeId(layoutSetPrototypeId);
661 }
662
663
668 @Override
669 public void setModifiedDate(Date modifiedDate) {
670 _layoutSetPrototype.setModifiedDate(modifiedDate);
671 }
672
673
678 @Override
679 public void setMvccVersion(long mvccVersion) {
680 _layoutSetPrototype.setMvccVersion(mvccVersion);
681 }
682
683
688 @Override
689 public void setName(java.lang.String name) {
690 _layoutSetPrototype.setName(name);
691 }
692
693
699 @Override
700 public void setName(java.lang.String name, java.util.Locale locale) {
701 _layoutSetPrototype.setName(name, locale);
702 }
703
704
711 @Override
712 public void setName(java.lang.String name, java.util.Locale locale,
713 java.util.Locale defaultLocale) {
714 _layoutSetPrototype.setName(name, locale, defaultLocale);
715 }
716
717 @Override
718 public void setNameCurrentLanguageId(java.lang.String languageId) {
719 _layoutSetPrototype.setNameCurrentLanguageId(languageId);
720 }
721
722
727 @Override
728 public void setNameMap(Map<java.util.Locale, java.lang.String> nameMap) {
729 _layoutSetPrototype.setNameMap(nameMap);
730 }
731
732
738 @Override
739 public void setNameMap(Map<java.util.Locale, java.lang.String> nameMap,
740 java.util.Locale defaultLocale) {
741 _layoutSetPrototype.setNameMap(nameMap, defaultLocale);
742 }
743
744 @Override
745 public void setNew(boolean n) {
746 _layoutSetPrototype.setNew(n);
747 }
748
749
754 @Override
755 public void setPrimaryKey(long primaryKey) {
756 _layoutSetPrototype.setPrimaryKey(primaryKey);
757 }
758
759 @Override
760 public void setPrimaryKeyObj(Serializable primaryKeyObj) {
761 _layoutSetPrototype.setPrimaryKeyObj(primaryKeyObj);
762 }
763
764
769 @Override
770 public void setSettings(java.lang.String settings) {
771 _layoutSetPrototype.setSettings(settings);
772 }
773
774 @Override
775 public void setSettingsProperties(
776 com.liferay.portal.kernel.util.UnicodeProperties settingsProperties) {
777 _layoutSetPrototype.setSettingsProperties(settingsProperties);
778 }
779
780
785 @Override
786 public void setUserId(long userId) {
787 _layoutSetPrototype.setUserId(userId);
788 }
789
790
795 @Override
796 public void setUserName(java.lang.String userName) {
797 _layoutSetPrototype.setUserName(userName);
798 }
799
800
805 @Override
806 public void setUserUuid(java.lang.String userUuid) {
807 _layoutSetPrototype.setUserUuid(userUuid);
808 }
809
810
815 @Override
816 public void setUuid(java.lang.String uuid) {
817 _layoutSetPrototype.setUuid(uuid);
818 }
819
820 @Override
821 public CacheModel<com.liferay.portal.model.LayoutSetPrototype> toCacheModel() {
822 return _layoutSetPrototype.toCacheModel();
823 }
824
825 @Override
826 public com.liferay.portal.model.LayoutSetPrototype toEscapedModel() {
827 return new LayoutSetPrototypeWrapper(_layoutSetPrototype.toEscapedModel());
828 }
829
830 @Override
831 public java.lang.String toString() {
832 return _layoutSetPrototype.toString();
833 }
834
835 @Override
836 public com.liferay.portal.model.LayoutSetPrototype toUnescapedModel() {
837 return new LayoutSetPrototypeWrapper(_layoutSetPrototype.toUnescapedModel());
838 }
839
840 @Override
841 public java.lang.String toXmlString() {
842 return _layoutSetPrototype.toXmlString();
843 }
844
845 @Override
846 public boolean equals(Object obj) {
847 if (this == obj) {
848 return true;
849 }
850
851 if (!(obj instanceof LayoutSetPrototypeWrapper)) {
852 return false;
853 }
854
855 LayoutSetPrototypeWrapper layoutSetPrototypeWrapper = (LayoutSetPrototypeWrapper)obj;
856
857 if (Validator.equals(_layoutSetPrototype,
858 layoutSetPrototypeWrapper._layoutSetPrototype)) {
859 return true;
860 }
861
862 return false;
863 }
864
865 @Override
866 public StagedModelType getStagedModelType() {
867 return _layoutSetPrototype.getStagedModelType();
868 }
869
870 @Override
871 public LayoutSetPrototype getWrappedModel() {
872 return _layoutSetPrototype;
873 }
874
875 @Override
876 public boolean isEntityCacheEnabled() {
877 return _layoutSetPrototype.isEntityCacheEnabled();
878 }
879
880 @Override
881 public boolean isFinderCacheEnabled() {
882 return _layoutSetPrototype.isFinderCacheEnabled();
883 }
884
885 @Override
886 public void resetOriginalValues() {
887 _layoutSetPrototype.resetOriginalValues();
888 }
889
890 private final LayoutSetPrototype _layoutSetPrototype;
891 }