001
014
015 package com.liferay.portal.model;
016
017 import com.liferay.portal.kernel.util.Validator;
018
019 import java.util.Date;
020 import java.util.HashMap;
021 import java.util.Map;
022
023
032 public class LayoutSetPrototypeWrapper implements LayoutSetPrototype,
033 ModelWrapper<LayoutSetPrototype> {
034 public LayoutSetPrototypeWrapper(LayoutSetPrototype layoutSetPrototype) {
035 _layoutSetPrototype = layoutSetPrototype;
036 }
037
038 public Class<?> getModelClass() {
039 return LayoutSetPrototype.class;
040 }
041
042 public String getModelClassName() {
043 return LayoutSetPrototype.class.getName();
044 }
045
046 public Map<String, Object> getModelAttributes() {
047 Map<String, Object> attributes = new HashMap<String, Object>();
048
049 attributes.put("uuid", getUuid());
050 attributes.put("layoutSetPrototypeId", getLayoutSetPrototypeId());
051 attributes.put("companyId", getCompanyId());
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 Date createDate = (Date)attributes.get("createDate");
082
083 if (createDate != null) {
084 setCreateDate(createDate);
085 }
086
087 Date modifiedDate = (Date)attributes.get("modifiedDate");
088
089 if (modifiedDate != null) {
090 setModifiedDate(modifiedDate);
091 }
092
093 String name = (String)attributes.get("name");
094
095 if (name != null) {
096 setName(name);
097 }
098
099 String description = (String)attributes.get("description");
100
101 if (description != null) {
102 setDescription(description);
103 }
104
105 String settings = (String)attributes.get("settings");
106
107 if (settings != null) {
108 setSettings(settings);
109 }
110
111 Boolean active = (Boolean)attributes.get("active");
112
113 if (active != null) {
114 setActive(active);
115 }
116 }
117
118
123 public long getPrimaryKey() {
124 return _layoutSetPrototype.getPrimaryKey();
125 }
126
127
132 public void setPrimaryKey(long primaryKey) {
133 _layoutSetPrototype.setPrimaryKey(primaryKey);
134 }
135
136
141 public java.lang.String getUuid() {
142 return _layoutSetPrototype.getUuid();
143 }
144
145
150 public void setUuid(java.lang.String uuid) {
151 _layoutSetPrototype.setUuid(uuid);
152 }
153
154
159 public long getLayoutSetPrototypeId() {
160 return _layoutSetPrototype.getLayoutSetPrototypeId();
161 }
162
163
168 public void setLayoutSetPrototypeId(long layoutSetPrototypeId) {
169 _layoutSetPrototype.setLayoutSetPrototypeId(layoutSetPrototypeId);
170 }
171
172
177 public long getCompanyId() {
178 return _layoutSetPrototype.getCompanyId();
179 }
180
181
186 public void setCompanyId(long companyId) {
187 _layoutSetPrototype.setCompanyId(companyId);
188 }
189
190
195 public java.util.Date getCreateDate() {
196 return _layoutSetPrototype.getCreateDate();
197 }
198
199
204 public void setCreateDate(java.util.Date createDate) {
205 _layoutSetPrototype.setCreateDate(createDate);
206 }
207
208
213 public java.util.Date getModifiedDate() {
214 return _layoutSetPrototype.getModifiedDate();
215 }
216
217
222 public void setModifiedDate(java.util.Date modifiedDate) {
223 _layoutSetPrototype.setModifiedDate(modifiedDate);
224 }
225
226
231 public java.lang.String getName() {
232 return _layoutSetPrototype.getName();
233 }
234
235
241 public java.lang.String getName(java.util.Locale locale) {
242 return _layoutSetPrototype.getName(locale);
243 }
244
245
252 public java.lang.String getName(java.util.Locale locale, boolean useDefault) {
253 return _layoutSetPrototype.getName(locale, useDefault);
254 }
255
256
262 public java.lang.String getName(java.lang.String languageId) {
263 return _layoutSetPrototype.getName(languageId);
264 }
265
266
273 public java.lang.String getName(java.lang.String languageId,
274 boolean useDefault) {
275 return _layoutSetPrototype.getName(languageId, useDefault);
276 }
277
278 public java.lang.String getNameCurrentLanguageId() {
279 return _layoutSetPrototype.getNameCurrentLanguageId();
280 }
281
282 public java.lang.String getNameCurrentValue() {
283 return _layoutSetPrototype.getNameCurrentValue();
284 }
285
286
291 public java.util.Map<java.util.Locale, java.lang.String> getNameMap() {
292 return _layoutSetPrototype.getNameMap();
293 }
294
295
300 public void setName(java.lang.String name) {
301 _layoutSetPrototype.setName(name);
302 }
303
304
310 public void setName(java.lang.String name, java.util.Locale locale) {
311 _layoutSetPrototype.setName(name, locale);
312 }
313
314
321 public void setName(java.lang.String name, java.util.Locale locale,
322 java.util.Locale defaultLocale) {
323 _layoutSetPrototype.setName(name, locale, defaultLocale);
324 }
325
326 public void setNameCurrentLanguageId(java.lang.String languageId) {
327 _layoutSetPrototype.setNameCurrentLanguageId(languageId);
328 }
329
330
335 public void setNameMap(
336 java.util.Map<java.util.Locale, java.lang.String> nameMap) {
337 _layoutSetPrototype.setNameMap(nameMap);
338 }
339
340
346 public void setNameMap(
347 java.util.Map<java.util.Locale, java.lang.String> nameMap,
348 java.util.Locale defaultLocale) {
349 _layoutSetPrototype.setNameMap(nameMap, defaultLocale);
350 }
351
352
357 public java.lang.String getDescription() {
358 return _layoutSetPrototype.getDescription();
359 }
360
361
366 public void setDescription(java.lang.String description) {
367 _layoutSetPrototype.setDescription(description);
368 }
369
370
375 public java.lang.String getSettings() {
376 return _layoutSetPrototype.getSettings();
377 }
378
379
384 public void setSettings(java.lang.String settings) {
385 _layoutSetPrototype.setSettings(settings);
386 }
387
388
393 public boolean getActive() {
394 return _layoutSetPrototype.getActive();
395 }
396
397
402 public boolean isActive() {
403 return _layoutSetPrototype.isActive();
404 }
405
406
411 public void setActive(boolean active) {
412 _layoutSetPrototype.setActive(active);
413 }
414
415 public boolean isNew() {
416 return _layoutSetPrototype.isNew();
417 }
418
419 public void setNew(boolean n) {
420 _layoutSetPrototype.setNew(n);
421 }
422
423 public boolean isCachedModel() {
424 return _layoutSetPrototype.isCachedModel();
425 }
426
427 public void setCachedModel(boolean cachedModel) {
428 _layoutSetPrototype.setCachedModel(cachedModel);
429 }
430
431 public boolean isEscapedModel() {
432 return _layoutSetPrototype.isEscapedModel();
433 }
434
435 public java.io.Serializable getPrimaryKeyObj() {
436 return _layoutSetPrototype.getPrimaryKeyObj();
437 }
438
439 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
440 _layoutSetPrototype.setPrimaryKeyObj(primaryKeyObj);
441 }
442
443 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
444 return _layoutSetPrototype.getExpandoBridge();
445 }
446
447 public void setExpandoBridgeAttributes(
448 com.liferay.portal.service.ServiceContext serviceContext) {
449 _layoutSetPrototype.setExpandoBridgeAttributes(serviceContext);
450 }
451
452 public void prepareLocalizedFieldsForImport(
453 java.util.Locale defaultImportLocale)
454 throws com.liferay.portal.LocaleException {
455 _layoutSetPrototype.prepareLocalizedFieldsForImport(defaultImportLocale);
456 }
457
458 @Override
459 public java.lang.Object clone() {
460 return new LayoutSetPrototypeWrapper((LayoutSetPrototype)_layoutSetPrototype.clone());
461 }
462
463 public int compareTo(
464 com.liferay.portal.model.LayoutSetPrototype layoutSetPrototype) {
465 return _layoutSetPrototype.compareTo(layoutSetPrototype);
466 }
467
468 @Override
469 public int hashCode() {
470 return _layoutSetPrototype.hashCode();
471 }
472
473 public com.liferay.portal.model.CacheModel<com.liferay.portal.model.LayoutSetPrototype> toCacheModel() {
474 return _layoutSetPrototype.toCacheModel();
475 }
476
477 public com.liferay.portal.model.LayoutSetPrototype toEscapedModel() {
478 return new LayoutSetPrototypeWrapper(_layoutSetPrototype.toEscapedModel());
479 }
480
481 public com.liferay.portal.model.LayoutSetPrototype toUnescapedModel() {
482 return new LayoutSetPrototypeWrapper(_layoutSetPrototype.toUnescapedModel());
483 }
484
485 @Override
486 public java.lang.String toString() {
487 return _layoutSetPrototype.toString();
488 }
489
490 public java.lang.String toXmlString() {
491 return _layoutSetPrototype.toXmlString();
492 }
493
494 public void persist()
495 throws com.liferay.portal.kernel.exception.SystemException {
496 _layoutSetPrototype.persist();
497 }
498
499 public com.liferay.portal.model.Group getGroup()
500 throws com.liferay.portal.kernel.exception.PortalException,
501 com.liferay.portal.kernel.exception.SystemException {
502 return _layoutSetPrototype.getGroup();
503 }
504
505 public com.liferay.portal.model.LayoutSet getLayoutSet()
506 throws com.liferay.portal.kernel.exception.PortalException,
507 com.liferay.portal.kernel.exception.SystemException {
508 return _layoutSetPrototype.getLayoutSet();
509 }
510
511 public com.liferay.portal.kernel.util.UnicodeProperties getSettingsProperties() {
512 return _layoutSetPrototype.getSettingsProperties();
513 }
514
515 public java.lang.String getSettingsProperty(java.lang.String key) {
516 return _layoutSetPrototype.getSettingsProperty(key);
517 }
518
519 public void setSettingsProperties(
520 com.liferay.portal.kernel.util.UnicodeProperties settingsProperties) {
521 _layoutSetPrototype.setSettingsProperties(settingsProperties);
522 }
523
524 @Override
525 public boolean equals(Object obj) {
526 if (this == obj) {
527 return true;
528 }
529
530 if (!(obj instanceof LayoutSetPrototypeWrapper)) {
531 return false;
532 }
533
534 LayoutSetPrototypeWrapper layoutSetPrototypeWrapper = (LayoutSetPrototypeWrapper)obj;
535
536 if (Validator.equals(_layoutSetPrototype,
537 layoutSetPrototypeWrapper._layoutSetPrototype)) {
538 return true;
539 }
540
541 return false;
542 }
543
544
547 public LayoutSetPrototype getWrappedLayoutSetPrototype() {
548 return _layoutSetPrototype;
549 }
550
551 public LayoutSetPrototype getWrappedModel() {
552 return _layoutSetPrototype;
553 }
554
555 public void resetOriginalValues() {
556 _layoutSetPrototype.resetOriginalValues();
557 }
558
559 private LayoutSetPrototype _layoutSetPrototype;
560 }