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 LayoutPrototypeWrapper implements LayoutPrototype,
037 ModelWrapper<LayoutPrototype> {
038 public LayoutPrototypeWrapper(LayoutPrototype layoutPrototype) {
039 _layoutPrototype = layoutPrototype;
040 }
041
042 @Override
043 public Class<?> getModelClass() {
044 return LayoutPrototype.class;
045 }
046
047 @Override
048 public String getModelClassName() {
049 return LayoutPrototype.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("layoutPrototypeId", getLayoutPrototypeId());
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 layoutPrototypeId = (Long)attributes.get("layoutPrototypeId");
087
088 if (layoutPrototypeId != null) {
089 setLayoutPrototypeId(layoutPrototypeId);
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 LayoutPrototypeWrapper((LayoutPrototype)_layoutPrototype.clone());
150 }
151
152 @Override
153 public int compareTo(
154 com.liferay.portal.model.LayoutPrototype layoutPrototype) {
155 return _layoutPrototype.compareTo(layoutPrototype);
156 }
157
158
163 @Override
164 public boolean getActive() {
165 return _layoutPrototype.getActive();
166 }
167
168 @Override
169 public java.lang.String[] getAvailableLanguageIds() {
170 return _layoutPrototype.getAvailableLanguageIds();
171 }
172
173
178 @Override
179 public long getCompanyId() {
180 return _layoutPrototype.getCompanyId();
181 }
182
183
188 @Override
189 public java.util.Date getCreateDate() {
190 return _layoutPrototype.getCreateDate();
191 }
192
193 @Override
194 public java.lang.String getDefaultLanguageId() {
195 return _layoutPrototype.getDefaultLanguageId();
196 }
197
198
203 @Override
204 public java.lang.String getDescription() {
205 return _layoutPrototype.getDescription();
206 }
207
208
214 @Override
215 public java.lang.String getDescription(java.lang.String languageId) {
216 return _layoutPrototype.getDescription(languageId);
217 }
218
219
226 @Override
227 public java.lang.String getDescription(java.lang.String languageId,
228 boolean useDefault) {
229 return _layoutPrototype.getDescription(languageId, useDefault);
230 }
231
232
238 @Override
239 public java.lang.String getDescription(java.util.Locale locale) {
240 return _layoutPrototype.getDescription(locale);
241 }
242
243
250 @Override
251 public java.lang.String getDescription(java.util.Locale locale,
252 boolean useDefault) {
253 return _layoutPrototype.getDescription(locale, useDefault);
254 }
255
256 @Override
257 public java.lang.String getDescriptionCurrentLanguageId() {
258 return _layoutPrototype.getDescriptionCurrentLanguageId();
259 }
260
261 @Override
262 public java.lang.String getDescriptionCurrentValue() {
263 return _layoutPrototype.getDescriptionCurrentValue();
264 }
265
266
271 @Override
272 public java.util.Map<java.util.Locale, java.lang.String> getDescriptionMap() {
273 return _layoutPrototype.getDescriptionMap();
274 }
275
276 @Override
277 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
278 return _layoutPrototype.getExpandoBridge();
279 }
280
281 @Override
282 public com.liferay.portal.model.Group getGroup()
283 throws com.liferay.portal.kernel.exception.PortalException {
284 return _layoutPrototype.getGroup();
285 }
286
287 @Override
288 public long getGroupId()
289 throws com.liferay.portal.kernel.exception.PortalException {
290 return _layoutPrototype.getGroupId();
291 }
292
293 @Override
294 public com.liferay.portal.model.Layout getLayout()
295 throws com.liferay.portal.kernel.exception.PortalException {
296 return _layoutPrototype.getLayout();
297 }
298
299
304 @Override
305 public long getLayoutPrototypeId() {
306 return _layoutPrototype.getLayoutPrototypeId();
307 }
308
309
314 @Override
315 public java.util.Date getModifiedDate() {
316 return _layoutPrototype.getModifiedDate();
317 }
318
319
324 @Override
325 public long getMvccVersion() {
326 return _layoutPrototype.getMvccVersion();
327 }
328
329
334 @Override
335 public java.lang.String getName() {
336 return _layoutPrototype.getName();
337 }
338
339
345 @Override
346 public java.lang.String getName(java.lang.String languageId) {
347 return _layoutPrototype.getName(languageId);
348 }
349
350
357 @Override
358 public java.lang.String getName(java.lang.String languageId,
359 boolean useDefault) {
360 return _layoutPrototype.getName(languageId, useDefault);
361 }
362
363
369 @Override
370 public java.lang.String getName(java.util.Locale locale) {
371 return _layoutPrototype.getName(locale);
372 }
373
374
381 @Override
382 public java.lang.String getName(java.util.Locale locale, boolean useDefault) {
383 return _layoutPrototype.getName(locale, useDefault);
384 }
385
386 @Override
387 public java.lang.String getNameCurrentLanguageId() {
388 return _layoutPrototype.getNameCurrentLanguageId();
389 }
390
391 @Override
392 public java.lang.String getNameCurrentValue() {
393 return _layoutPrototype.getNameCurrentValue();
394 }
395
396
401 @Override
402 public java.util.Map<java.util.Locale, java.lang.String> getNameMap() {
403 return _layoutPrototype.getNameMap();
404 }
405
406
411 @Override
412 public long getPrimaryKey() {
413 return _layoutPrototype.getPrimaryKey();
414 }
415
416 @Override
417 public java.io.Serializable getPrimaryKeyObj() {
418 return _layoutPrototype.getPrimaryKeyObj();
419 }
420
421
426 @Override
427 public java.lang.String getSettings() {
428 return _layoutPrototype.getSettings();
429 }
430
431
436 @Override
437 public long getUserId() {
438 return _layoutPrototype.getUserId();
439 }
440
441
446 @Override
447 public java.lang.String getUserName() {
448 return _layoutPrototype.getUserName();
449 }
450
451
456 @Override
457 public java.lang.String getUserUuid() {
458 return _layoutPrototype.getUserUuid();
459 }
460
461
466 @Override
467 public java.lang.String getUuid() {
468 return _layoutPrototype.getUuid();
469 }
470
471 @Override
472 public int hashCode() {
473 return _layoutPrototype.hashCode();
474 }
475
476
481 @Override
482 public boolean isActive() {
483 return _layoutPrototype.isActive();
484 }
485
486 @Override
487 public boolean isCachedModel() {
488 return _layoutPrototype.isCachedModel();
489 }
490
491 @Override
492 public boolean isEscapedModel() {
493 return _layoutPrototype.isEscapedModel();
494 }
495
496 @Override
497 public boolean isNew() {
498 return _layoutPrototype.isNew();
499 }
500
501 @Override
502 public void persist() {
503 _layoutPrototype.persist();
504 }
505
506 @Override
507 public void prepareLocalizedFieldsForImport()
508 throws com.liferay.portal.LocaleException {
509 _layoutPrototype.prepareLocalizedFieldsForImport();
510 }
511
512 @Override
513 public void prepareLocalizedFieldsForImport(
514 java.util.Locale defaultImportLocale)
515 throws com.liferay.portal.LocaleException {
516 _layoutPrototype.prepareLocalizedFieldsForImport(defaultImportLocale);
517 }
518
519
524 @Override
525 public void setActive(boolean active) {
526 _layoutPrototype.setActive(active);
527 }
528
529 @Override
530 public void setCachedModel(boolean cachedModel) {
531 _layoutPrototype.setCachedModel(cachedModel);
532 }
533
534
539 @Override
540 public void setCompanyId(long companyId) {
541 _layoutPrototype.setCompanyId(companyId);
542 }
543
544
549 @Override
550 public void setCreateDate(java.util.Date createDate) {
551 _layoutPrototype.setCreateDate(createDate);
552 }
553
554
559 @Override
560 public void setDescription(java.lang.String description) {
561 _layoutPrototype.setDescription(description);
562 }
563
564
570 @Override
571 public void setDescription(java.lang.String description,
572 java.util.Locale locale) {
573 _layoutPrototype.setDescription(description, locale);
574 }
575
576
583 @Override
584 public void setDescription(java.lang.String description,
585 java.util.Locale locale, java.util.Locale defaultLocale) {
586 _layoutPrototype.setDescription(description, locale, defaultLocale);
587 }
588
589 @Override
590 public void setDescriptionCurrentLanguageId(java.lang.String languageId) {
591 _layoutPrototype.setDescriptionCurrentLanguageId(languageId);
592 }
593
594
599 @Override
600 public void setDescriptionMap(
601 java.util.Map<java.util.Locale, java.lang.String> descriptionMap) {
602 _layoutPrototype.setDescriptionMap(descriptionMap);
603 }
604
605
611 @Override
612 public void setDescriptionMap(
613 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
614 java.util.Locale defaultLocale) {
615 _layoutPrototype.setDescriptionMap(descriptionMap, defaultLocale);
616 }
617
618 @Override
619 public void setExpandoBridgeAttributes(
620 com.liferay.portal.model.BaseModel<?> baseModel) {
621 _layoutPrototype.setExpandoBridgeAttributes(baseModel);
622 }
623
624 @Override
625 public void setExpandoBridgeAttributes(
626 com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
627 _layoutPrototype.setExpandoBridgeAttributes(expandoBridge);
628 }
629
630 @Override
631 public void setExpandoBridgeAttributes(
632 com.liferay.portal.service.ServiceContext serviceContext) {
633 _layoutPrototype.setExpandoBridgeAttributes(serviceContext);
634 }
635
636
641 @Override
642 public void setLayoutPrototypeId(long layoutPrototypeId) {
643 _layoutPrototype.setLayoutPrototypeId(layoutPrototypeId);
644 }
645
646
651 @Override
652 public void setModifiedDate(java.util.Date modifiedDate) {
653 _layoutPrototype.setModifiedDate(modifiedDate);
654 }
655
656
661 @Override
662 public void setMvccVersion(long mvccVersion) {
663 _layoutPrototype.setMvccVersion(mvccVersion);
664 }
665
666
671 @Override
672 public void setName(java.lang.String name) {
673 _layoutPrototype.setName(name);
674 }
675
676
682 @Override
683 public void setName(java.lang.String name, java.util.Locale locale) {
684 _layoutPrototype.setName(name, locale);
685 }
686
687
694 @Override
695 public void setName(java.lang.String name, java.util.Locale locale,
696 java.util.Locale defaultLocale) {
697 _layoutPrototype.setName(name, locale, defaultLocale);
698 }
699
700 @Override
701 public void setNameCurrentLanguageId(java.lang.String languageId) {
702 _layoutPrototype.setNameCurrentLanguageId(languageId);
703 }
704
705
710 @Override
711 public void setNameMap(
712 java.util.Map<java.util.Locale, java.lang.String> nameMap) {
713 _layoutPrototype.setNameMap(nameMap);
714 }
715
716
722 @Override
723 public void setNameMap(
724 java.util.Map<java.util.Locale, java.lang.String> nameMap,
725 java.util.Locale defaultLocale) {
726 _layoutPrototype.setNameMap(nameMap, defaultLocale);
727 }
728
729 @Override
730 public void setNew(boolean n) {
731 _layoutPrototype.setNew(n);
732 }
733
734
739 @Override
740 public void setPrimaryKey(long primaryKey) {
741 _layoutPrototype.setPrimaryKey(primaryKey);
742 }
743
744 @Override
745 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
746 _layoutPrototype.setPrimaryKeyObj(primaryKeyObj);
747 }
748
749
754 @Override
755 public void setSettings(java.lang.String settings) {
756 _layoutPrototype.setSettings(settings);
757 }
758
759
764 @Override
765 public void setUserId(long userId) {
766 _layoutPrototype.setUserId(userId);
767 }
768
769
774 @Override
775 public void setUserName(java.lang.String userName) {
776 _layoutPrototype.setUserName(userName);
777 }
778
779
784 @Override
785 public void setUserUuid(java.lang.String userUuid) {
786 _layoutPrototype.setUserUuid(userUuid);
787 }
788
789
794 @Override
795 public void setUuid(java.lang.String uuid) {
796 _layoutPrototype.setUuid(uuid);
797 }
798
799 @Override
800 public com.liferay.portal.model.CacheModel<com.liferay.portal.model.LayoutPrototype> toCacheModel() {
801 return _layoutPrototype.toCacheModel();
802 }
803
804 @Override
805 public com.liferay.portal.model.LayoutPrototype toEscapedModel() {
806 return new LayoutPrototypeWrapper(_layoutPrototype.toEscapedModel());
807 }
808
809 @Override
810 public java.lang.String toString() {
811 return _layoutPrototype.toString();
812 }
813
814 @Override
815 public com.liferay.portal.model.LayoutPrototype toUnescapedModel() {
816 return new LayoutPrototypeWrapper(_layoutPrototype.toUnescapedModel());
817 }
818
819 @Override
820 public java.lang.String toXmlString() {
821 return _layoutPrototype.toXmlString();
822 }
823
824 @Override
825 public boolean equals(Object obj) {
826 if (this == obj) {
827 return true;
828 }
829
830 if (!(obj instanceof LayoutPrototypeWrapper)) {
831 return false;
832 }
833
834 LayoutPrototypeWrapper layoutPrototypeWrapper = (LayoutPrototypeWrapper)obj;
835
836 if (Validator.equals(_layoutPrototype,
837 layoutPrototypeWrapper._layoutPrototype)) {
838 return true;
839 }
840
841 return false;
842 }
843
844 @Override
845 public StagedModelType getStagedModelType() {
846 return _layoutPrototype.getStagedModelType();
847 }
848
849
852 @Deprecated
853 public LayoutPrototype getWrappedLayoutPrototype() {
854 return _layoutPrototype;
855 }
856
857 @Override
858 public LayoutPrototype getWrappedModel() {
859 return _layoutPrototype;
860 }
861
862 @Override
863 public boolean isEntityCacheEnabled() {
864 return _layoutPrototype.isEntityCacheEnabled();
865 }
866
867 @Override
868 public boolean isFinderCacheEnabled() {
869 return _layoutPrototype.isFinderCacheEnabled();
870 }
871
872 @Override
873 public void resetOriginalValues() {
874 _layoutPrototype.resetOriginalValues();
875 }
876
877 private final LayoutPrototype _layoutPrototype;
878 }