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 LayoutPrototypeWrapper implements LayoutPrototype,
031 ModelWrapper<LayoutPrototype> {
032 public LayoutPrototypeWrapper(LayoutPrototype layoutPrototype) {
033 _layoutPrototype = layoutPrototype;
034 }
035
036 public Class<?> getModelClass() {
037 return LayoutPrototype.class;
038 }
039
040 public String getModelClassName() {
041 return LayoutPrototype.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("layoutPrototypeId", getLayoutPrototypeId());
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 layoutPrototypeId = (Long)attributes.get("layoutPrototypeId");
070
071 if (layoutPrototypeId != null) {
072 setLayoutPrototypeId(layoutPrototypeId);
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 _layoutPrototype.getPrimaryKey();
137 }
138
139
144 public void setPrimaryKey(long primaryKey) {
145 _layoutPrototype.setPrimaryKey(primaryKey);
146 }
147
148
153 public java.lang.String getUuid() {
154 return _layoutPrototype.getUuid();
155 }
156
157
162 public void setUuid(java.lang.String uuid) {
163 _layoutPrototype.setUuid(uuid);
164 }
165
166
171 public long getLayoutPrototypeId() {
172 return _layoutPrototype.getLayoutPrototypeId();
173 }
174
175
180 public void setLayoutPrototypeId(long layoutPrototypeId) {
181 _layoutPrototype.setLayoutPrototypeId(layoutPrototypeId);
182 }
183
184
189 public long getCompanyId() {
190 return _layoutPrototype.getCompanyId();
191 }
192
193
198 public void setCompanyId(long companyId) {
199 _layoutPrototype.setCompanyId(companyId);
200 }
201
202
207 public long getUserId() {
208 return _layoutPrototype.getUserId();
209 }
210
211
216 public void setUserId(long userId) {
217 _layoutPrototype.setUserId(userId);
218 }
219
220
226 public java.lang.String getUserUuid()
227 throws com.liferay.portal.kernel.exception.SystemException {
228 return _layoutPrototype.getUserUuid();
229 }
230
231
236 public void setUserUuid(java.lang.String userUuid) {
237 _layoutPrototype.setUserUuid(userUuid);
238 }
239
240
245 public java.lang.String getUserName() {
246 return _layoutPrototype.getUserName();
247 }
248
249
254 public void setUserName(java.lang.String userName) {
255 _layoutPrototype.setUserName(userName);
256 }
257
258
263 public java.util.Date getCreateDate() {
264 return _layoutPrototype.getCreateDate();
265 }
266
267
272 public void setCreateDate(java.util.Date createDate) {
273 _layoutPrototype.setCreateDate(createDate);
274 }
275
276
281 public java.util.Date getModifiedDate() {
282 return _layoutPrototype.getModifiedDate();
283 }
284
285
290 public void setModifiedDate(java.util.Date modifiedDate) {
291 _layoutPrototype.setModifiedDate(modifiedDate);
292 }
293
294
299 public java.lang.String getName() {
300 return _layoutPrototype.getName();
301 }
302
303
309 public java.lang.String getName(java.util.Locale locale) {
310 return _layoutPrototype.getName(locale);
311 }
312
313
320 public java.lang.String getName(java.util.Locale locale, boolean useDefault) {
321 return _layoutPrototype.getName(locale, useDefault);
322 }
323
324
330 public java.lang.String getName(java.lang.String languageId) {
331 return _layoutPrototype.getName(languageId);
332 }
333
334
341 public java.lang.String getName(java.lang.String languageId,
342 boolean useDefault) {
343 return _layoutPrototype.getName(languageId, useDefault);
344 }
345
346 public java.lang.String getNameCurrentLanguageId() {
347 return _layoutPrototype.getNameCurrentLanguageId();
348 }
349
350 public java.lang.String getNameCurrentValue() {
351 return _layoutPrototype.getNameCurrentValue();
352 }
353
354
359 public java.util.Map<java.util.Locale, java.lang.String> getNameMap() {
360 return _layoutPrototype.getNameMap();
361 }
362
363
368 public void setName(java.lang.String name) {
369 _layoutPrototype.setName(name);
370 }
371
372
378 public void setName(java.lang.String name, java.util.Locale locale) {
379 _layoutPrototype.setName(name, locale);
380 }
381
382
389 public void setName(java.lang.String name, java.util.Locale locale,
390 java.util.Locale defaultLocale) {
391 _layoutPrototype.setName(name, locale, defaultLocale);
392 }
393
394 public void setNameCurrentLanguageId(java.lang.String languageId) {
395 _layoutPrototype.setNameCurrentLanguageId(languageId);
396 }
397
398
403 public void setNameMap(
404 java.util.Map<java.util.Locale, java.lang.String> nameMap) {
405 _layoutPrototype.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 _layoutPrototype.setNameMap(nameMap, defaultLocale);
418 }
419
420
425 public java.lang.String getDescription() {
426 return _layoutPrototype.getDescription();
427 }
428
429
434 public void setDescription(java.lang.String description) {
435 _layoutPrototype.setDescription(description);
436 }
437
438
443 public java.lang.String getSettings() {
444 return _layoutPrototype.getSettings();
445 }
446
447
452 public void setSettings(java.lang.String settings) {
453 _layoutPrototype.setSettings(settings);
454 }
455
456
461 public boolean getActive() {
462 return _layoutPrototype.getActive();
463 }
464
465
470 public boolean isActive() {
471 return _layoutPrototype.isActive();
472 }
473
474
479 public void setActive(boolean active) {
480 _layoutPrototype.setActive(active);
481 }
482
483 public boolean isNew() {
484 return _layoutPrototype.isNew();
485 }
486
487 public void setNew(boolean n) {
488 _layoutPrototype.setNew(n);
489 }
490
491 public boolean isCachedModel() {
492 return _layoutPrototype.isCachedModel();
493 }
494
495 public void setCachedModel(boolean cachedModel) {
496 _layoutPrototype.setCachedModel(cachedModel);
497 }
498
499 public boolean isEscapedModel() {
500 return _layoutPrototype.isEscapedModel();
501 }
502
503 public java.io.Serializable getPrimaryKeyObj() {
504 return _layoutPrototype.getPrimaryKeyObj();
505 }
506
507 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
508 _layoutPrototype.setPrimaryKeyObj(primaryKeyObj);
509 }
510
511 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
512 return _layoutPrototype.getExpandoBridge();
513 }
514
515 public void setExpandoBridgeAttributes(
516 com.liferay.portal.model.BaseModel<?> baseModel) {
517 _layoutPrototype.setExpandoBridgeAttributes(baseModel);
518 }
519
520 public void setExpandoBridgeAttributes(
521 com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
522 _layoutPrototype.setExpandoBridgeAttributes(expandoBridge);
523 }
524
525 public void setExpandoBridgeAttributes(
526 com.liferay.portal.service.ServiceContext serviceContext) {
527 _layoutPrototype.setExpandoBridgeAttributes(serviceContext);
528 }
529
530 public void prepareLocalizedFieldsForImport(
531 java.util.Locale defaultImportLocale)
532 throws com.liferay.portal.LocaleException {
533 _layoutPrototype.prepareLocalizedFieldsForImport(defaultImportLocale);
534 }
535
536 @Override
537 public java.lang.Object clone() {
538 return new LayoutPrototypeWrapper((LayoutPrototype)_layoutPrototype.clone());
539 }
540
541 public int compareTo(
542 com.liferay.portal.model.LayoutPrototype layoutPrototype) {
543 return _layoutPrototype.compareTo(layoutPrototype);
544 }
545
546 @Override
547 public int hashCode() {
548 return _layoutPrototype.hashCode();
549 }
550
551 public com.liferay.portal.model.CacheModel<com.liferay.portal.model.LayoutPrototype> toCacheModel() {
552 return _layoutPrototype.toCacheModel();
553 }
554
555 public com.liferay.portal.model.LayoutPrototype toEscapedModel() {
556 return new LayoutPrototypeWrapper(_layoutPrototype.toEscapedModel());
557 }
558
559 public com.liferay.portal.model.LayoutPrototype toUnescapedModel() {
560 return new LayoutPrototypeWrapper(_layoutPrototype.toUnescapedModel());
561 }
562
563 @Override
564 public java.lang.String toString() {
565 return _layoutPrototype.toString();
566 }
567
568 public java.lang.String toXmlString() {
569 return _layoutPrototype.toXmlString();
570 }
571
572 public void persist()
573 throws com.liferay.portal.kernel.exception.SystemException {
574 _layoutPrototype.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 _layoutPrototype.getGroup();
581 }
582
583 public long getGroupId()
584 throws com.liferay.portal.kernel.exception.PortalException,
585 com.liferay.portal.kernel.exception.SystemException {
586 return _layoutPrototype.getGroupId();
587 }
588
589 public com.liferay.portal.model.Layout getLayout()
590 throws com.liferay.portal.kernel.exception.PortalException,
591 com.liferay.portal.kernel.exception.SystemException {
592 return _layoutPrototype.getLayout();
593 }
594
595
598 public LayoutPrototype getWrappedLayoutPrototype() {
599 return _layoutPrototype;
600 }
601
602 public LayoutPrototype getWrappedModel() {
603 return _layoutPrototype;
604 }
605
606 public void resetOriginalValues() {
607 _layoutPrototype.resetOriginalValues();
608 }
609
610 private LayoutPrototype _layoutPrototype;
611 }