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
021 import com.liferay.portlet.exportimport.lar.StagedModelType;
022
023 import java.util.Date;
024 import java.util.HashMap;
025 import java.util.Map;
026
027
036 @ProviderType
037 public class LayoutPrototypeWrapper implements LayoutPrototype,
038 ModelWrapper<LayoutPrototype> {
039 public LayoutPrototypeWrapper(LayoutPrototype layoutPrototype) {
040 _layoutPrototype = layoutPrototype;
041 }
042
043 @Override
044 public Class<?> getModelClass() {
045 return LayoutPrototype.class;
046 }
047
048 @Override
049 public String getModelClassName() {
050 return LayoutPrototype.class.getName();
051 }
052
053 @Override
054 public Map<String, Object> getModelAttributes() {
055 Map<String, Object> attributes = new HashMap<String, Object>();
056
057 attributes.put("mvccVersion", getMvccVersion());
058 attributes.put("uuid", getUuid());
059 attributes.put("layoutPrototypeId", getLayoutPrototypeId());
060 attributes.put("companyId", getCompanyId());
061 attributes.put("userId", getUserId());
062 attributes.put("userName", getUserName());
063 attributes.put("createDate", getCreateDate());
064 attributes.put("modifiedDate", getModifiedDate());
065 attributes.put("name", getName());
066 attributes.put("description", getDescription());
067 attributes.put("settings", getSettings());
068 attributes.put("active", getActive());
069
070 return attributes;
071 }
072
073 @Override
074 public void setModelAttributes(Map<String, Object> attributes) {
075 Long mvccVersion = (Long)attributes.get("mvccVersion");
076
077 if (mvccVersion != null) {
078 setMvccVersion(mvccVersion);
079 }
080
081 String uuid = (String)attributes.get("uuid");
082
083 if (uuid != null) {
084 setUuid(uuid);
085 }
086
087 Long layoutPrototypeId = (Long)attributes.get("layoutPrototypeId");
088
089 if (layoutPrototypeId != null) {
090 setLayoutPrototypeId(layoutPrototypeId);
091 }
092
093 Long companyId = (Long)attributes.get("companyId");
094
095 if (companyId != null) {
096 setCompanyId(companyId);
097 }
098
099 Long userId = (Long)attributes.get("userId");
100
101 if (userId != null) {
102 setUserId(userId);
103 }
104
105 String userName = (String)attributes.get("userName");
106
107 if (userName != null) {
108 setUserName(userName);
109 }
110
111 Date createDate = (Date)attributes.get("createDate");
112
113 if (createDate != null) {
114 setCreateDate(createDate);
115 }
116
117 Date modifiedDate = (Date)attributes.get("modifiedDate");
118
119 if (modifiedDate != null) {
120 setModifiedDate(modifiedDate);
121 }
122
123 String name = (String)attributes.get("name");
124
125 if (name != null) {
126 setName(name);
127 }
128
129 String description = (String)attributes.get("description");
130
131 if (description != null) {
132 setDescription(description);
133 }
134
135 String settings = (String)attributes.get("settings");
136
137 if (settings != null) {
138 setSettings(settings);
139 }
140
141 Boolean active = (Boolean)attributes.get("active");
142
143 if (active != null) {
144 setActive(active);
145 }
146 }
147
148 @Override
149 public java.lang.Object clone() {
150 return new LayoutPrototypeWrapper((LayoutPrototype)_layoutPrototype.clone());
151 }
152
153 @Override
154 public int compareTo(
155 com.liferay.portal.model.LayoutPrototype layoutPrototype) {
156 return _layoutPrototype.compareTo(layoutPrototype);
157 }
158
159
164 @Override
165 public boolean getActive() {
166 return _layoutPrototype.getActive();
167 }
168
169 @Override
170 public java.lang.String[] getAvailableLanguageIds() {
171 return _layoutPrototype.getAvailableLanguageIds();
172 }
173
174
179 @Override
180 public long getCompanyId() {
181 return _layoutPrototype.getCompanyId();
182 }
183
184
189 @Override
190 public Date getCreateDate() {
191 return _layoutPrototype.getCreateDate();
192 }
193
194 @Override
195 public java.lang.String getDefaultLanguageId() {
196 return _layoutPrototype.getDefaultLanguageId();
197 }
198
199
204 @Override
205 public java.lang.String getDescription() {
206 return _layoutPrototype.getDescription();
207 }
208
209
215 @Override
216 public java.lang.String getDescription(java.lang.String languageId) {
217 return _layoutPrototype.getDescription(languageId);
218 }
219
220
227 @Override
228 public java.lang.String getDescription(java.lang.String languageId,
229 boolean useDefault) {
230 return _layoutPrototype.getDescription(languageId, useDefault);
231 }
232
233
239 @Override
240 public java.lang.String getDescription(java.util.Locale locale) {
241 return _layoutPrototype.getDescription(locale);
242 }
243
244
251 @Override
252 public java.lang.String getDescription(java.util.Locale locale,
253 boolean useDefault) {
254 return _layoutPrototype.getDescription(locale, useDefault);
255 }
256
257 @Override
258 public java.lang.String getDescriptionCurrentLanguageId() {
259 return _layoutPrototype.getDescriptionCurrentLanguageId();
260 }
261
262 @Override
263 public java.lang.String getDescriptionCurrentValue() {
264 return _layoutPrototype.getDescriptionCurrentValue();
265 }
266
267
272 @Override
273 public Map<java.util.Locale, java.lang.String> getDescriptionMap() {
274 return _layoutPrototype.getDescriptionMap();
275 }
276
277 @Override
278 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
279 return _layoutPrototype.getExpandoBridge();
280 }
281
282 @Override
283 public com.liferay.portal.model.Group getGroup()
284 throws com.liferay.portal.kernel.exception.PortalException {
285 return _layoutPrototype.getGroup();
286 }
287
288 @Override
289 public long getGroupId()
290 throws com.liferay.portal.kernel.exception.PortalException {
291 return _layoutPrototype.getGroupId();
292 }
293
294 @Override
295 public com.liferay.portal.model.Layout getLayout()
296 throws com.liferay.portal.kernel.exception.PortalException {
297 return _layoutPrototype.getLayout();
298 }
299
300
305 @Override
306 public long getLayoutPrototypeId() {
307 return _layoutPrototype.getLayoutPrototypeId();
308 }
309
310
315 @Override
316 public Date getModifiedDate() {
317 return _layoutPrototype.getModifiedDate();
318 }
319
320
325 @Override
326 public long getMvccVersion() {
327 return _layoutPrototype.getMvccVersion();
328 }
329
330
335 @Override
336 public java.lang.String getName() {
337 return _layoutPrototype.getName();
338 }
339
340
346 @Override
347 public java.lang.String getName(java.lang.String languageId) {
348 return _layoutPrototype.getName(languageId);
349 }
350
351
358 @Override
359 public java.lang.String getName(java.lang.String languageId,
360 boolean useDefault) {
361 return _layoutPrototype.getName(languageId, useDefault);
362 }
363
364
370 @Override
371 public java.lang.String getName(java.util.Locale locale) {
372 return _layoutPrototype.getName(locale);
373 }
374
375
382 @Override
383 public java.lang.String getName(java.util.Locale locale, boolean useDefault) {
384 return _layoutPrototype.getName(locale, useDefault);
385 }
386
387 @Override
388 public java.lang.String getNameCurrentLanguageId() {
389 return _layoutPrototype.getNameCurrentLanguageId();
390 }
391
392 @Override
393 public java.lang.String getNameCurrentValue() {
394 return _layoutPrototype.getNameCurrentValue();
395 }
396
397
402 @Override
403 public Map<java.util.Locale, java.lang.String> getNameMap() {
404 return _layoutPrototype.getNameMap();
405 }
406
407
412 @Override
413 public long getPrimaryKey() {
414 return _layoutPrototype.getPrimaryKey();
415 }
416
417 @Override
418 public java.io.Serializable getPrimaryKeyObj() {
419 return _layoutPrototype.getPrimaryKeyObj();
420 }
421
422
427 @Override
428 public java.lang.String getSettings() {
429 return _layoutPrototype.getSettings();
430 }
431
432
437 @Override
438 public long getUserId() {
439 return _layoutPrototype.getUserId();
440 }
441
442
447 @Override
448 public java.lang.String getUserName() {
449 return _layoutPrototype.getUserName();
450 }
451
452
457 @Override
458 public java.lang.String getUserUuid() {
459 return _layoutPrototype.getUserUuid();
460 }
461
462
467 @Override
468 public java.lang.String getUuid() {
469 return _layoutPrototype.getUuid();
470 }
471
472 @Override
473 public boolean hasSetModifiedDate() {
474 return _layoutPrototype.hasSetModifiedDate();
475 }
476
477 @Override
478 public int hashCode() {
479 return _layoutPrototype.hashCode();
480 }
481
482
487 @Override
488 public boolean isActive() {
489 return _layoutPrototype.isActive();
490 }
491
492 @Override
493 public boolean isCachedModel() {
494 return _layoutPrototype.isCachedModel();
495 }
496
497 @Override
498 public boolean isEscapedModel() {
499 return _layoutPrototype.isEscapedModel();
500 }
501
502 @Override
503 public boolean isNew() {
504 return _layoutPrototype.isNew();
505 }
506
507 @Override
508 public void persist() {
509 _layoutPrototype.persist();
510 }
511
512 @Override
513 public void prepareLocalizedFieldsForImport()
514 throws com.liferay.portal.LocaleException {
515 _layoutPrototype.prepareLocalizedFieldsForImport();
516 }
517
518 @Override
519 public void prepareLocalizedFieldsForImport(
520 java.util.Locale defaultImportLocale)
521 throws com.liferay.portal.LocaleException {
522 _layoutPrototype.prepareLocalizedFieldsForImport(defaultImportLocale);
523 }
524
525
530 @Override
531 public void setActive(boolean active) {
532 _layoutPrototype.setActive(active);
533 }
534
535 @Override
536 public void setCachedModel(boolean cachedModel) {
537 _layoutPrototype.setCachedModel(cachedModel);
538 }
539
540
545 @Override
546 public void setCompanyId(long companyId) {
547 _layoutPrototype.setCompanyId(companyId);
548 }
549
550
555 @Override
556 public void setCreateDate(Date createDate) {
557 _layoutPrototype.setCreateDate(createDate);
558 }
559
560
565 @Override
566 public void setDescription(java.lang.String description) {
567 _layoutPrototype.setDescription(description);
568 }
569
570
576 @Override
577 public void setDescription(java.lang.String description,
578 java.util.Locale locale) {
579 _layoutPrototype.setDescription(description, locale);
580 }
581
582
589 @Override
590 public void setDescription(java.lang.String description,
591 java.util.Locale locale, java.util.Locale defaultLocale) {
592 _layoutPrototype.setDescription(description, locale, defaultLocale);
593 }
594
595 @Override
596 public void setDescriptionCurrentLanguageId(java.lang.String languageId) {
597 _layoutPrototype.setDescriptionCurrentLanguageId(languageId);
598 }
599
600
605 @Override
606 public void setDescriptionMap(
607 Map<java.util.Locale, java.lang.String> descriptionMap) {
608 _layoutPrototype.setDescriptionMap(descriptionMap);
609 }
610
611
617 @Override
618 public void setDescriptionMap(
619 Map<java.util.Locale, java.lang.String> descriptionMap,
620 java.util.Locale defaultLocale) {
621 _layoutPrototype.setDescriptionMap(descriptionMap, defaultLocale);
622 }
623
624 @Override
625 public void setExpandoBridgeAttributes(BaseModel<?> baseModel) {
626 _layoutPrototype.setExpandoBridgeAttributes(baseModel);
627 }
628
629 @Override
630 public void setExpandoBridgeAttributes(
631 com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
632 _layoutPrototype.setExpandoBridgeAttributes(expandoBridge);
633 }
634
635 @Override
636 public void setExpandoBridgeAttributes(
637 com.liferay.portal.service.ServiceContext serviceContext) {
638 _layoutPrototype.setExpandoBridgeAttributes(serviceContext);
639 }
640
641
646 @Override
647 public void setLayoutPrototypeId(long layoutPrototypeId) {
648 _layoutPrototype.setLayoutPrototypeId(layoutPrototypeId);
649 }
650
651
656 @Override
657 public void setModifiedDate(Date modifiedDate) {
658 _layoutPrototype.setModifiedDate(modifiedDate);
659 }
660
661
666 @Override
667 public void setMvccVersion(long mvccVersion) {
668 _layoutPrototype.setMvccVersion(mvccVersion);
669 }
670
671
676 @Override
677 public void setName(java.lang.String name) {
678 _layoutPrototype.setName(name);
679 }
680
681
687 @Override
688 public void setName(java.lang.String name, java.util.Locale locale) {
689 _layoutPrototype.setName(name, locale);
690 }
691
692
699 @Override
700 public void setName(java.lang.String name, java.util.Locale locale,
701 java.util.Locale defaultLocale) {
702 _layoutPrototype.setName(name, locale, defaultLocale);
703 }
704
705 @Override
706 public void setNameCurrentLanguageId(java.lang.String languageId) {
707 _layoutPrototype.setNameCurrentLanguageId(languageId);
708 }
709
710
715 @Override
716 public void setNameMap(Map<java.util.Locale, java.lang.String> nameMap) {
717 _layoutPrototype.setNameMap(nameMap);
718 }
719
720
726 @Override
727 public void setNameMap(Map<java.util.Locale, java.lang.String> nameMap,
728 java.util.Locale defaultLocale) {
729 _layoutPrototype.setNameMap(nameMap, defaultLocale);
730 }
731
732 @Override
733 public void setNew(boolean n) {
734 _layoutPrototype.setNew(n);
735 }
736
737
742 @Override
743 public void setPrimaryKey(long primaryKey) {
744 _layoutPrototype.setPrimaryKey(primaryKey);
745 }
746
747 @Override
748 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
749 _layoutPrototype.setPrimaryKeyObj(primaryKeyObj);
750 }
751
752
757 @Override
758 public void setSettings(java.lang.String settings) {
759 _layoutPrototype.setSettings(settings);
760 }
761
762
767 @Override
768 public void setUserId(long userId) {
769 _layoutPrototype.setUserId(userId);
770 }
771
772
777 @Override
778 public void setUserName(java.lang.String userName) {
779 _layoutPrototype.setUserName(userName);
780 }
781
782
787 @Override
788 public void setUserUuid(java.lang.String userUuid) {
789 _layoutPrototype.setUserUuid(userUuid);
790 }
791
792
797 @Override
798 public void setUuid(java.lang.String uuid) {
799 _layoutPrototype.setUuid(uuid);
800 }
801
802 @Override
803 public CacheModel<com.liferay.portal.model.LayoutPrototype> toCacheModel() {
804 return _layoutPrototype.toCacheModel();
805 }
806
807 @Override
808 public com.liferay.portal.model.LayoutPrototype toEscapedModel() {
809 return new LayoutPrototypeWrapper(_layoutPrototype.toEscapedModel());
810 }
811
812 @Override
813 public java.lang.String toString() {
814 return _layoutPrototype.toString();
815 }
816
817 @Override
818 public com.liferay.portal.model.LayoutPrototype toUnescapedModel() {
819 return new LayoutPrototypeWrapper(_layoutPrototype.toUnescapedModel());
820 }
821
822 @Override
823 public java.lang.String toXmlString() {
824 return _layoutPrototype.toXmlString();
825 }
826
827 @Override
828 public boolean equals(Object obj) {
829 if (this == obj) {
830 return true;
831 }
832
833 if (!(obj instanceof LayoutPrototypeWrapper)) {
834 return false;
835 }
836
837 LayoutPrototypeWrapper layoutPrototypeWrapper = (LayoutPrototypeWrapper)obj;
838
839 if (Validator.equals(_layoutPrototype,
840 layoutPrototypeWrapper._layoutPrototype)) {
841 return true;
842 }
843
844 return false;
845 }
846
847 @Override
848 public StagedModelType getStagedModelType() {
849 return _layoutPrototype.getStagedModelType();
850 }
851
852 @Override
853 public LayoutPrototype getWrappedModel() {
854 return _layoutPrototype;
855 }
856
857 @Override
858 public boolean isEntityCacheEnabled() {
859 return _layoutPrototype.isEntityCacheEnabled();
860 }
861
862 @Override
863 public boolean isFinderCacheEnabled() {
864 return _layoutPrototype.isFinderCacheEnabled();
865 }
866
867 @Override
868 public void resetOriginalValues() {
869 _layoutPrototype.resetOriginalValues();
870 }
871
872 private final LayoutPrototype _layoutPrototype;
873 }