001
014
015 package com.liferay.portal.model;
016
017 import java.util.Date;
018 import java.util.HashMap;
019 import java.util.Map;
020
021
030 public class LayoutSetPrototypeWrapper implements LayoutSetPrototype,
031 ModelWrapper<LayoutSetPrototype> {
032 public LayoutSetPrototypeWrapper(LayoutSetPrototype layoutSetPrototype) {
033 _layoutSetPrototype = layoutSetPrototype;
034 }
035
036 public Class<?> getModelClass() {
037 return LayoutSetPrototype.class;
038 }
039
040 public String getModelClassName() {
041 return LayoutSetPrototype.class.getName();
042 }
043
044 public Map<String, Object> getModelAttributes() {
045 Map<String, Object> attributes = new HashMap<String, Object>();
046
047 attributes.put("uuid", getUuid());
048 attributes.put("layoutSetPrototypeId", getLayoutSetPrototypeId());
049 attributes.put("companyId", getCompanyId());
050 attributes.put("userId", getUserId());
051 attributes.put("userName", getUserName());
052 attributes.put("createDate", getCreateDate());
053 attributes.put("modifiedDate", getModifiedDate());
054 attributes.put("name", getName());
055 attributes.put("description", getDescription());
056 attributes.put("settings", getSettings());
057 attributes.put("active", getActive());
058
059 return attributes;
060 }
061
062 public void setModelAttributes(Map<String, Object> attributes) {
063 String uuid = (String)attributes.get("uuid");
064
065 if (uuid != null) {
066 setUuid(uuid);
067 }
068
069 Long layoutSetPrototypeId = (Long)attributes.get("layoutSetPrototypeId");
070
071 if (layoutSetPrototypeId != null) {
072 setLayoutSetPrototypeId(layoutSetPrototypeId);
073 }
074
075 Long companyId = (Long)attributes.get("companyId");
076
077 if (companyId != null) {
078 setCompanyId(companyId);
079 }
080
081 Long userId = (Long)attributes.get("userId");
082
083 if (userId != null) {
084 setUserId(userId);
085 }
086
087 String userName = (String)attributes.get("userName");
088
089 if (userName != null) {
090 setUserName(userName);
091 }
092
093 Date createDate = (Date)attributes.get("createDate");
094
095 if (createDate != null) {
096 setCreateDate(createDate);
097 }
098
099 Date modifiedDate = (Date)attributes.get("modifiedDate");
100
101 if (modifiedDate != null) {
102 setModifiedDate(modifiedDate);
103 }
104
105 String name = (String)attributes.get("name");
106
107 if (name != null) {
108 setName(name);
109 }
110
111 String description = (String)attributes.get("description");
112
113 if (description != null) {
114 setDescription(description);
115 }
116
117 String settings = (String)attributes.get("settings");
118
119 if (settings != null) {
120 setSettings(settings);
121 }
122
123 Boolean active = (Boolean)attributes.get("active");
124
125 if (active != null) {
126 setActive(active);
127 }
128 }
129
130
135 public long getPrimaryKey() {
136 return _layoutSetPrototype.getPrimaryKey();
137 }
138
139
144 public void setPrimaryKey(long primaryKey) {
145 _layoutSetPrototype.setPrimaryKey(primaryKey);
146 }
147
148
153 public java.lang.String getUuid() {
154 return _layoutSetPrototype.getUuid();
155 }
156
157
162 public void setUuid(java.lang.String uuid) {
163 _layoutSetPrototype.setUuid(uuid);
164 }
165
166
171 public long getLayoutSetPrototypeId() {
172 return _layoutSetPrototype.getLayoutSetPrototypeId();
173 }
174
175
180 public void setLayoutSetPrototypeId(long layoutSetPrototypeId) {
181 _layoutSetPrototype.setLayoutSetPrototypeId(layoutSetPrototypeId);
182 }
183
184
189 public long getCompanyId() {
190 return _layoutSetPrototype.getCompanyId();
191 }
192
193
198 public void setCompanyId(long companyId) {
199 _layoutSetPrototype.setCompanyId(companyId);
200 }
201
202
207 public long getUserId() {
208 return _layoutSetPrototype.getUserId();
209 }
210
211
216 public void setUserId(long userId) {
217 _layoutSetPrototype.setUserId(userId);
218 }
219
220
226 public java.lang.String getUserUuid()
227 throws com.liferay.portal.kernel.exception.SystemException {
228 return _layoutSetPrototype.getUserUuid();
229 }
230
231
236 public void setUserUuid(java.lang.String userUuid) {
237 _layoutSetPrototype.setUserUuid(userUuid);
238 }
239
240
245 public java.lang.String getUserName() {
246 return _layoutSetPrototype.getUserName();
247 }
248
249
254 public void setUserName(java.lang.String userName) {
255 _layoutSetPrototype.setUserName(userName);
256 }
257
258
263 public java.util.Date getCreateDate() {
264 return _layoutSetPrototype.getCreateDate();
265 }
266
267
272 public void setCreateDate(java.util.Date createDate) {
273 _layoutSetPrototype.setCreateDate(createDate);
274 }
275
276
281 public java.util.Date getModifiedDate() {
282 return _layoutSetPrototype.getModifiedDate();
283 }
284
285
290 public void setModifiedDate(java.util.Date modifiedDate) {
291 _layoutSetPrototype.setModifiedDate(modifiedDate);
292 }
293
294
299 public java.lang.String getName() {
300 return _layoutSetPrototype.getName();
301 }
302
303
309 public java.lang.String getName(java.util.Locale locale) {
310 return _layoutSetPrototype.getName(locale);
311 }
312
313
320 public java.lang.String getName(java.util.Locale locale, boolean useDefault) {
321 return _layoutSetPrototype.getName(locale, useDefault);
322 }
323
324
330 public java.lang.String getName(java.lang.String languageId) {
331 return _layoutSetPrototype.getName(languageId);
332 }
333
334
341 public java.lang.String getName(java.lang.String languageId,
342 boolean useDefault) {
343 return _layoutSetPrototype.getName(languageId, useDefault);
344 }
345
346 public java.lang.String getNameCurrentLanguageId() {
347 return _layoutSetPrototype.getNameCurrentLanguageId();
348 }
349
350 public java.lang.String getNameCurrentValue() {
351 return _layoutSetPrototype.getNameCurrentValue();
352 }
353
354
359 public java.util.Map<java.util.Locale, java.lang.String> getNameMap() {
360 return _layoutSetPrototype.getNameMap();
361 }
362
363
368 public void setName(java.lang.String name) {
369 _layoutSetPrototype.setName(name);
370 }
371
372
378 public void setName(java.lang.String name, java.util.Locale locale) {
379 _layoutSetPrototype.setName(name, locale);
380 }
381
382
389 public void setName(java.lang.String name, java.util.Locale locale,
390 java.util.Locale defaultLocale) {
391 _layoutSetPrototype.setName(name, locale, defaultLocale);
392 }
393
394 public void setNameCurrentLanguageId(java.lang.String languageId) {
395 _layoutSetPrototype.setNameCurrentLanguageId(languageId);
396 }
397
398
403 public void setNameMap(
404 java.util.Map<java.util.Locale, java.lang.String> nameMap) {
405 _layoutSetPrototype.setNameMap(nameMap);
406 }
407
408
414 public void setNameMap(
415 java.util.Map<java.util.Locale, java.lang.String> nameMap,
416 java.util.Locale defaultLocale) {
417 _layoutSetPrototype.setNameMap(nameMap, defaultLocale);
418 }
419
420
425 public java.lang.String getDescription() {
426 return _layoutSetPrototype.getDescription();
427 }
428
429
434 public void setDescription(java.lang.String description) {
435 _layoutSetPrototype.setDescription(description);
436 }
437
438
443 public java.lang.String getSettings() {
444 return _layoutSetPrototype.getSettings();
445 }
446
447
452 public void setSettings(java.lang.String settings) {
453 _layoutSetPrototype.setSettings(settings);
454 }
455
456
461 public boolean getActive() {
462 return _layoutSetPrototype.getActive();
463 }
464
465
470 public boolean isActive() {
471 return _layoutSetPrototype.isActive();
472 }
473
474
479 public void setActive(boolean active) {
480 _layoutSetPrototype.setActive(active);
481 }
482
483 public boolean isNew() {
484 return _layoutSetPrototype.isNew();
485 }
486
487 public void setNew(boolean n) {
488 _layoutSetPrototype.setNew(n);
489 }
490
491 public boolean isCachedModel() {
492 return _layoutSetPrototype.isCachedModel();
493 }
494
495 public void setCachedModel(boolean cachedModel) {
496 _layoutSetPrototype.setCachedModel(cachedModel);
497 }
498
499 public boolean isEscapedModel() {
500 return _layoutSetPrototype.isEscapedModel();
501 }
502
503 public java.io.Serializable getPrimaryKeyObj() {
504 return _layoutSetPrototype.getPrimaryKeyObj();
505 }
506
507 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
508 _layoutSetPrototype.setPrimaryKeyObj(primaryKeyObj);
509 }
510
511 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
512 return _layoutSetPrototype.getExpandoBridge();
513 }
514
515 public void setExpandoBridgeAttributes(
516 com.liferay.portal.model.BaseModel<?> baseModel) {
517 _layoutSetPrototype.setExpandoBridgeAttributes(baseModel);
518 }
519
520 public void setExpandoBridgeAttributes(
521 com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
522 _layoutSetPrototype.setExpandoBridgeAttributes(expandoBridge);
523 }
524
525 public void setExpandoBridgeAttributes(
526 com.liferay.portal.service.ServiceContext serviceContext) {
527 _layoutSetPrototype.setExpandoBridgeAttributes(serviceContext);
528 }
529
530 public void prepareLocalizedFieldsForImport(
531 java.util.Locale defaultImportLocale)
532 throws com.liferay.portal.LocaleException {
533 _layoutSetPrototype.prepareLocalizedFieldsForImport(defaultImportLocale);
534 }
535
536 @Override
537 public java.lang.Object clone() {
538 return new LayoutSetPrototypeWrapper((LayoutSetPrototype)_layoutSetPrototype.clone());
539 }
540
541 public int compareTo(
542 com.liferay.portal.model.LayoutSetPrototype layoutSetPrototype) {
543 return _layoutSetPrototype.compareTo(layoutSetPrototype);
544 }
545
546 @Override
547 public int hashCode() {
548 return _layoutSetPrototype.hashCode();
549 }
550
551 public com.liferay.portal.model.CacheModel<com.liferay.portal.model.LayoutSetPrototype> toCacheModel() {
552 return _layoutSetPrototype.toCacheModel();
553 }
554
555 public com.liferay.portal.model.LayoutSetPrototype toEscapedModel() {
556 return new LayoutSetPrototypeWrapper(_layoutSetPrototype.toEscapedModel());
557 }
558
559 public com.liferay.portal.model.LayoutSetPrototype toUnescapedModel() {
560 return new LayoutSetPrototypeWrapper(_layoutSetPrototype.toUnescapedModel());
561 }
562
563 @Override
564 public java.lang.String toString() {
565 return _layoutSetPrototype.toString();
566 }
567
568 public java.lang.String toXmlString() {
569 return _layoutSetPrototype.toXmlString();
570 }
571
572 public void persist()
573 throws com.liferay.portal.kernel.exception.SystemException {
574 _layoutSetPrototype.persist();
575 }
576
577 public com.liferay.portal.model.Group getGroup()
578 throws com.liferay.portal.kernel.exception.PortalException,
579 com.liferay.portal.kernel.exception.SystemException {
580 return _layoutSetPrototype.getGroup();
581 }
582
583 public com.liferay.portal.model.LayoutSet getLayoutSet()
584 throws com.liferay.portal.kernel.exception.PortalException,
585 com.liferay.portal.kernel.exception.SystemException {
586 return _layoutSetPrototype.getLayoutSet();
587 }
588
589 public com.liferay.portal.kernel.util.UnicodeProperties getSettingsProperties() {
590 return _layoutSetPrototype.getSettingsProperties();
591 }
592
593 public java.lang.String getSettingsProperty(java.lang.String key) {
594 return _layoutSetPrototype.getSettingsProperty(key);
595 }
596
597 public void setSettingsProperties(
598 com.liferay.portal.kernel.util.UnicodeProperties settingsProperties) {
599 _layoutSetPrototype.setSettingsProperties(settingsProperties);
600 }
601
602
605 public LayoutSetPrototype getWrappedLayoutSetPrototype() {
606 return _layoutSetPrototype;
607 }
608
609 public LayoutSetPrototype getWrappedModel() {
610 return _layoutSetPrototype;
611 }
612
613 public void resetOriginalValues() {
614 _layoutSetPrototype.resetOriginalValues();
615 }
616
617 private LayoutSetPrototype _layoutSetPrototype;
618 }