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 LayoutSetPrototypeWrapper implements LayoutSetPrototype,
038 ModelWrapper<LayoutSetPrototype> {
039 public LayoutSetPrototypeWrapper(LayoutSetPrototype layoutSetPrototype) {
040 _layoutSetPrototype = layoutSetPrototype;
041 }
042
043 @Override
044 public Class<?> getModelClass() {
045 return LayoutSetPrototype.class;
046 }
047
048 @Override
049 public String getModelClassName() {
050 return LayoutSetPrototype.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("layoutSetPrototypeId", getLayoutSetPrototypeId());
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 layoutSetPrototypeId = (Long)attributes.get("layoutSetPrototypeId");
088
089 if (layoutSetPrototypeId != null) {
090 setLayoutSetPrototypeId(layoutSetPrototypeId);
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 LayoutSetPrototypeWrapper((LayoutSetPrototype)_layoutSetPrototype.clone());
151 }
152
153 @Override
154 public int compareTo(
155 com.liferay.portal.model.LayoutSetPrototype layoutSetPrototype) {
156 return _layoutSetPrototype.compareTo(layoutSetPrototype);
157 }
158
159
164 @Override
165 public boolean getActive() {
166 return _layoutSetPrototype.getActive();
167 }
168
169 @Override
170 public java.lang.String[] getAvailableLanguageIds() {
171 return _layoutSetPrototype.getAvailableLanguageIds();
172 }
173
174
179 @Override
180 public long getCompanyId() {
181 return _layoutSetPrototype.getCompanyId();
182 }
183
184
189 @Override
190 public Date getCreateDate() {
191 return _layoutSetPrototype.getCreateDate();
192 }
193
194 @Override
195 public java.lang.String getDefaultLanguageId() {
196 return _layoutSetPrototype.getDefaultLanguageId();
197 }
198
199
204 @Override
205 public java.lang.String getDescription() {
206 return _layoutSetPrototype.getDescription();
207 }
208
209
215 @Override
216 public java.lang.String getDescription(java.lang.String languageId) {
217 return _layoutSetPrototype.getDescription(languageId);
218 }
219
220
227 @Override
228 public java.lang.String getDescription(java.lang.String languageId,
229 boolean useDefault) {
230 return _layoutSetPrototype.getDescription(languageId, useDefault);
231 }
232
233
239 @Override
240 public java.lang.String getDescription(java.util.Locale locale) {
241 return _layoutSetPrototype.getDescription(locale);
242 }
243
244
251 @Override
252 public java.lang.String getDescription(java.util.Locale locale,
253 boolean useDefault) {
254 return _layoutSetPrototype.getDescription(locale, useDefault);
255 }
256
257 @Override
258 public java.lang.String getDescriptionCurrentLanguageId() {
259 return _layoutSetPrototype.getDescriptionCurrentLanguageId();
260 }
261
262 @Override
263 public java.lang.String getDescriptionCurrentValue() {
264 return _layoutSetPrototype.getDescriptionCurrentValue();
265 }
266
267
272 @Override
273 public Map<java.util.Locale, java.lang.String> getDescriptionMap() {
274 return _layoutSetPrototype.getDescriptionMap();
275 }
276
277 @Override
278 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
279 return _layoutSetPrototype.getExpandoBridge();
280 }
281
282 @Override
283 public com.liferay.portal.model.Group getGroup()
284 throws com.liferay.portal.kernel.exception.PortalException {
285 return _layoutSetPrototype.getGroup();
286 }
287
288 @Override
289 public long getGroupId()
290 throws com.liferay.portal.kernel.exception.PortalException {
291 return _layoutSetPrototype.getGroupId();
292 }
293
294 @Override
295 public com.liferay.portal.model.LayoutSet getLayoutSet()
296 throws com.liferay.portal.kernel.exception.PortalException {
297 return _layoutSetPrototype.getLayoutSet();
298 }
299
300
305 @Override
306 public long getLayoutSetPrototypeId() {
307 return _layoutSetPrototype.getLayoutSetPrototypeId();
308 }
309
310
315 @Override
316 public Date getModifiedDate() {
317 return _layoutSetPrototype.getModifiedDate();
318 }
319
320
325 @Override
326 public long getMvccVersion() {
327 return _layoutSetPrototype.getMvccVersion();
328 }
329
330
335 @Override
336 public java.lang.String getName() {
337 return _layoutSetPrototype.getName();
338 }
339
340
346 @Override
347 public java.lang.String getName(java.lang.String languageId) {
348 return _layoutSetPrototype.getName(languageId);
349 }
350
351
358 @Override
359 public java.lang.String getName(java.lang.String languageId,
360 boolean useDefault) {
361 return _layoutSetPrototype.getName(languageId, useDefault);
362 }
363
364
370 @Override
371 public java.lang.String getName(java.util.Locale locale) {
372 return _layoutSetPrototype.getName(locale);
373 }
374
375
382 @Override
383 public java.lang.String getName(java.util.Locale locale, boolean useDefault) {
384 return _layoutSetPrototype.getName(locale, useDefault);
385 }
386
387 @Override
388 public java.lang.String getNameCurrentLanguageId() {
389 return _layoutSetPrototype.getNameCurrentLanguageId();
390 }
391
392 @Override
393 public java.lang.String getNameCurrentValue() {
394 return _layoutSetPrototype.getNameCurrentValue();
395 }
396
397
402 @Override
403 public Map<java.util.Locale, java.lang.String> getNameMap() {
404 return _layoutSetPrototype.getNameMap();
405 }
406
407
412 @Override
413 public long getPrimaryKey() {
414 return _layoutSetPrototype.getPrimaryKey();
415 }
416
417 @Override
418 public java.io.Serializable getPrimaryKeyObj() {
419 return _layoutSetPrototype.getPrimaryKeyObj();
420 }
421
422
427 @Override
428 public java.lang.String getSettings() {
429 return _layoutSetPrototype.getSettings();
430 }
431
432 @Override
433 public com.liferay.portal.kernel.util.UnicodeProperties getSettingsProperties() {
434 return _layoutSetPrototype.getSettingsProperties();
435 }
436
437 @Override
438 public java.lang.String getSettingsProperty(java.lang.String key) {
439 return _layoutSetPrototype.getSettingsProperty(key);
440 }
441
442
447 @Override
448 public long getUserId() {
449 return _layoutSetPrototype.getUserId();
450 }
451
452
457 @Override
458 public java.lang.String getUserName() {
459 return _layoutSetPrototype.getUserName();
460 }
461
462
467 @Override
468 public java.lang.String getUserUuid() {
469 return _layoutSetPrototype.getUserUuid();
470 }
471
472
477 @Override
478 public java.lang.String getUuid() {
479 return _layoutSetPrototype.getUuid();
480 }
481
482 @Override
483 public boolean hasSetModifiedDate() {
484 return _layoutSetPrototype.hasSetModifiedDate();
485 }
486
487 @Override
488 public int hashCode() {
489 return _layoutSetPrototype.hashCode();
490 }
491
492
497 @Override
498 public boolean isActive() {
499 return _layoutSetPrototype.isActive();
500 }
501
502 @Override
503 public boolean isCachedModel() {
504 return _layoutSetPrototype.isCachedModel();
505 }
506
507 @Override
508 public boolean isEscapedModel() {
509 return _layoutSetPrototype.isEscapedModel();
510 }
511
512 @Override
513 public boolean isNew() {
514 return _layoutSetPrototype.isNew();
515 }
516
517 @Override
518 public void persist() {
519 _layoutSetPrototype.persist();
520 }
521
522 @Override
523 public void prepareLocalizedFieldsForImport()
524 throws com.liferay.portal.LocaleException {
525 _layoutSetPrototype.prepareLocalizedFieldsForImport();
526 }
527
528 @Override
529 public void prepareLocalizedFieldsForImport(
530 java.util.Locale defaultImportLocale)
531 throws com.liferay.portal.LocaleException {
532 _layoutSetPrototype.prepareLocalizedFieldsForImport(defaultImportLocale);
533 }
534
535
540 @Override
541 public void setActive(boolean active) {
542 _layoutSetPrototype.setActive(active);
543 }
544
545 @Override
546 public void setCachedModel(boolean cachedModel) {
547 _layoutSetPrototype.setCachedModel(cachedModel);
548 }
549
550
555 @Override
556 public void setCompanyId(long companyId) {
557 _layoutSetPrototype.setCompanyId(companyId);
558 }
559
560
565 @Override
566 public void setCreateDate(Date createDate) {
567 _layoutSetPrototype.setCreateDate(createDate);
568 }
569
570
575 @Override
576 public void setDescription(java.lang.String description) {
577 _layoutSetPrototype.setDescription(description);
578 }
579
580
586 @Override
587 public void setDescription(java.lang.String description,
588 java.util.Locale locale) {
589 _layoutSetPrototype.setDescription(description, locale);
590 }
591
592
599 @Override
600 public void setDescription(java.lang.String description,
601 java.util.Locale locale, java.util.Locale defaultLocale) {
602 _layoutSetPrototype.setDescription(description, locale, defaultLocale);
603 }
604
605 @Override
606 public void setDescriptionCurrentLanguageId(java.lang.String languageId) {
607 _layoutSetPrototype.setDescriptionCurrentLanguageId(languageId);
608 }
609
610
615 @Override
616 public void setDescriptionMap(
617 Map<java.util.Locale, java.lang.String> descriptionMap) {
618 _layoutSetPrototype.setDescriptionMap(descriptionMap);
619 }
620
621
627 @Override
628 public void setDescriptionMap(
629 Map<java.util.Locale, java.lang.String> descriptionMap,
630 java.util.Locale defaultLocale) {
631 _layoutSetPrototype.setDescriptionMap(descriptionMap, defaultLocale);
632 }
633
634 @Override
635 public void setExpandoBridgeAttributes(BaseModel<?> baseModel) {
636 _layoutSetPrototype.setExpandoBridgeAttributes(baseModel);
637 }
638
639 @Override
640 public void setExpandoBridgeAttributes(
641 com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
642 _layoutSetPrototype.setExpandoBridgeAttributes(expandoBridge);
643 }
644
645 @Override
646 public void setExpandoBridgeAttributes(
647 com.liferay.portal.service.ServiceContext serviceContext) {
648 _layoutSetPrototype.setExpandoBridgeAttributes(serviceContext);
649 }
650
651
656 @Override
657 public void setLayoutSetPrototypeId(long layoutSetPrototypeId) {
658 _layoutSetPrototype.setLayoutSetPrototypeId(layoutSetPrototypeId);
659 }
660
661
666 @Override
667 public void setModifiedDate(Date modifiedDate) {
668 _layoutSetPrototype.setModifiedDate(modifiedDate);
669 }
670
671
676 @Override
677 public void setMvccVersion(long mvccVersion) {
678 _layoutSetPrototype.setMvccVersion(mvccVersion);
679 }
680
681
686 @Override
687 public void setName(java.lang.String name) {
688 _layoutSetPrototype.setName(name);
689 }
690
691
697 @Override
698 public void setName(java.lang.String name, java.util.Locale locale) {
699 _layoutSetPrototype.setName(name, locale);
700 }
701
702
709 @Override
710 public void setName(java.lang.String name, java.util.Locale locale,
711 java.util.Locale defaultLocale) {
712 _layoutSetPrototype.setName(name, locale, defaultLocale);
713 }
714
715 @Override
716 public void setNameCurrentLanguageId(java.lang.String languageId) {
717 _layoutSetPrototype.setNameCurrentLanguageId(languageId);
718 }
719
720
725 @Override
726 public void setNameMap(Map<java.util.Locale, java.lang.String> nameMap) {
727 _layoutSetPrototype.setNameMap(nameMap);
728 }
729
730
736 @Override
737 public void setNameMap(Map<java.util.Locale, java.lang.String> nameMap,
738 java.util.Locale defaultLocale) {
739 _layoutSetPrototype.setNameMap(nameMap, defaultLocale);
740 }
741
742 @Override
743 public void setNew(boolean n) {
744 _layoutSetPrototype.setNew(n);
745 }
746
747
752 @Override
753 public void setPrimaryKey(long primaryKey) {
754 _layoutSetPrototype.setPrimaryKey(primaryKey);
755 }
756
757 @Override
758 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
759 _layoutSetPrototype.setPrimaryKeyObj(primaryKeyObj);
760 }
761
762
767 @Override
768 public void setSettings(java.lang.String settings) {
769 _layoutSetPrototype.setSettings(settings);
770 }
771
772 @Override
773 public void setSettingsProperties(
774 com.liferay.portal.kernel.util.UnicodeProperties settingsProperties) {
775 _layoutSetPrototype.setSettingsProperties(settingsProperties);
776 }
777
778
783 @Override
784 public void setUserId(long userId) {
785 _layoutSetPrototype.setUserId(userId);
786 }
787
788
793 @Override
794 public void setUserName(java.lang.String userName) {
795 _layoutSetPrototype.setUserName(userName);
796 }
797
798
803 @Override
804 public void setUserUuid(java.lang.String userUuid) {
805 _layoutSetPrototype.setUserUuid(userUuid);
806 }
807
808
813 @Override
814 public void setUuid(java.lang.String uuid) {
815 _layoutSetPrototype.setUuid(uuid);
816 }
817
818 @Override
819 public CacheModel<com.liferay.portal.model.LayoutSetPrototype> toCacheModel() {
820 return _layoutSetPrototype.toCacheModel();
821 }
822
823 @Override
824 public com.liferay.portal.model.LayoutSetPrototype toEscapedModel() {
825 return new LayoutSetPrototypeWrapper(_layoutSetPrototype.toEscapedModel());
826 }
827
828 @Override
829 public java.lang.String toString() {
830 return _layoutSetPrototype.toString();
831 }
832
833 @Override
834 public com.liferay.portal.model.LayoutSetPrototype toUnescapedModel() {
835 return new LayoutSetPrototypeWrapper(_layoutSetPrototype.toUnescapedModel());
836 }
837
838 @Override
839 public java.lang.String toXmlString() {
840 return _layoutSetPrototype.toXmlString();
841 }
842
843 @Override
844 public boolean equals(Object obj) {
845 if (this == obj) {
846 return true;
847 }
848
849 if (!(obj instanceof LayoutSetPrototypeWrapper)) {
850 return false;
851 }
852
853 LayoutSetPrototypeWrapper layoutSetPrototypeWrapper = (LayoutSetPrototypeWrapper)obj;
854
855 if (Validator.equals(_layoutSetPrototype,
856 layoutSetPrototypeWrapper._layoutSetPrototype)) {
857 return true;
858 }
859
860 return false;
861 }
862
863 @Override
864 public StagedModelType getStagedModelType() {
865 return _layoutSetPrototype.getStagedModelType();
866 }
867
868 @Override
869 public LayoutSetPrototype getWrappedModel() {
870 return _layoutSetPrototype;
871 }
872
873 @Override
874 public boolean isEntityCacheEnabled() {
875 return _layoutSetPrototype.isEntityCacheEnabled();
876 }
877
878 @Override
879 public boolean isFinderCacheEnabled() {
880 return _layoutSetPrototype.isFinderCacheEnabled();
881 }
882
883 @Override
884 public void resetOriginalValues() {
885 _layoutSetPrototype.resetOriginalValues();
886 }
887
888 private final LayoutSetPrototype _layoutSetPrototype;
889 }