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("createDate", getCreateDate());
051 attributes.put("modifiedDate", getModifiedDate());
052 attributes.put("name", getName());
053 attributes.put("description", getDescription());
054 attributes.put("settings", getSettings());
055 attributes.put("active", getActive());
056
057 return attributes;
058 }
059
060 public void setModelAttributes(Map<String, Object> attributes) {
061 String uuid = (String)attributes.get("uuid");
062
063 if (uuid != null) {
064 setUuid(uuid);
065 }
066
067 Long layoutSetPrototypeId = (Long)attributes.get("layoutSetPrototypeId");
068
069 if (layoutSetPrototypeId != null) {
070 setLayoutSetPrototypeId(layoutSetPrototypeId);
071 }
072
073 Long companyId = (Long)attributes.get("companyId");
074
075 if (companyId != null) {
076 setCompanyId(companyId);
077 }
078
079 Date createDate = (Date)attributes.get("createDate");
080
081 if (createDate != null) {
082 setCreateDate(createDate);
083 }
084
085 Date modifiedDate = (Date)attributes.get("modifiedDate");
086
087 if (modifiedDate != null) {
088 setModifiedDate(modifiedDate);
089 }
090
091 String name = (String)attributes.get("name");
092
093 if (name != null) {
094 setName(name);
095 }
096
097 String description = (String)attributes.get("description");
098
099 if (description != null) {
100 setDescription(description);
101 }
102
103 String settings = (String)attributes.get("settings");
104
105 if (settings != null) {
106 setSettings(settings);
107 }
108
109 Boolean active = (Boolean)attributes.get("active");
110
111 if (active != null) {
112 setActive(active);
113 }
114 }
115
116
121 public long getPrimaryKey() {
122 return _layoutSetPrototype.getPrimaryKey();
123 }
124
125
130 public void setPrimaryKey(long primaryKey) {
131 _layoutSetPrototype.setPrimaryKey(primaryKey);
132 }
133
134
139 public java.lang.String getUuid() {
140 return _layoutSetPrototype.getUuid();
141 }
142
143
148 public void setUuid(java.lang.String uuid) {
149 _layoutSetPrototype.setUuid(uuid);
150 }
151
152
157 public long getLayoutSetPrototypeId() {
158 return _layoutSetPrototype.getLayoutSetPrototypeId();
159 }
160
161
166 public void setLayoutSetPrototypeId(long layoutSetPrototypeId) {
167 _layoutSetPrototype.setLayoutSetPrototypeId(layoutSetPrototypeId);
168 }
169
170
175 public long getCompanyId() {
176 return _layoutSetPrototype.getCompanyId();
177 }
178
179
184 public void setCompanyId(long companyId) {
185 _layoutSetPrototype.setCompanyId(companyId);
186 }
187
188
193 public java.util.Date getCreateDate() {
194 return _layoutSetPrototype.getCreateDate();
195 }
196
197
202 public void setCreateDate(java.util.Date createDate) {
203 _layoutSetPrototype.setCreateDate(createDate);
204 }
205
206
211 public java.util.Date getModifiedDate() {
212 return _layoutSetPrototype.getModifiedDate();
213 }
214
215
220 public void setModifiedDate(java.util.Date modifiedDate) {
221 _layoutSetPrototype.setModifiedDate(modifiedDate);
222 }
223
224
229 public java.lang.String getName() {
230 return _layoutSetPrototype.getName();
231 }
232
233
239 public java.lang.String getName(java.util.Locale locale) {
240 return _layoutSetPrototype.getName(locale);
241 }
242
243
250 public java.lang.String getName(java.util.Locale locale, boolean useDefault) {
251 return _layoutSetPrototype.getName(locale, useDefault);
252 }
253
254
260 public java.lang.String getName(java.lang.String languageId) {
261 return _layoutSetPrototype.getName(languageId);
262 }
263
264
271 public java.lang.String getName(java.lang.String languageId,
272 boolean useDefault) {
273 return _layoutSetPrototype.getName(languageId, useDefault);
274 }
275
276 public java.lang.String getNameCurrentLanguageId() {
277 return _layoutSetPrototype.getNameCurrentLanguageId();
278 }
279
280 public java.lang.String getNameCurrentValue() {
281 return _layoutSetPrototype.getNameCurrentValue();
282 }
283
284
289 public java.util.Map<java.util.Locale, java.lang.String> getNameMap() {
290 return _layoutSetPrototype.getNameMap();
291 }
292
293
298 public void setName(java.lang.String name) {
299 _layoutSetPrototype.setName(name);
300 }
301
302
308 public void setName(java.lang.String name, java.util.Locale locale) {
309 _layoutSetPrototype.setName(name, locale);
310 }
311
312
319 public void setName(java.lang.String name, java.util.Locale locale,
320 java.util.Locale defaultLocale) {
321 _layoutSetPrototype.setName(name, locale, defaultLocale);
322 }
323
324 public void setNameCurrentLanguageId(java.lang.String languageId) {
325 _layoutSetPrototype.setNameCurrentLanguageId(languageId);
326 }
327
328
333 public void setNameMap(
334 java.util.Map<java.util.Locale, java.lang.String> nameMap) {
335 _layoutSetPrototype.setNameMap(nameMap);
336 }
337
338
344 public void setNameMap(
345 java.util.Map<java.util.Locale, java.lang.String> nameMap,
346 java.util.Locale defaultLocale) {
347 _layoutSetPrototype.setNameMap(nameMap, defaultLocale);
348 }
349
350
355 public java.lang.String getDescription() {
356 return _layoutSetPrototype.getDescription();
357 }
358
359
364 public void setDescription(java.lang.String description) {
365 _layoutSetPrototype.setDescription(description);
366 }
367
368
373 public java.lang.String getSettings() {
374 return _layoutSetPrototype.getSettings();
375 }
376
377
382 public void setSettings(java.lang.String settings) {
383 _layoutSetPrototype.setSettings(settings);
384 }
385
386
391 public boolean getActive() {
392 return _layoutSetPrototype.getActive();
393 }
394
395
400 public boolean isActive() {
401 return _layoutSetPrototype.isActive();
402 }
403
404
409 public void setActive(boolean active) {
410 _layoutSetPrototype.setActive(active);
411 }
412
413 public boolean isNew() {
414 return _layoutSetPrototype.isNew();
415 }
416
417 public void setNew(boolean n) {
418 _layoutSetPrototype.setNew(n);
419 }
420
421 public boolean isCachedModel() {
422 return _layoutSetPrototype.isCachedModel();
423 }
424
425 public void setCachedModel(boolean cachedModel) {
426 _layoutSetPrototype.setCachedModel(cachedModel);
427 }
428
429 public boolean isEscapedModel() {
430 return _layoutSetPrototype.isEscapedModel();
431 }
432
433 public java.io.Serializable getPrimaryKeyObj() {
434 return _layoutSetPrototype.getPrimaryKeyObj();
435 }
436
437 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
438 _layoutSetPrototype.setPrimaryKeyObj(primaryKeyObj);
439 }
440
441 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
442 return _layoutSetPrototype.getExpandoBridge();
443 }
444
445 public void setExpandoBridgeAttributes(
446 com.liferay.portal.service.ServiceContext serviceContext) {
447 _layoutSetPrototype.setExpandoBridgeAttributes(serviceContext);
448 }
449
450 public void prepareLocalizedFieldsForImport(
451 java.util.Locale defaultImportLocale)
452 throws com.liferay.portal.LocaleException {
453 _layoutSetPrototype.prepareLocalizedFieldsForImport(defaultImportLocale);
454 }
455
456 @Override
457 public java.lang.Object clone() {
458 return new LayoutSetPrototypeWrapper((LayoutSetPrototype)_layoutSetPrototype.clone());
459 }
460
461 public int compareTo(
462 com.liferay.portal.model.LayoutSetPrototype layoutSetPrototype) {
463 return _layoutSetPrototype.compareTo(layoutSetPrototype);
464 }
465
466 @Override
467 public int hashCode() {
468 return _layoutSetPrototype.hashCode();
469 }
470
471 public com.liferay.portal.model.CacheModel<com.liferay.portal.model.LayoutSetPrototype> toCacheModel() {
472 return _layoutSetPrototype.toCacheModel();
473 }
474
475 public com.liferay.portal.model.LayoutSetPrototype toEscapedModel() {
476 return new LayoutSetPrototypeWrapper(_layoutSetPrototype.toEscapedModel());
477 }
478
479 @Override
480 public java.lang.String toString() {
481 return _layoutSetPrototype.toString();
482 }
483
484 public java.lang.String toXmlString() {
485 return _layoutSetPrototype.toXmlString();
486 }
487
488 public void persist()
489 throws com.liferay.portal.kernel.exception.SystemException {
490 _layoutSetPrototype.persist();
491 }
492
493 public com.liferay.portal.model.Group getGroup()
494 throws com.liferay.portal.kernel.exception.PortalException,
495 com.liferay.portal.kernel.exception.SystemException {
496 return _layoutSetPrototype.getGroup();
497 }
498
499 public com.liferay.portal.model.LayoutSet getLayoutSet()
500 throws com.liferay.portal.kernel.exception.PortalException,
501 com.liferay.portal.kernel.exception.SystemException {
502 return _layoutSetPrototype.getLayoutSet();
503 }
504
505 public com.liferay.portal.kernel.util.UnicodeProperties getSettingsProperties() {
506 return _layoutSetPrototype.getSettingsProperties();
507 }
508
509 public java.lang.String getSettingsProperty(java.lang.String key) {
510 return _layoutSetPrototype.getSettingsProperty(key);
511 }
512
513 public void setSettingsProperties(
514 com.liferay.portal.kernel.util.UnicodeProperties settingsProperties) {
515 _layoutSetPrototype.setSettingsProperties(settingsProperties);
516 }
517
518
521 public LayoutSetPrototype getWrappedLayoutSetPrototype() {
522 return _layoutSetPrototype;
523 }
524
525 public LayoutSetPrototype getWrappedModel() {
526 return _layoutSetPrototype;
527 }
528
529 public void resetOriginalValues() {
530 _layoutSetPrototype.resetOriginalValues();
531 }
532
533 private LayoutSetPrototype _layoutSetPrototype;
534 }