001
014
015 package com.liferay.portal.model;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.lar.StagedModelType;
020 import com.liferay.portal.kernel.util.Validator;
021
022 import java.util.Date;
023 import java.util.HashMap;
024 import java.util.Map;
025
026
035 @ProviderType
036 public class LayoutSetPrototypeWrapper implements LayoutSetPrototype,
037 ModelWrapper<LayoutSetPrototype> {
038 public LayoutSetPrototypeWrapper(LayoutSetPrototype layoutSetPrototype) {
039 _layoutSetPrototype = layoutSetPrototype;
040 }
041
042 @Override
043 public Class<?> getModelClass() {
044 return LayoutSetPrototype.class;
045 }
046
047 @Override
048 public String getModelClassName() {
049 return LayoutSetPrototype.class.getName();
050 }
051
052 @Override
053 public Map<String, Object> getModelAttributes() {
054 Map<String, Object> attributes = new HashMap<String, Object>();
055
056 attributes.put("mvccVersion", getMvccVersion());
057 attributes.put("uuid", getUuid());
058 attributes.put("layoutSetPrototypeId", getLayoutSetPrototypeId());
059 attributes.put("companyId", getCompanyId());
060 attributes.put("userId", getUserId());
061 attributes.put("userName", getUserName());
062 attributes.put("createDate", getCreateDate());
063 attributes.put("modifiedDate", getModifiedDate());
064 attributes.put("name", getName());
065 attributes.put("description", getDescription());
066 attributes.put("settings", getSettings());
067 attributes.put("active", getActive());
068
069 return attributes;
070 }
071
072 @Override
073 public void setModelAttributes(Map<String, Object> attributes) {
074 Long mvccVersion = (Long)attributes.get("mvccVersion");
075
076 if (mvccVersion != null) {
077 setMvccVersion(mvccVersion);
078 }
079
080 String uuid = (String)attributes.get("uuid");
081
082 if (uuid != null) {
083 setUuid(uuid);
084 }
085
086 Long layoutSetPrototypeId = (Long)attributes.get("layoutSetPrototypeId");
087
088 if (layoutSetPrototypeId != null) {
089 setLayoutSetPrototypeId(layoutSetPrototypeId);
090 }
091
092 Long companyId = (Long)attributes.get("companyId");
093
094 if (companyId != null) {
095 setCompanyId(companyId);
096 }
097
098 Long userId = (Long)attributes.get("userId");
099
100 if (userId != null) {
101 setUserId(userId);
102 }
103
104 String userName = (String)attributes.get("userName");
105
106 if (userName != null) {
107 setUserName(userName);
108 }
109
110 Date createDate = (Date)attributes.get("createDate");
111
112 if (createDate != null) {
113 setCreateDate(createDate);
114 }
115
116 Date modifiedDate = (Date)attributes.get("modifiedDate");
117
118 if (modifiedDate != null) {
119 setModifiedDate(modifiedDate);
120 }
121
122 String name = (String)attributes.get("name");
123
124 if (name != null) {
125 setName(name);
126 }
127
128 String description = (String)attributes.get("description");
129
130 if (description != null) {
131 setDescription(description);
132 }
133
134 String settings = (String)attributes.get("settings");
135
136 if (settings != null) {
137 setSettings(settings);
138 }
139
140 Boolean active = (Boolean)attributes.get("active");
141
142 if (active != null) {
143 setActive(active);
144 }
145 }
146
147 @Override
148 public java.lang.Object clone() {
149 return new LayoutSetPrototypeWrapper((LayoutSetPrototype)_layoutSetPrototype.clone());
150 }
151
152 @Override
153 public int compareTo(
154 com.liferay.portal.model.LayoutSetPrototype layoutSetPrototype) {
155 return _layoutSetPrototype.compareTo(layoutSetPrototype);
156 }
157
158
163 @Override
164 public boolean getActive() {
165 return _layoutSetPrototype.getActive();
166 }
167
168 @Override
169 public java.lang.String[] getAvailableLanguageIds() {
170 return _layoutSetPrototype.getAvailableLanguageIds();
171 }
172
173
178 @Override
179 public long getCompanyId() {
180 return _layoutSetPrototype.getCompanyId();
181 }
182
183
188 @Override
189 public java.util.Date getCreateDate() {
190 return _layoutSetPrototype.getCreateDate();
191 }
192
193 @Override
194 public java.lang.String getDefaultLanguageId() {
195 return _layoutSetPrototype.getDefaultLanguageId();
196 }
197
198
203 @Override
204 public java.lang.String getDescription() {
205 return _layoutSetPrototype.getDescription();
206 }
207
208
214 @Override
215 public java.lang.String getDescription(java.lang.String languageId) {
216 return _layoutSetPrototype.getDescription(languageId);
217 }
218
219
226 @Override
227 public java.lang.String getDescription(java.lang.String languageId,
228 boolean useDefault) {
229 return _layoutSetPrototype.getDescription(languageId, useDefault);
230 }
231
232
238 @Override
239 public java.lang.String getDescription(java.util.Locale locale) {
240 return _layoutSetPrototype.getDescription(locale);
241 }
242
243
250 @Override
251 public java.lang.String getDescription(java.util.Locale locale,
252 boolean useDefault) {
253 return _layoutSetPrototype.getDescription(locale, useDefault);
254 }
255
256 @Override
257 public java.lang.String getDescriptionCurrentLanguageId() {
258 return _layoutSetPrototype.getDescriptionCurrentLanguageId();
259 }
260
261 @Override
262 public java.lang.String getDescriptionCurrentValue() {
263 return _layoutSetPrototype.getDescriptionCurrentValue();
264 }
265
266
271 @Override
272 public java.util.Map<java.util.Locale, java.lang.String> getDescriptionMap() {
273 return _layoutSetPrototype.getDescriptionMap();
274 }
275
276 @Override
277 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
278 return _layoutSetPrototype.getExpandoBridge();
279 }
280
281 @Override
282 public com.liferay.portal.model.Group getGroup()
283 throws com.liferay.portal.kernel.exception.PortalException {
284 return _layoutSetPrototype.getGroup();
285 }
286
287 @Override
288 public long getGroupId()
289 throws com.liferay.portal.kernel.exception.PortalException {
290 return _layoutSetPrototype.getGroupId();
291 }
292
293 @Override
294 public com.liferay.portal.model.LayoutSet getLayoutSet()
295 throws com.liferay.portal.kernel.exception.PortalException {
296 return _layoutSetPrototype.getLayoutSet();
297 }
298
299
304 @Override
305 public long getLayoutSetPrototypeId() {
306 return _layoutSetPrototype.getLayoutSetPrototypeId();
307 }
308
309
314 @Override
315 public java.util.Date getModifiedDate() {
316 return _layoutSetPrototype.getModifiedDate();
317 }
318
319
324 @Override
325 public long getMvccVersion() {
326 return _layoutSetPrototype.getMvccVersion();
327 }
328
329
334 @Override
335 public java.lang.String getName() {
336 return _layoutSetPrototype.getName();
337 }
338
339
345 @Override
346 public java.lang.String getName(java.lang.String languageId) {
347 return _layoutSetPrototype.getName(languageId);
348 }
349
350
357 @Override
358 public java.lang.String getName(java.lang.String languageId,
359 boolean useDefault) {
360 return _layoutSetPrototype.getName(languageId, useDefault);
361 }
362
363
369 @Override
370 public java.lang.String getName(java.util.Locale locale) {
371 return _layoutSetPrototype.getName(locale);
372 }
373
374
381 @Override
382 public java.lang.String getName(java.util.Locale locale, boolean useDefault) {
383 return _layoutSetPrototype.getName(locale, useDefault);
384 }
385
386 @Override
387 public java.lang.String getNameCurrentLanguageId() {
388 return _layoutSetPrototype.getNameCurrentLanguageId();
389 }
390
391 @Override
392 public java.lang.String getNameCurrentValue() {
393 return _layoutSetPrototype.getNameCurrentValue();
394 }
395
396
401 @Override
402 public java.util.Map<java.util.Locale, java.lang.String> getNameMap() {
403 return _layoutSetPrototype.getNameMap();
404 }
405
406
411 @Override
412 public long getPrimaryKey() {
413 return _layoutSetPrototype.getPrimaryKey();
414 }
415
416 @Override
417 public java.io.Serializable getPrimaryKeyObj() {
418 return _layoutSetPrototype.getPrimaryKeyObj();
419 }
420
421
426 @Override
427 public java.lang.String getSettings() {
428 return _layoutSetPrototype.getSettings();
429 }
430
431 @Override
432 public com.liferay.portal.kernel.util.UnicodeProperties getSettingsProperties() {
433 return _layoutSetPrototype.getSettingsProperties();
434 }
435
436 @Override
437 public java.lang.String getSettingsProperty(java.lang.String key) {
438 return _layoutSetPrototype.getSettingsProperty(key);
439 }
440
441
446 @Override
447 public long getUserId() {
448 return _layoutSetPrototype.getUserId();
449 }
450
451
456 @Override
457 public java.lang.String getUserName() {
458 return _layoutSetPrototype.getUserName();
459 }
460
461
466 @Override
467 public java.lang.String getUserUuid() {
468 return _layoutSetPrototype.getUserUuid();
469 }
470
471
476 @Override
477 public java.lang.String getUuid() {
478 return _layoutSetPrototype.getUuid();
479 }
480
481 @Override
482 public int hashCode() {
483 return _layoutSetPrototype.hashCode();
484 }
485
486
491 @Override
492 public boolean isActive() {
493 return _layoutSetPrototype.isActive();
494 }
495
496 @Override
497 public boolean isCachedModel() {
498 return _layoutSetPrototype.isCachedModel();
499 }
500
501 @Override
502 public boolean isEscapedModel() {
503 return _layoutSetPrototype.isEscapedModel();
504 }
505
506 @Override
507 public boolean isNew() {
508 return _layoutSetPrototype.isNew();
509 }
510
511 @Override
512 public void persist() {
513 _layoutSetPrototype.persist();
514 }
515
516 @Override
517 public void prepareLocalizedFieldsForImport()
518 throws com.liferay.portal.LocaleException {
519 _layoutSetPrototype.prepareLocalizedFieldsForImport();
520 }
521
522 @Override
523 public void prepareLocalizedFieldsForImport(
524 java.util.Locale defaultImportLocale)
525 throws com.liferay.portal.LocaleException {
526 _layoutSetPrototype.prepareLocalizedFieldsForImport(defaultImportLocale);
527 }
528
529
534 @Override
535 public void setActive(boolean active) {
536 _layoutSetPrototype.setActive(active);
537 }
538
539 @Override
540 public void setCachedModel(boolean cachedModel) {
541 _layoutSetPrototype.setCachedModel(cachedModel);
542 }
543
544
549 @Override
550 public void setCompanyId(long companyId) {
551 _layoutSetPrototype.setCompanyId(companyId);
552 }
553
554
559 @Override
560 public void setCreateDate(java.util.Date createDate) {
561 _layoutSetPrototype.setCreateDate(createDate);
562 }
563
564
569 @Override
570 public void setDescription(java.lang.String description) {
571 _layoutSetPrototype.setDescription(description);
572 }
573
574
580 @Override
581 public void setDescription(java.lang.String description,
582 java.util.Locale locale) {
583 _layoutSetPrototype.setDescription(description, locale);
584 }
585
586
593 @Override
594 public void setDescription(java.lang.String description,
595 java.util.Locale locale, java.util.Locale defaultLocale) {
596 _layoutSetPrototype.setDescription(description, locale, defaultLocale);
597 }
598
599 @Override
600 public void setDescriptionCurrentLanguageId(java.lang.String languageId) {
601 _layoutSetPrototype.setDescriptionCurrentLanguageId(languageId);
602 }
603
604
609 @Override
610 public void setDescriptionMap(
611 java.util.Map<java.util.Locale, java.lang.String> descriptionMap) {
612 _layoutSetPrototype.setDescriptionMap(descriptionMap);
613 }
614
615
621 @Override
622 public void setDescriptionMap(
623 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
624 java.util.Locale defaultLocale) {
625 _layoutSetPrototype.setDescriptionMap(descriptionMap, defaultLocale);
626 }
627
628 @Override
629 public void setExpandoBridgeAttributes(
630 com.liferay.portal.model.BaseModel<?> baseModel) {
631 _layoutSetPrototype.setExpandoBridgeAttributes(baseModel);
632 }
633
634 @Override
635 public void setExpandoBridgeAttributes(
636 com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
637 _layoutSetPrototype.setExpandoBridgeAttributes(expandoBridge);
638 }
639
640 @Override
641 public void setExpandoBridgeAttributes(
642 com.liferay.portal.service.ServiceContext serviceContext) {
643 _layoutSetPrototype.setExpandoBridgeAttributes(serviceContext);
644 }
645
646
651 @Override
652 public void setLayoutSetPrototypeId(long layoutSetPrototypeId) {
653 _layoutSetPrototype.setLayoutSetPrototypeId(layoutSetPrototypeId);
654 }
655
656
661 @Override
662 public void setModifiedDate(java.util.Date modifiedDate) {
663 _layoutSetPrototype.setModifiedDate(modifiedDate);
664 }
665
666
671 @Override
672 public void setMvccVersion(long mvccVersion) {
673 _layoutSetPrototype.setMvccVersion(mvccVersion);
674 }
675
676
681 @Override
682 public void setName(java.lang.String name) {
683 _layoutSetPrototype.setName(name);
684 }
685
686
692 @Override
693 public void setName(java.lang.String name, java.util.Locale locale) {
694 _layoutSetPrototype.setName(name, locale);
695 }
696
697
704 @Override
705 public void setName(java.lang.String name, java.util.Locale locale,
706 java.util.Locale defaultLocale) {
707 _layoutSetPrototype.setName(name, locale, defaultLocale);
708 }
709
710 @Override
711 public void setNameCurrentLanguageId(java.lang.String languageId) {
712 _layoutSetPrototype.setNameCurrentLanguageId(languageId);
713 }
714
715
720 @Override
721 public void setNameMap(
722 java.util.Map<java.util.Locale, java.lang.String> nameMap) {
723 _layoutSetPrototype.setNameMap(nameMap);
724 }
725
726
732 @Override
733 public void setNameMap(
734 java.util.Map<java.util.Locale, java.lang.String> nameMap,
735 java.util.Locale defaultLocale) {
736 _layoutSetPrototype.setNameMap(nameMap, defaultLocale);
737 }
738
739 @Override
740 public void setNew(boolean n) {
741 _layoutSetPrototype.setNew(n);
742 }
743
744
749 @Override
750 public void setPrimaryKey(long primaryKey) {
751 _layoutSetPrototype.setPrimaryKey(primaryKey);
752 }
753
754 @Override
755 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
756 _layoutSetPrototype.setPrimaryKeyObj(primaryKeyObj);
757 }
758
759
764 @Override
765 public void setSettings(java.lang.String settings) {
766 _layoutSetPrototype.setSettings(settings);
767 }
768
769 @Override
770 public void setSettingsProperties(
771 com.liferay.portal.kernel.util.UnicodeProperties settingsProperties) {
772 _layoutSetPrototype.setSettingsProperties(settingsProperties);
773 }
774
775
780 @Override
781 public void setUserId(long userId) {
782 _layoutSetPrototype.setUserId(userId);
783 }
784
785
790 @Override
791 public void setUserName(java.lang.String userName) {
792 _layoutSetPrototype.setUserName(userName);
793 }
794
795
800 @Override
801 public void setUserUuid(java.lang.String userUuid) {
802 _layoutSetPrototype.setUserUuid(userUuid);
803 }
804
805
810 @Override
811 public void setUuid(java.lang.String uuid) {
812 _layoutSetPrototype.setUuid(uuid);
813 }
814
815 @Override
816 public com.liferay.portal.model.CacheModel<com.liferay.portal.model.LayoutSetPrototype> toCacheModel() {
817 return _layoutSetPrototype.toCacheModel();
818 }
819
820 @Override
821 public com.liferay.portal.model.LayoutSetPrototype toEscapedModel() {
822 return new LayoutSetPrototypeWrapper(_layoutSetPrototype.toEscapedModel());
823 }
824
825 @Override
826 public java.lang.String toString() {
827 return _layoutSetPrototype.toString();
828 }
829
830 @Override
831 public com.liferay.portal.model.LayoutSetPrototype toUnescapedModel() {
832 return new LayoutSetPrototypeWrapper(_layoutSetPrototype.toUnescapedModel());
833 }
834
835 @Override
836 public java.lang.String toXmlString() {
837 return _layoutSetPrototype.toXmlString();
838 }
839
840 @Override
841 public boolean equals(Object obj) {
842 if (this == obj) {
843 return true;
844 }
845
846 if (!(obj instanceof LayoutSetPrototypeWrapper)) {
847 return false;
848 }
849
850 LayoutSetPrototypeWrapper layoutSetPrototypeWrapper = (LayoutSetPrototypeWrapper)obj;
851
852 if (Validator.equals(_layoutSetPrototype,
853 layoutSetPrototypeWrapper._layoutSetPrototype)) {
854 return true;
855 }
856
857 return false;
858 }
859
860 @Override
861 public StagedModelType getStagedModelType() {
862 return _layoutSetPrototype.getStagedModelType();
863 }
864
865
868 @Deprecated
869 public LayoutSetPrototype getWrappedLayoutSetPrototype() {
870 return _layoutSetPrototype;
871 }
872
873 @Override
874 public LayoutSetPrototype getWrappedModel() {
875 return _layoutSetPrototype;
876 }
877
878 @Override
879 public boolean isEntityCacheEnabled() {
880 return _layoutSetPrototype.isEntityCacheEnabled();
881 }
882
883 @Override
884 public boolean isFinderCacheEnabled() {
885 return _layoutSetPrototype.isFinderCacheEnabled();
886 }
887
888 @Override
889 public void resetOriginalValues() {
890 _layoutSetPrototype.resetOriginalValues();
891 }
892
893 private final LayoutSetPrototype _layoutSetPrototype;
894 }