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 LayoutPrototypeWrapper implements LayoutPrototype,
042 ModelWrapper<LayoutPrototype> {
043 public LayoutPrototypeWrapper(LayoutPrototype layoutPrototype) {
044 _layoutPrototype = layoutPrototype;
045 }
046
047 @Override
048 public Class<?> getModelClass() {
049 return LayoutPrototype.class;
050 }
051
052 @Override
053 public String getModelClassName() {
054 return LayoutPrototype.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("layoutPrototypeId", getLayoutPrototypeId());
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 layoutPrototypeId = (Long)attributes.get("layoutPrototypeId");
092
093 if (layoutPrototypeId != null) {
094 setLayoutPrototypeId(layoutPrototypeId);
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 LayoutPrototypeWrapper((LayoutPrototype)_layoutPrototype.clone());
155 }
156
157 @Override
158 public int compareTo(
159 com.liferay.portal.model.LayoutPrototype layoutPrototype) {
160 return _layoutPrototype.compareTo(layoutPrototype);
161 }
162
163
168 @Override
169 public boolean getActive() {
170 return _layoutPrototype.getActive();
171 }
172
173 @Override
174 public java.lang.String[] getAvailableLanguageIds() {
175 return _layoutPrototype.getAvailableLanguageIds();
176 }
177
178
183 @Override
184 public long getCompanyId() {
185 return _layoutPrototype.getCompanyId();
186 }
187
188
193 @Override
194 public Date getCreateDate() {
195 return _layoutPrototype.getCreateDate();
196 }
197
198 @Override
199 public java.lang.String getDefaultLanguageId() {
200 return _layoutPrototype.getDefaultLanguageId();
201 }
202
203
208 @Override
209 public java.lang.String getDescription() {
210 return _layoutPrototype.getDescription();
211 }
212
213
219 @Override
220 public java.lang.String getDescription(java.lang.String languageId) {
221 return _layoutPrototype.getDescription(languageId);
222 }
223
224
231 @Override
232 public java.lang.String getDescription(java.lang.String languageId,
233 boolean useDefault) {
234 return _layoutPrototype.getDescription(languageId, useDefault);
235 }
236
237
243 @Override
244 public java.lang.String getDescription(java.util.Locale locale) {
245 return _layoutPrototype.getDescription(locale);
246 }
247
248
255 @Override
256 public java.lang.String getDescription(java.util.Locale locale,
257 boolean useDefault) {
258 return _layoutPrototype.getDescription(locale, useDefault);
259 }
260
261 @Override
262 public java.lang.String getDescriptionCurrentLanguageId() {
263 return _layoutPrototype.getDescriptionCurrentLanguageId();
264 }
265
266 @Override
267 public java.lang.String getDescriptionCurrentValue() {
268 return _layoutPrototype.getDescriptionCurrentValue();
269 }
270
271
276 @Override
277 public Map<java.util.Locale, java.lang.String> getDescriptionMap() {
278 return _layoutPrototype.getDescriptionMap();
279 }
280
281 @Override
282 public ExpandoBridge getExpandoBridge() {
283 return _layoutPrototype.getExpandoBridge();
284 }
285
286 @Override
287 public com.liferay.portal.model.Group getGroup()
288 throws com.liferay.portal.kernel.exception.PortalException {
289 return _layoutPrototype.getGroup();
290 }
291
292 @Override
293 public long getGroupId()
294 throws com.liferay.portal.kernel.exception.PortalException {
295 return _layoutPrototype.getGroupId();
296 }
297
298 @Override
299 public com.liferay.portal.model.Layout getLayout()
300 throws com.liferay.portal.kernel.exception.PortalException {
301 return _layoutPrototype.getLayout();
302 }
303
304
309 @Override
310 public long getLayoutPrototypeId() {
311 return _layoutPrototype.getLayoutPrototypeId();
312 }
313
314
319 @Override
320 public Date getModifiedDate() {
321 return _layoutPrototype.getModifiedDate();
322 }
323
324
329 @Override
330 public long getMvccVersion() {
331 return _layoutPrototype.getMvccVersion();
332 }
333
334
339 @Override
340 public java.lang.String getName() {
341 return _layoutPrototype.getName();
342 }
343
344
350 @Override
351 public java.lang.String getName(java.lang.String languageId) {
352 return _layoutPrototype.getName(languageId);
353 }
354
355
362 @Override
363 public java.lang.String getName(java.lang.String languageId,
364 boolean useDefault) {
365 return _layoutPrototype.getName(languageId, useDefault);
366 }
367
368
374 @Override
375 public java.lang.String getName(java.util.Locale locale) {
376 return _layoutPrototype.getName(locale);
377 }
378
379
386 @Override
387 public java.lang.String getName(java.util.Locale locale, boolean useDefault) {
388 return _layoutPrototype.getName(locale, useDefault);
389 }
390
391 @Override
392 public java.lang.String getNameCurrentLanguageId() {
393 return _layoutPrototype.getNameCurrentLanguageId();
394 }
395
396 @Override
397 public java.lang.String getNameCurrentValue() {
398 return _layoutPrototype.getNameCurrentValue();
399 }
400
401
406 @Override
407 public Map<java.util.Locale, java.lang.String> getNameMap() {
408 return _layoutPrototype.getNameMap();
409 }
410
411
416 @Override
417 public long getPrimaryKey() {
418 return _layoutPrototype.getPrimaryKey();
419 }
420
421 @Override
422 public Serializable getPrimaryKeyObj() {
423 return _layoutPrototype.getPrimaryKeyObj();
424 }
425
426
431 @Override
432 public java.lang.String getSettings() {
433 return _layoutPrototype.getSettings();
434 }
435
436
441 @Override
442 public long getUserId() {
443 return _layoutPrototype.getUserId();
444 }
445
446
451 @Override
452 public java.lang.String getUserName() {
453 return _layoutPrototype.getUserName();
454 }
455
456
461 @Override
462 public java.lang.String getUserUuid() {
463 return _layoutPrototype.getUserUuid();
464 }
465
466
471 @Override
472 public java.lang.String getUuid() {
473 return _layoutPrototype.getUuid();
474 }
475
476 @Override
477 public boolean hasSetModifiedDate() {
478 return _layoutPrototype.hasSetModifiedDate();
479 }
480
481 @Override
482 public int hashCode() {
483 return _layoutPrototype.hashCode();
484 }
485
486
491 @Override
492 public boolean isActive() {
493 return _layoutPrototype.isActive();
494 }
495
496 @Override
497 public boolean isCachedModel() {
498 return _layoutPrototype.isCachedModel();
499 }
500
501 @Override
502 public boolean isEscapedModel() {
503 return _layoutPrototype.isEscapedModel();
504 }
505
506 @Override
507 public boolean isNew() {
508 return _layoutPrototype.isNew();
509 }
510
511 @Override
512 public void persist() {
513 _layoutPrototype.persist();
514 }
515
516 @Override
517 public void prepareLocalizedFieldsForImport()
518 throws com.liferay.portal.LocaleException {
519 _layoutPrototype.prepareLocalizedFieldsForImport();
520 }
521
522 @Override
523 public void prepareLocalizedFieldsForImport(
524 java.util.Locale defaultImportLocale)
525 throws com.liferay.portal.LocaleException {
526 _layoutPrototype.prepareLocalizedFieldsForImport(defaultImportLocale);
527 }
528
529
534 @Override
535 public void setActive(boolean active) {
536 _layoutPrototype.setActive(active);
537 }
538
539 @Override
540 public void setCachedModel(boolean cachedModel) {
541 _layoutPrototype.setCachedModel(cachedModel);
542 }
543
544
549 @Override
550 public void setCompanyId(long companyId) {
551 _layoutPrototype.setCompanyId(companyId);
552 }
553
554
559 @Override
560 public void setCreateDate(Date createDate) {
561 _layoutPrototype.setCreateDate(createDate);
562 }
563
564
569 @Override
570 public void setDescription(java.lang.String description) {
571 _layoutPrototype.setDescription(description);
572 }
573
574
580 @Override
581 public void setDescription(java.lang.String description,
582 java.util.Locale locale) {
583 _layoutPrototype.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 _layoutPrototype.setDescription(description, locale, defaultLocale);
597 }
598
599 @Override
600 public void setDescriptionCurrentLanguageId(java.lang.String languageId) {
601 _layoutPrototype.setDescriptionCurrentLanguageId(languageId);
602 }
603
604
609 @Override
610 public void setDescriptionMap(
611 Map<java.util.Locale, java.lang.String> descriptionMap) {
612 _layoutPrototype.setDescriptionMap(descriptionMap);
613 }
614
615
621 @Override
622 public void setDescriptionMap(
623 Map<java.util.Locale, java.lang.String> descriptionMap,
624 java.util.Locale defaultLocale) {
625 _layoutPrototype.setDescriptionMap(descriptionMap, defaultLocale);
626 }
627
628 @Override
629 public void setExpandoBridgeAttributes(BaseModel<?> baseModel) {
630 _layoutPrototype.setExpandoBridgeAttributes(baseModel);
631 }
632
633 @Override
634 public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge) {
635 _layoutPrototype.setExpandoBridgeAttributes(expandoBridge);
636 }
637
638 @Override
639 public void setExpandoBridgeAttributes(ServiceContext serviceContext) {
640 _layoutPrototype.setExpandoBridgeAttributes(serviceContext);
641 }
642
643
648 @Override
649 public void setLayoutPrototypeId(long layoutPrototypeId) {
650 _layoutPrototype.setLayoutPrototypeId(layoutPrototypeId);
651 }
652
653
658 @Override
659 public void setModifiedDate(Date modifiedDate) {
660 _layoutPrototype.setModifiedDate(modifiedDate);
661 }
662
663
668 @Override
669 public void setMvccVersion(long mvccVersion) {
670 _layoutPrototype.setMvccVersion(mvccVersion);
671 }
672
673
678 @Override
679 public void setName(java.lang.String name) {
680 _layoutPrototype.setName(name);
681 }
682
683
689 @Override
690 public void setName(java.lang.String name, java.util.Locale locale) {
691 _layoutPrototype.setName(name, locale);
692 }
693
694
701 @Override
702 public void setName(java.lang.String name, java.util.Locale locale,
703 java.util.Locale defaultLocale) {
704 _layoutPrototype.setName(name, locale, defaultLocale);
705 }
706
707 @Override
708 public void setNameCurrentLanguageId(java.lang.String languageId) {
709 _layoutPrototype.setNameCurrentLanguageId(languageId);
710 }
711
712
717 @Override
718 public void setNameMap(Map<java.util.Locale, java.lang.String> nameMap) {
719 _layoutPrototype.setNameMap(nameMap);
720 }
721
722
728 @Override
729 public void setNameMap(Map<java.util.Locale, java.lang.String> nameMap,
730 java.util.Locale defaultLocale) {
731 _layoutPrototype.setNameMap(nameMap, defaultLocale);
732 }
733
734 @Override
735 public void setNew(boolean n) {
736 _layoutPrototype.setNew(n);
737 }
738
739
744 @Override
745 public void setPrimaryKey(long primaryKey) {
746 _layoutPrototype.setPrimaryKey(primaryKey);
747 }
748
749 @Override
750 public void setPrimaryKeyObj(Serializable primaryKeyObj) {
751 _layoutPrototype.setPrimaryKeyObj(primaryKeyObj);
752 }
753
754
759 @Override
760 public void setSettings(java.lang.String settings) {
761 _layoutPrototype.setSettings(settings);
762 }
763
764
769 @Override
770 public void setUserId(long userId) {
771 _layoutPrototype.setUserId(userId);
772 }
773
774
779 @Override
780 public void setUserName(java.lang.String userName) {
781 _layoutPrototype.setUserName(userName);
782 }
783
784
789 @Override
790 public void setUserUuid(java.lang.String userUuid) {
791 _layoutPrototype.setUserUuid(userUuid);
792 }
793
794
799 @Override
800 public void setUuid(java.lang.String uuid) {
801 _layoutPrototype.setUuid(uuid);
802 }
803
804 @Override
805 public CacheModel<com.liferay.portal.model.LayoutPrototype> toCacheModel() {
806 return _layoutPrototype.toCacheModel();
807 }
808
809 @Override
810 public com.liferay.portal.model.LayoutPrototype toEscapedModel() {
811 return new LayoutPrototypeWrapper(_layoutPrototype.toEscapedModel());
812 }
813
814 @Override
815 public java.lang.String toString() {
816 return _layoutPrototype.toString();
817 }
818
819 @Override
820 public com.liferay.portal.model.LayoutPrototype toUnescapedModel() {
821 return new LayoutPrototypeWrapper(_layoutPrototype.toUnescapedModel());
822 }
823
824 @Override
825 public java.lang.String toXmlString() {
826 return _layoutPrototype.toXmlString();
827 }
828
829 @Override
830 public boolean equals(Object obj) {
831 if (this == obj) {
832 return true;
833 }
834
835 if (!(obj instanceof LayoutPrototypeWrapper)) {
836 return false;
837 }
838
839 LayoutPrototypeWrapper layoutPrototypeWrapper = (LayoutPrototypeWrapper)obj;
840
841 if (Validator.equals(_layoutPrototype,
842 layoutPrototypeWrapper._layoutPrototype)) {
843 return true;
844 }
845
846 return false;
847 }
848
849 @Override
850 public StagedModelType getStagedModelType() {
851 return _layoutPrototype.getStagedModelType();
852 }
853
854 @Override
855 public LayoutPrototype getWrappedModel() {
856 return _layoutPrototype;
857 }
858
859 @Override
860 public boolean isEntityCacheEnabled() {
861 return _layoutPrototype.isEntityCacheEnabled();
862 }
863
864 @Override
865 public boolean isFinderCacheEnabled() {
866 return _layoutPrototype.isFinderCacheEnabled();
867 }
868
869 @Override
870 public void resetOriginalValues() {
871 _layoutPrototype.resetOriginalValues();
872 }
873
874 private final LayoutPrototype _layoutPrototype;
875 }