001
014
015 package com.liferay.portlet.journal.model;
016
017 import com.liferay.portal.kernel.util.Validator;
018 import com.liferay.portal.model.ModelWrapper;
019
020 import java.util.Date;
021 import java.util.HashMap;
022 import java.util.Map;
023
024
033 public class JournalStructureWrapper implements JournalStructure,
034 ModelWrapper<JournalStructure> {
035 public JournalStructureWrapper(JournalStructure journalStructure) {
036 _journalStructure = journalStructure;
037 }
038
039 public Class<?> getModelClass() {
040 return JournalStructure.class;
041 }
042
043 public String getModelClassName() {
044 return JournalStructure.class.getName();
045 }
046
047 public Map<String, Object> getModelAttributes() {
048 Map<String, Object> attributes = new HashMap<String, Object>();
049
050 attributes.put("uuid", getUuid());
051 attributes.put("id", getId());
052 attributes.put("groupId", getGroupId());
053 attributes.put("companyId", getCompanyId());
054 attributes.put("userId", getUserId());
055 attributes.put("userName", getUserName());
056 attributes.put("createDate", getCreateDate());
057 attributes.put("modifiedDate", getModifiedDate());
058 attributes.put("structureId", getStructureId());
059 attributes.put("parentStructureId", getParentStructureId());
060 attributes.put("name", getName());
061 attributes.put("description", getDescription());
062 attributes.put("xsd", getXsd());
063
064 return attributes;
065 }
066
067 public void setModelAttributes(Map<String, Object> attributes) {
068 String uuid = (String)attributes.get("uuid");
069
070 if (uuid != null) {
071 setUuid(uuid);
072 }
073
074 Long id = (Long)attributes.get("id");
075
076 if (id != null) {
077 setId(id);
078 }
079
080 Long groupId = (Long)attributes.get("groupId");
081
082 if (groupId != null) {
083 setGroupId(groupId);
084 }
085
086 Long companyId = (Long)attributes.get("companyId");
087
088 if (companyId != null) {
089 setCompanyId(companyId);
090 }
091
092 Long userId = (Long)attributes.get("userId");
093
094 if (userId != null) {
095 setUserId(userId);
096 }
097
098 String userName = (String)attributes.get("userName");
099
100 if (userName != null) {
101 setUserName(userName);
102 }
103
104 Date createDate = (Date)attributes.get("createDate");
105
106 if (createDate != null) {
107 setCreateDate(createDate);
108 }
109
110 Date modifiedDate = (Date)attributes.get("modifiedDate");
111
112 if (modifiedDate != null) {
113 setModifiedDate(modifiedDate);
114 }
115
116 String structureId = (String)attributes.get("structureId");
117
118 if (structureId != null) {
119 setStructureId(structureId);
120 }
121
122 String parentStructureId = (String)attributes.get("parentStructureId");
123
124 if (parentStructureId != null) {
125 setParentStructureId(parentStructureId);
126 }
127
128 String name = (String)attributes.get("name");
129
130 if (name != null) {
131 setName(name);
132 }
133
134 String description = (String)attributes.get("description");
135
136 if (description != null) {
137 setDescription(description);
138 }
139
140 String xsd = (String)attributes.get("xsd");
141
142 if (xsd != null) {
143 setXsd(xsd);
144 }
145 }
146
147
152 public long getPrimaryKey() {
153 return _journalStructure.getPrimaryKey();
154 }
155
156
161 public void setPrimaryKey(long primaryKey) {
162 _journalStructure.setPrimaryKey(primaryKey);
163 }
164
165
170 public java.lang.String getUuid() {
171 return _journalStructure.getUuid();
172 }
173
174
179 public void setUuid(java.lang.String uuid) {
180 _journalStructure.setUuid(uuid);
181 }
182
183
188 public long getId() {
189 return _journalStructure.getId();
190 }
191
192
197 public void setId(long id) {
198 _journalStructure.setId(id);
199 }
200
201
206 public long getGroupId() {
207 return _journalStructure.getGroupId();
208 }
209
210
215 public void setGroupId(long groupId) {
216 _journalStructure.setGroupId(groupId);
217 }
218
219
224 public long getCompanyId() {
225 return _journalStructure.getCompanyId();
226 }
227
228
233 public void setCompanyId(long companyId) {
234 _journalStructure.setCompanyId(companyId);
235 }
236
237
242 public long getUserId() {
243 return _journalStructure.getUserId();
244 }
245
246
251 public void setUserId(long userId) {
252 _journalStructure.setUserId(userId);
253 }
254
255
261 public java.lang.String getUserUuid()
262 throws com.liferay.portal.kernel.exception.SystemException {
263 return _journalStructure.getUserUuid();
264 }
265
266
271 public void setUserUuid(java.lang.String userUuid) {
272 _journalStructure.setUserUuid(userUuid);
273 }
274
275
280 public java.lang.String getUserName() {
281 return _journalStructure.getUserName();
282 }
283
284
289 public void setUserName(java.lang.String userName) {
290 _journalStructure.setUserName(userName);
291 }
292
293
298 public java.util.Date getCreateDate() {
299 return _journalStructure.getCreateDate();
300 }
301
302
307 public void setCreateDate(java.util.Date createDate) {
308 _journalStructure.setCreateDate(createDate);
309 }
310
311
316 public java.util.Date getModifiedDate() {
317 return _journalStructure.getModifiedDate();
318 }
319
320
325 public void setModifiedDate(java.util.Date modifiedDate) {
326 _journalStructure.setModifiedDate(modifiedDate);
327 }
328
329
334 public java.lang.String getStructureId() {
335 return _journalStructure.getStructureId();
336 }
337
338
343 public void setStructureId(java.lang.String structureId) {
344 _journalStructure.setStructureId(structureId);
345 }
346
347
352 public java.lang.String getParentStructureId() {
353 return _journalStructure.getParentStructureId();
354 }
355
356
361 public void setParentStructureId(java.lang.String parentStructureId) {
362 _journalStructure.setParentStructureId(parentStructureId);
363 }
364
365
370 public java.lang.String getName() {
371 return _journalStructure.getName();
372 }
373
374
380 public java.lang.String getName(java.util.Locale locale) {
381 return _journalStructure.getName(locale);
382 }
383
384
391 public java.lang.String getName(java.util.Locale locale, boolean useDefault) {
392 return _journalStructure.getName(locale, useDefault);
393 }
394
395
401 public java.lang.String getName(java.lang.String languageId) {
402 return _journalStructure.getName(languageId);
403 }
404
405
412 public java.lang.String getName(java.lang.String languageId,
413 boolean useDefault) {
414 return _journalStructure.getName(languageId, useDefault);
415 }
416
417 public java.lang.String getNameCurrentLanguageId() {
418 return _journalStructure.getNameCurrentLanguageId();
419 }
420
421 public java.lang.String getNameCurrentValue() {
422 return _journalStructure.getNameCurrentValue();
423 }
424
425
430 public java.util.Map<java.util.Locale, java.lang.String> getNameMap() {
431 return _journalStructure.getNameMap();
432 }
433
434
439 public void setName(java.lang.String name) {
440 _journalStructure.setName(name);
441 }
442
443
449 public void setName(java.lang.String name, java.util.Locale locale) {
450 _journalStructure.setName(name, locale);
451 }
452
453
460 public void setName(java.lang.String name, java.util.Locale locale,
461 java.util.Locale defaultLocale) {
462 _journalStructure.setName(name, locale, defaultLocale);
463 }
464
465 public void setNameCurrentLanguageId(java.lang.String languageId) {
466 _journalStructure.setNameCurrentLanguageId(languageId);
467 }
468
469
474 public void setNameMap(
475 java.util.Map<java.util.Locale, java.lang.String> nameMap) {
476 _journalStructure.setNameMap(nameMap);
477 }
478
479
485 public void setNameMap(
486 java.util.Map<java.util.Locale, java.lang.String> nameMap,
487 java.util.Locale defaultLocale) {
488 _journalStructure.setNameMap(nameMap, defaultLocale);
489 }
490
491
496 public java.lang.String getDescription() {
497 return _journalStructure.getDescription();
498 }
499
500
506 public java.lang.String getDescription(java.util.Locale locale) {
507 return _journalStructure.getDescription(locale);
508 }
509
510
517 public java.lang.String getDescription(java.util.Locale locale,
518 boolean useDefault) {
519 return _journalStructure.getDescription(locale, useDefault);
520 }
521
522
528 public java.lang.String getDescription(java.lang.String languageId) {
529 return _journalStructure.getDescription(languageId);
530 }
531
532
539 public java.lang.String getDescription(java.lang.String languageId,
540 boolean useDefault) {
541 return _journalStructure.getDescription(languageId, useDefault);
542 }
543
544 public java.lang.String getDescriptionCurrentLanguageId() {
545 return _journalStructure.getDescriptionCurrentLanguageId();
546 }
547
548 public java.lang.String getDescriptionCurrentValue() {
549 return _journalStructure.getDescriptionCurrentValue();
550 }
551
552
557 public java.util.Map<java.util.Locale, java.lang.String> getDescriptionMap() {
558 return _journalStructure.getDescriptionMap();
559 }
560
561
566 public void setDescription(java.lang.String description) {
567 _journalStructure.setDescription(description);
568 }
569
570
576 public void setDescription(java.lang.String description,
577 java.util.Locale locale) {
578 _journalStructure.setDescription(description, locale);
579 }
580
581
588 public void setDescription(java.lang.String description,
589 java.util.Locale locale, java.util.Locale defaultLocale) {
590 _journalStructure.setDescription(description, locale, defaultLocale);
591 }
592
593 public void setDescriptionCurrentLanguageId(java.lang.String languageId) {
594 _journalStructure.setDescriptionCurrentLanguageId(languageId);
595 }
596
597
602 public void setDescriptionMap(
603 java.util.Map<java.util.Locale, java.lang.String> descriptionMap) {
604 _journalStructure.setDescriptionMap(descriptionMap);
605 }
606
607
613 public void setDescriptionMap(
614 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
615 java.util.Locale defaultLocale) {
616 _journalStructure.setDescriptionMap(descriptionMap, defaultLocale);
617 }
618
619
624 public java.lang.String getXsd() {
625 return _journalStructure.getXsd();
626 }
627
628
633 public void setXsd(java.lang.String xsd) {
634 _journalStructure.setXsd(xsd);
635 }
636
637 public boolean isNew() {
638 return _journalStructure.isNew();
639 }
640
641 public void setNew(boolean n) {
642 _journalStructure.setNew(n);
643 }
644
645 public boolean isCachedModel() {
646 return _journalStructure.isCachedModel();
647 }
648
649 public void setCachedModel(boolean cachedModel) {
650 _journalStructure.setCachedModel(cachedModel);
651 }
652
653 public boolean isEscapedModel() {
654 return _journalStructure.isEscapedModel();
655 }
656
657 public java.io.Serializable getPrimaryKeyObj() {
658 return _journalStructure.getPrimaryKeyObj();
659 }
660
661 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
662 _journalStructure.setPrimaryKeyObj(primaryKeyObj);
663 }
664
665 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
666 return _journalStructure.getExpandoBridge();
667 }
668
669 public void setExpandoBridgeAttributes(
670 com.liferay.portal.service.ServiceContext serviceContext) {
671 _journalStructure.setExpandoBridgeAttributes(serviceContext);
672 }
673
674 public void prepareLocalizedFieldsForImport(
675 java.util.Locale defaultImportLocale)
676 throws com.liferay.portal.LocaleException {
677 _journalStructure.prepareLocalizedFieldsForImport(defaultImportLocale);
678 }
679
680 @Override
681 public java.lang.Object clone() {
682 return new JournalStructureWrapper((JournalStructure)_journalStructure.clone());
683 }
684
685 public int compareTo(
686 com.liferay.portlet.journal.model.JournalStructure journalStructure) {
687 return _journalStructure.compareTo(journalStructure);
688 }
689
690 @Override
691 public int hashCode() {
692 return _journalStructure.hashCode();
693 }
694
695 public com.liferay.portal.model.CacheModel<com.liferay.portlet.journal.model.JournalStructure> toCacheModel() {
696 return _journalStructure.toCacheModel();
697 }
698
699 public com.liferay.portlet.journal.model.JournalStructure toEscapedModel() {
700 return new JournalStructureWrapper(_journalStructure.toEscapedModel());
701 }
702
703 public com.liferay.portlet.journal.model.JournalStructure toUnescapedModel() {
704 return new JournalStructureWrapper(_journalStructure.toUnescapedModel());
705 }
706
707 @Override
708 public java.lang.String toString() {
709 return _journalStructure.toString();
710 }
711
712 public java.lang.String toXmlString() {
713 return _journalStructure.toXmlString();
714 }
715
716 public void persist()
717 throws com.liferay.portal.kernel.exception.SystemException {
718 _journalStructure.persist();
719 }
720
721 public java.lang.String getMergedXsd() {
722 return _journalStructure.getMergedXsd();
723 }
724
725 @Override
726 public boolean equals(Object obj) {
727 if (this == obj) {
728 return true;
729 }
730
731 if (!(obj instanceof JournalStructureWrapper)) {
732 return false;
733 }
734
735 JournalStructureWrapper journalStructureWrapper = (JournalStructureWrapper)obj;
736
737 if (Validator.equals(_journalStructure,
738 journalStructureWrapper._journalStructure)) {
739 return true;
740 }
741
742 return false;
743 }
744
745
748 public JournalStructure getWrappedJournalStructure() {
749 return _journalStructure;
750 }
751
752 public JournalStructure getWrappedModel() {
753 return _journalStructure;
754 }
755
756 public void resetOriginalValues() {
757 _journalStructure.resetOriginalValues();
758 }
759
760 private JournalStructure _journalStructure;
761 }