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.exportimport.kernel.lar.StagedModelType;
022
023 import com.liferay.portal.kernel.service.ServiceContext;
024
025 import java.io.Serializable;
026
027 import java.util.Date;
028 import java.util.HashMap;
029 import java.util.Map;
030 import java.util.Objects;
031
032
041 @ProviderType
042 public class LayoutSetPrototypeWrapper implements LayoutSetPrototype,
043 ModelWrapper<LayoutSetPrototype> {
044 public LayoutSetPrototypeWrapper(LayoutSetPrototype layoutSetPrototype) {
045 _layoutSetPrototype = layoutSetPrototype;
046 }
047
048 @Override
049 public Class<?> getModelClass() {
050 return LayoutSetPrototype.class;
051 }
052
053 @Override
054 public String getModelClassName() {
055 return LayoutSetPrototype.class.getName();
056 }
057
058 @Override
059 public Map<String, Object> getModelAttributes() {
060 Map<String, Object> attributes = new HashMap<String, Object>();
061
062 attributes.put("mvccVersion", getMvccVersion());
063 attributes.put("uuid", getUuid());
064 attributes.put("layoutSetPrototypeId", getLayoutSetPrototypeId());
065 attributes.put("companyId", getCompanyId());
066 attributes.put("userId", getUserId());
067 attributes.put("userName", getUserName());
068 attributes.put("createDate", getCreateDate());
069 attributes.put("modifiedDate", getModifiedDate());
070 attributes.put("name", getName());
071 attributes.put("description", getDescription());
072 attributes.put("settings", getSettings());
073 attributes.put("active", getActive());
074
075 return attributes;
076 }
077
078 @Override
079 public void setModelAttributes(Map<String, Object> attributes) {
080 Long mvccVersion = (Long)attributes.get("mvccVersion");
081
082 if (mvccVersion != null) {
083 setMvccVersion(mvccVersion);
084 }
085
086 String uuid = (String)attributes.get("uuid");
087
088 if (uuid != null) {
089 setUuid(uuid);
090 }
091
092 Long layoutSetPrototypeId = (Long)attributes.get("layoutSetPrototypeId");
093
094 if (layoutSetPrototypeId != null) {
095 setLayoutSetPrototypeId(layoutSetPrototypeId);
096 }
097
098 Long companyId = (Long)attributes.get("companyId");
099
100 if (companyId != null) {
101 setCompanyId(companyId);
102 }
103
104 Long userId = (Long)attributes.get("userId");
105
106 if (userId != null) {
107 setUserId(userId);
108 }
109
110 String userName = (String)attributes.get("userName");
111
112 if (userName != null) {
113 setUserName(userName);
114 }
115
116 Date createDate = (Date)attributes.get("createDate");
117
118 if (createDate != null) {
119 setCreateDate(createDate);
120 }
121
122 Date modifiedDate = (Date)attributes.get("modifiedDate");
123
124 if (modifiedDate != null) {
125 setModifiedDate(modifiedDate);
126 }
127
128 String name = (String)attributes.get("name");
129
130 if (name != null) {
131 setName(name);
132 }
133
134 String description = (String)attributes.get("description");
135
136 if (description != null) {
137 setDescription(description);
138 }
139
140 String settings = (String)attributes.get("settings");
141
142 if (settings != null) {
143 setSettings(settings);
144 }
145
146 Boolean active = (Boolean)attributes.get("active");
147
148 if (active != null) {
149 setActive(active);
150 }
151 }
152
153 @Override
154 public CacheModel<LayoutSetPrototype> toCacheModel() {
155 return _layoutSetPrototype.toCacheModel();
156 }
157
158 @Override
159 public Group getGroup()
160 throws com.liferay.portal.kernel.exception.PortalException {
161 return _layoutSetPrototype.getGroup();
162 }
163
164 @Override
165 public LayoutSet getLayoutSet()
166 throws com.liferay.portal.kernel.exception.PortalException {
167 return _layoutSetPrototype.getLayoutSet();
168 }
169
170 @Override
171 public LayoutSetPrototype toEscapedModel() {
172 return new LayoutSetPrototypeWrapper(_layoutSetPrototype.toEscapedModel());
173 }
174
175 @Override
176 public LayoutSetPrototype toUnescapedModel() {
177 return new LayoutSetPrototypeWrapper(_layoutSetPrototype.toUnescapedModel());
178 }
179
180
185 @Override
186 public boolean getActive() {
187 return _layoutSetPrototype.getActive();
188 }
189
190 @Override
191 public boolean hasSetModifiedDate() {
192 return _layoutSetPrototype.hasSetModifiedDate();
193 }
194
195
200 @Override
201 public boolean isActive() {
202 return _layoutSetPrototype.isActive();
203 }
204
205 @Override
206 public boolean isCachedModel() {
207 return _layoutSetPrototype.isCachedModel();
208 }
209
210 @Override
211 public boolean isEscapedModel() {
212 return _layoutSetPrototype.isEscapedModel();
213 }
214
215 @Override
216 public boolean isNew() {
217 return _layoutSetPrototype.isNew();
218 }
219
220 @Override
221 public ExpandoBridge getExpandoBridge() {
222 return _layoutSetPrototype.getExpandoBridge();
223 }
224
225 @Override
226 public com.liferay.portal.kernel.util.UnicodeProperties getSettingsProperties() {
227 return _layoutSetPrototype.getSettingsProperties();
228 }
229
230 @Override
231 public int compareTo(LayoutSetPrototype layoutSetPrototype) {
232 return _layoutSetPrototype.compareTo(layoutSetPrototype);
233 }
234
235 @Override
236 public int hashCode() {
237 return _layoutSetPrototype.hashCode();
238 }
239
240 @Override
241 public Serializable getPrimaryKeyObj() {
242 return _layoutSetPrototype.getPrimaryKeyObj();
243 }
244
245 @Override
246 public java.lang.Object clone() {
247 return new LayoutSetPrototypeWrapper((LayoutSetPrototype)_layoutSetPrototype.clone());
248 }
249
250 @Override
251 public java.lang.String getDefaultLanguageId() {
252 return _layoutSetPrototype.getDefaultLanguageId();
253 }
254
255
260 @Override
261 public java.lang.String getDescription() {
262 return _layoutSetPrototype.getDescription();
263 }
264
265
271 @Override
272 public java.lang.String getDescription(java.lang.String languageId) {
273 return _layoutSetPrototype.getDescription(languageId);
274 }
275
276
283 @Override
284 public java.lang.String getDescription(java.lang.String languageId,
285 boolean useDefault) {
286 return _layoutSetPrototype.getDescription(languageId, useDefault);
287 }
288
289
295 @Override
296 public java.lang.String getDescription(java.util.Locale locale) {
297 return _layoutSetPrototype.getDescription(locale);
298 }
299
300
307 @Override
308 public java.lang.String getDescription(java.util.Locale locale,
309 boolean useDefault) {
310 return _layoutSetPrototype.getDescription(locale, useDefault);
311 }
312
313 @Override
314 public java.lang.String getDescriptionCurrentLanguageId() {
315 return _layoutSetPrototype.getDescriptionCurrentLanguageId();
316 }
317
318 @Override
319 public java.lang.String getDescriptionCurrentValue() {
320 return _layoutSetPrototype.getDescriptionCurrentValue();
321 }
322
323
328 @Override
329 public java.lang.String getName() {
330 return _layoutSetPrototype.getName();
331 }
332
333
339 @Override
340 public java.lang.String getName(java.lang.String languageId) {
341 return _layoutSetPrototype.getName(languageId);
342 }
343
344
351 @Override
352 public java.lang.String getName(java.lang.String languageId,
353 boolean useDefault) {
354 return _layoutSetPrototype.getName(languageId, useDefault);
355 }
356
357
363 @Override
364 public java.lang.String getName(java.util.Locale locale) {
365 return _layoutSetPrototype.getName(locale);
366 }
367
368
375 @Override
376 public java.lang.String getName(java.util.Locale locale, boolean useDefault) {
377 return _layoutSetPrototype.getName(locale, useDefault);
378 }
379
380 @Override
381 public java.lang.String getNameCurrentLanguageId() {
382 return _layoutSetPrototype.getNameCurrentLanguageId();
383 }
384
385 @Override
386 public java.lang.String getNameCurrentValue() {
387 return _layoutSetPrototype.getNameCurrentValue();
388 }
389
390
395 @Override
396 public java.lang.String getSettings() {
397 return _layoutSetPrototype.getSettings();
398 }
399
400 @Override
401 public java.lang.String getSettingsProperty(java.lang.String key) {
402 return _layoutSetPrototype.getSettingsProperty(key);
403 }
404
405
410 @Override
411 public java.lang.String getUserName() {
412 return _layoutSetPrototype.getUserName();
413 }
414
415
420 @Override
421 public java.lang.String getUserUuid() {
422 return _layoutSetPrototype.getUserUuid();
423 }
424
425
430 @Override
431 public java.lang.String getUuid() {
432 return _layoutSetPrototype.getUuid();
433 }
434
435 @Override
436 public java.lang.String toString() {
437 return _layoutSetPrototype.toString();
438 }
439
440 @Override
441 public java.lang.String toXmlString() {
442 return _layoutSetPrototype.toXmlString();
443 }
444
445 @Override
446 public java.lang.String[] getAvailableLanguageIds() {
447 return _layoutSetPrototype.getAvailableLanguageIds();
448 }
449
450
455 @Override
456 public Date getCreateDate() {
457 return _layoutSetPrototype.getCreateDate();
458 }
459
460
465 @Override
466 public Date getModifiedDate() {
467 return _layoutSetPrototype.getModifiedDate();
468 }
469
470
475 @Override
476 public Map<java.util.Locale, java.lang.String> getDescriptionMap() {
477 return _layoutSetPrototype.getDescriptionMap();
478 }
479
480
485 @Override
486 public Map<java.util.Locale, java.lang.String> getNameMap() {
487 return _layoutSetPrototype.getNameMap();
488 }
489
490
495 @Override
496 public long getCompanyId() {
497 return _layoutSetPrototype.getCompanyId();
498 }
499
500 @Override
501 public long getGroupId()
502 throws com.liferay.portal.kernel.exception.PortalException {
503 return _layoutSetPrototype.getGroupId();
504 }
505
506
511 @Override
512 public long getLayoutSetPrototypeId() {
513 return _layoutSetPrototype.getLayoutSetPrototypeId();
514 }
515
516
521 @Override
522 public long getMvccVersion() {
523 return _layoutSetPrototype.getMvccVersion();
524 }
525
526
531 @Override
532 public long getPrimaryKey() {
533 return _layoutSetPrototype.getPrimaryKey();
534 }
535
536
541 @Override
542 public long getUserId() {
543 return _layoutSetPrototype.getUserId();
544 }
545
546 @Override
547 public void persist() {
548 _layoutSetPrototype.persist();
549 }
550
551 @Override
552 public void prepareLocalizedFieldsForImport()
553 throws com.liferay.portal.kernel.exception.LocaleException {
554 _layoutSetPrototype.prepareLocalizedFieldsForImport();
555 }
556
557 @Override
558 public void prepareLocalizedFieldsForImport(
559 java.util.Locale defaultImportLocale)
560 throws com.liferay.portal.kernel.exception.LocaleException {
561 _layoutSetPrototype.prepareLocalizedFieldsForImport(defaultImportLocale);
562 }
563
564
569 @Override
570 public void setActive(boolean active) {
571 _layoutSetPrototype.setActive(active);
572 }
573
574 @Override
575 public void setCachedModel(boolean cachedModel) {
576 _layoutSetPrototype.setCachedModel(cachedModel);
577 }
578
579
584 @Override
585 public void setCompanyId(long companyId) {
586 _layoutSetPrototype.setCompanyId(companyId);
587 }
588
589
594 @Override
595 public void setCreateDate(Date createDate) {
596 _layoutSetPrototype.setCreateDate(createDate);
597 }
598
599
604 @Override
605 public void setDescription(java.lang.String description) {
606 _layoutSetPrototype.setDescription(description);
607 }
608
609
615 @Override
616 public void setDescription(java.lang.String description,
617 java.util.Locale locale) {
618 _layoutSetPrototype.setDescription(description, locale);
619 }
620
621
628 @Override
629 public void setDescription(java.lang.String description,
630 java.util.Locale locale, java.util.Locale defaultLocale) {
631 _layoutSetPrototype.setDescription(description, locale, defaultLocale);
632 }
633
634 @Override
635 public void setDescriptionCurrentLanguageId(java.lang.String languageId) {
636 _layoutSetPrototype.setDescriptionCurrentLanguageId(languageId);
637 }
638
639
644 @Override
645 public void setDescriptionMap(
646 Map<java.util.Locale, java.lang.String> descriptionMap) {
647 _layoutSetPrototype.setDescriptionMap(descriptionMap);
648 }
649
650
656 @Override
657 public void setDescriptionMap(
658 Map<java.util.Locale, java.lang.String> descriptionMap,
659 java.util.Locale defaultLocale) {
660 _layoutSetPrototype.setDescriptionMap(descriptionMap, defaultLocale);
661 }
662
663 @Override
664 public void setExpandoBridgeAttributes(BaseModel<?> baseModel) {
665 _layoutSetPrototype.setExpandoBridgeAttributes(baseModel);
666 }
667
668 @Override
669 public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge) {
670 _layoutSetPrototype.setExpandoBridgeAttributes(expandoBridge);
671 }
672
673 @Override
674 public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
675 _layoutSetPrototype.setExpandoBridgeAttributes(serviceContext);
676 }
677
678
683 @Override
684 public void setLayoutSetPrototypeId(long layoutSetPrototypeId) {
685 _layoutSetPrototype.setLayoutSetPrototypeId(layoutSetPrototypeId);
686 }
687
688
693 @Override
694 public void setModifiedDate(Date modifiedDate) {
695 _layoutSetPrototype.setModifiedDate(modifiedDate);
696 }
697
698
703 @Override
704 public void setMvccVersion(long mvccVersion) {
705 _layoutSetPrototype.setMvccVersion(mvccVersion);
706 }
707
708
713 @Override
714 public void setName(java.lang.String name) {
715 _layoutSetPrototype.setName(name);
716 }
717
718
724 @Override
725 public void setName(java.lang.String name, java.util.Locale locale) {
726 _layoutSetPrototype.setName(name, locale);
727 }
728
729
736 @Override
737 public void setName(java.lang.String name, java.util.Locale locale,
738 java.util.Locale defaultLocale) {
739 _layoutSetPrototype.setName(name, locale, defaultLocale);
740 }
741
742 @Override
743 public void setNameCurrentLanguageId(java.lang.String languageId) {
744 _layoutSetPrototype.setNameCurrentLanguageId(languageId);
745 }
746
747
752 @Override
753 public void setNameMap(Map<java.util.Locale, java.lang.String> nameMap) {
754 _layoutSetPrototype.setNameMap(nameMap);
755 }
756
757
763 @Override
764 public void setNameMap(Map<java.util.Locale, java.lang.String> nameMap,
765 java.util.Locale defaultLocale) {
766 _layoutSetPrototype.setNameMap(nameMap, defaultLocale);
767 }
768
769 @Override
770 public void setNew(boolean n) {
771 _layoutSetPrototype.setNew(n);
772 }
773
774
779 @Override
780 public void setPrimaryKey(long primaryKey) {
781 _layoutSetPrototype.setPrimaryKey(primaryKey);
782 }
783
784 @Override
785 public void setPrimaryKeyObj(Serializable primaryKeyObj) {
786 _layoutSetPrototype.setPrimaryKeyObj(primaryKeyObj);
787 }
788
789
794 @Override
795 public void setSettings(java.lang.String settings) {
796 _layoutSetPrototype.setSettings(settings);
797 }
798
799 @Override
800 public void setSettingsProperties(
801 com.liferay.portal.kernel.util.UnicodeProperties settingsProperties) {
802 _layoutSetPrototype.setSettingsProperties(settingsProperties);
803 }
804
805
810 @Override
811 public void setUserId(long userId) {
812 _layoutSetPrototype.setUserId(userId);
813 }
814
815
820 @Override
821 public void setUserName(java.lang.String userName) {
822 _layoutSetPrototype.setUserName(userName);
823 }
824
825
830 @Override
831 public void setUserUuid(java.lang.String userUuid) {
832 _layoutSetPrototype.setUserUuid(userUuid);
833 }
834
835
840 @Override
841 public void setUuid(java.lang.String uuid) {
842 _layoutSetPrototype.setUuid(uuid);
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 (Objects.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 }