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 JournalTemplateWrapper implements JournalTemplate,
034 ModelWrapper<JournalTemplate> {
035 public JournalTemplateWrapper(JournalTemplate journalTemplate) {
036 _journalTemplate = journalTemplate;
037 }
038
039 public Class<?> getModelClass() {
040 return JournalTemplate.class;
041 }
042
043 public String getModelClassName() {
044 return JournalTemplate.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("templateId", getTemplateId());
059 attributes.put("structureId", getStructureId());
060 attributes.put("name", getName());
061 attributes.put("description", getDescription());
062 attributes.put("xsl", getXsl());
063 attributes.put("langType", getLangType());
064 attributes.put("cacheable", getCacheable());
065 attributes.put("smallImage", getSmallImage());
066 attributes.put("smallImageId", getSmallImageId());
067 attributes.put("smallImageURL", getSmallImageURL());
068
069 return attributes;
070 }
071
072 public void setModelAttributes(Map<String, Object> attributes) {
073 String uuid = (String)attributes.get("uuid");
074
075 if (uuid != null) {
076 setUuid(uuid);
077 }
078
079 Long id = (Long)attributes.get("id");
080
081 if (id != null) {
082 setId(id);
083 }
084
085 Long groupId = (Long)attributes.get("groupId");
086
087 if (groupId != null) {
088 setGroupId(groupId);
089 }
090
091 Long companyId = (Long)attributes.get("companyId");
092
093 if (companyId != null) {
094 setCompanyId(companyId);
095 }
096
097 Long userId = (Long)attributes.get("userId");
098
099 if (userId != null) {
100 setUserId(userId);
101 }
102
103 String userName = (String)attributes.get("userName");
104
105 if (userName != null) {
106 setUserName(userName);
107 }
108
109 Date createDate = (Date)attributes.get("createDate");
110
111 if (createDate != null) {
112 setCreateDate(createDate);
113 }
114
115 Date modifiedDate = (Date)attributes.get("modifiedDate");
116
117 if (modifiedDate != null) {
118 setModifiedDate(modifiedDate);
119 }
120
121 String templateId = (String)attributes.get("templateId");
122
123 if (templateId != null) {
124 setTemplateId(templateId);
125 }
126
127 String structureId = (String)attributes.get("structureId");
128
129 if (structureId != null) {
130 setStructureId(structureId);
131 }
132
133 String name = (String)attributes.get("name");
134
135 if (name != null) {
136 setName(name);
137 }
138
139 String description = (String)attributes.get("description");
140
141 if (description != null) {
142 setDescription(description);
143 }
144
145 String xsl = (String)attributes.get("xsl");
146
147 if (xsl != null) {
148 setXsl(xsl);
149 }
150
151 String langType = (String)attributes.get("langType");
152
153 if (langType != null) {
154 setLangType(langType);
155 }
156
157 Boolean cacheable = (Boolean)attributes.get("cacheable");
158
159 if (cacheable != null) {
160 setCacheable(cacheable);
161 }
162
163 Boolean smallImage = (Boolean)attributes.get("smallImage");
164
165 if (smallImage != null) {
166 setSmallImage(smallImage);
167 }
168
169 Long smallImageId = (Long)attributes.get("smallImageId");
170
171 if (smallImageId != null) {
172 setSmallImageId(smallImageId);
173 }
174
175 String smallImageURL = (String)attributes.get("smallImageURL");
176
177 if (smallImageURL != null) {
178 setSmallImageURL(smallImageURL);
179 }
180 }
181
182
187 public long getPrimaryKey() {
188 return _journalTemplate.getPrimaryKey();
189 }
190
191
196 public void setPrimaryKey(long primaryKey) {
197 _journalTemplate.setPrimaryKey(primaryKey);
198 }
199
200
205 public java.lang.String getUuid() {
206 return _journalTemplate.getUuid();
207 }
208
209
214 public void setUuid(java.lang.String uuid) {
215 _journalTemplate.setUuid(uuid);
216 }
217
218
223 public long getId() {
224 return _journalTemplate.getId();
225 }
226
227
232 public void setId(long id) {
233 _journalTemplate.setId(id);
234 }
235
236
241 public long getGroupId() {
242 return _journalTemplate.getGroupId();
243 }
244
245
250 public void setGroupId(long groupId) {
251 _journalTemplate.setGroupId(groupId);
252 }
253
254
259 public long getCompanyId() {
260 return _journalTemplate.getCompanyId();
261 }
262
263
268 public void setCompanyId(long companyId) {
269 _journalTemplate.setCompanyId(companyId);
270 }
271
272
277 public long getUserId() {
278 return _journalTemplate.getUserId();
279 }
280
281
286 public void setUserId(long userId) {
287 _journalTemplate.setUserId(userId);
288 }
289
290
296 public java.lang.String getUserUuid()
297 throws com.liferay.portal.kernel.exception.SystemException {
298 return _journalTemplate.getUserUuid();
299 }
300
301
306 public void setUserUuid(java.lang.String userUuid) {
307 _journalTemplate.setUserUuid(userUuid);
308 }
309
310
315 public java.lang.String getUserName() {
316 return _journalTemplate.getUserName();
317 }
318
319
324 public void setUserName(java.lang.String userName) {
325 _journalTemplate.setUserName(userName);
326 }
327
328
333 public java.util.Date getCreateDate() {
334 return _journalTemplate.getCreateDate();
335 }
336
337
342 public void setCreateDate(java.util.Date createDate) {
343 _journalTemplate.setCreateDate(createDate);
344 }
345
346
351 public java.util.Date getModifiedDate() {
352 return _journalTemplate.getModifiedDate();
353 }
354
355
360 public void setModifiedDate(java.util.Date modifiedDate) {
361 _journalTemplate.setModifiedDate(modifiedDate);
362 }
363
364
369 public java.lang.String getTemplateId() {
370 return _journalTemplate.getTemplateId();
371 }
372
373
378 public void setTemplateId(java.lang.String templateId) {
379 _journalTemplate.setTemplateId(templateId);
380 }
381
382
387 public java.lang.String getStructureId() {
388 return _journalTemplate.getStructureId();
389 }
390
391
396 public void setStructureId(java.lang.String structureId) {
397 _journalTemplate.setStructureId(structureId);
398 }
399
400
405 public java.lang.String getName() {
406 return _journalTemplate.getName();
407 }
408
409
415 public java.lang.String getName(java.util.Locale locale) {
416 return _journalTemplate.getName(locale);
417 }
418
419
426 public java.lang.String getName(java.util.Locale locale, boolean useDefault) {
427 return _journalTemplate.getName(locale, useDefault);
428 }
429
430
436 public java.lang.String getName(java.lang.String languageId) {
437 return _journalTemplate.getName(languageId);
438 }
439
440
447 public java.lang.String getName(java.lang.String languageId,
448 boolean useDefault) {
449 return _journalTemplate.getName(languageId, useDefault);
450 }
451
452 public java.lang.String getNameCurrentLanguageId() {
453 return _journalTemplate.getNameCurrentLanguageId();
454 }
455
456 public java.lang.String getNameCurrentValue() {
457 return _journalTemplate.getNameCurrentValue();
458 }
459
460
465 public java.util.Map<java.util.Locale, java.lang.String> getNameMap() {
466 return _journalTemplate.getNameMap();
467 }
468
469
474 public void setName(java.lang.String name) {
475 _journalTemplate.setName(name);
476 }
477
478
484 public void setName(java.lang.String name, java.util.Locale locale) {
485 _journalTemplate.setName(name, locale);
486 }
487
488
495 public void setName(java.lang.String name, java.util.Locale locale,
496 java.util.Locale defaultLocale) {
497 _journalTemplate.setName(name, locale, defaultLocale);
498 }
499
500 public void setNameCurrentLanguageId(java.lang.String languageId) {
501 _journalTemplate.setNameCurrentLanguageId(languageId);
502 }
503
504
509 public void setNameMap(
510 java.util.Map<java.util.Locale, java.lang.String> nameMap) {
511 _journalTemplate.setNameMap(nameMap);
512 }
513
514
520 public void setNameMap(
521 java.util.Map<java.util.Locale, java.lang.String> nameMap,
522 java.util.Locale defaultLocale) {
523 _journalTemplate.setNameMap(nameMap, defaultLocale);
524 }
525
526
531 public java.lang.String getDescription() {
532 return _journalTemplate.getDescription();
533 }
534
535
541 public java.lang.String getDescription(java.util.Locale locale) {
542 return _journalTemplate.getDescription(locale);
543 }
544
545
552 public java.lang.String getDescription(java.util.Locale locale,
553 boolean useDefault) {
554 return _journalTemplate.getDescription(locale, useDefault);
555 }
556
557
563 public java.lang.String getDescription(java.lang.String languageId) {
564 return _journalTemplate.getDescription(languageId);
565 }
566
567
574 public java.lang.String getDescription(java.lang.String languageId,
575 boolean useDefault) {
576 return _journalTemplate.getDescription(languageId, useDefault);
577 }
578
579 public java.lang.String getDescriptionCurrentLanguageId() {
580 return _journalTemplate.getDescriptionCurrentLanguageId();
581 }
582
583 public java.lang.String getDescriptionCurrentValue() {
584 return _journalTemplate.getDescriptionCurrentValue();
585 }
586
587
592 public java.util.Map<java.util.Locale, java.lang.String> getDescriptionMap() {
593 return _journalTemplate.getDescriptionMap();
594 }
595
596
601 public void setDescription(java.lang.String description) {
602 _journalTemplate.setDescription(description);
603 }
604
605
611 public void setDescription(java.lang.String description,
612 java.util.Locale locale) {
613 _journalTemplate.setDescription(description, locale);
614 }
615
616
623 public void setDescription(java.lang.String description,
624 java.util.Locale locale, java.util.Locale defaultLocale) {
625 _journalTemplate.setDescription(description, locale, defaultLocale);
626 }
627
628 public void setDescriptionCurrentLanguageId(java.lang.String languageId) {
629 _journalTemplate.setDescriptionCurrentLanguageId(languageId);
630 }
631
632
637 public void setDescriptionMap(
638 java.util.Map<java.util.Locale, java.lang.String> descriptionMap) {
639 _journalTemplate.setDescriptionMap(descriptionMap);
640 }
641
642
648 public void setDescriptionMap(
649 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
650 java.util.Locale defaultLocale) {
651 _journalTemplate.setDescriptionMap(descriptionMap, defaultLocale);
652 }
653
654
659 public java.lang.String getXsl() {
660 return _journalTemplate.getXsl();
661 }
662
663
668 public void setXsl(java.lang.String xsl) {
669 _journalTemplate.setXsl(xsl);
670 }
671
672
677 public java.lang.String getLangType() {
678 return _journalTemplate.getLangType();
679 }
680
681
686 public void setLangType(java.lang.String langType) {
687 _journalTemplate.setLangType(langType);
688 }
689
690
695 public boolean getCacheable() {
696 return _journalTemplate.getCacheable();
697 }
698
699
704 public boolean isCacheable() {
705 return _journalTemplate.isCacheable();
706 }
707
708
713 public void setCacheable(boolean cacheable) {
714 _journalTemplate.setCacheable(cacheable);
715 }
716
717
722 public boolean getSmallImage() {
723 return _journalTemplate.getSmallImage();
724 }
725
726
731 public boolean isSmallImage() {
732 return _journalTemplate.isSmallImage();
733 }
734
735
740 public void setSmallImage(boolean smallImage) {
741 _journalTemplate.setSmallImage(smallImage);
742 }
743
744
749 public long getSmallImageId() {
750 return _journalTemplate.getSmallImageId();
751 }
752
753
758 public void setSmallImageId(long smallImageId) {
759 _journalTemplate.setSmallImageId(smallImageId);
760 }
761
762
767 public java.lang.String getSmallImageURL() {
768 return _journalTemplate.getSmallImageURL();
769 }
770
771
776 public void setSmallImageURL(java.lang.String smallImageURL) {
777 _journalTemplate.setSmallImageURL(smallImageURL);
778 }
779
780 public boolean isNew() {
781 return _journalTemplate.isNew();
782 }
783
784 public void setNew(boolean n) {
785 _journalTemplate.setNew(n);
786 }
787
788 public boolean isCachedModel() {
789 return _journalTemplate.isCachedModel();
790 }
791
792 public void setCachedModel(boolean cachedModel) {
793 _journalTemplate.setCachedModel(cachedModel);
794 }
795
796 public boolean isEscapedModel() {
797 return _journalTemplate.isEscapedModel();
798 }
799
800 public java.io.Serializable getPrimaryKeyObj() {
801 return _journalTemplate.getPrimaryKeyObj();
802 }
803
804 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
805 _journalTemplate.setPrimaryKeyObj(primaryKeyObj);
806 }
807
808 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
809 return _journalTemplate.getExpandoBridge();
810 }
811
812 public void setExpandoBridgeAttributes(
813 com.liferay.portal.service.ServiceContext serviceContext) {
814 _journalTemplate.setExpandoBridgeAttributes(serviceContext);
815 }
816
817 public void prepareLocalizedFieldsForImport(
818 java.util.Locale defaultImportLocale)
819 throws com.liferay.portal.LocaleException {
820 _journalTemplate.prepareLocalizedFieldsForImport(defaultImportLocale);
821 }
822
823 @Override
824 public java.lang.Object clone() {
825 return new JournalTemplateWrapper((JournalTemplate)_journalTemplate.clone());
826 }
827
828 public int compareTo(
829 com.liferay.portlet.journal.model.JournalTemplate journalTemplate) {
830 return _journalTemplate.compareTo(journalTemplate);
831 }
832
833 @Override
834 public int hashCode() {
835 return _journalTemplate.hashCode();
836 }
837
838 public com.liferay.portal.model.CacheModel<com.liferay.portlet.journal.model.JournalTemplate> toCacheModel() {
839 return _journalTemplate.toCacheModel();
840 }
841
842 public com.liferay.portlet.journal.model.JournalTemplate toEscapedModel() {
843 return new JournalTemplateWrapper(_journalTemplate.toEscapedModel());
844 }
845
846 public com.liferay.portlet.journal.model.JournalTemplate toUnescapedModel() {
847 return new JournalTemplateWrapper(_journalTemplate.toUnescapedModel());
848 }
849
850 @Override
851 public java.lang.String toString() {
852 return _journalTemplate.toString();
853 }
854
855 public java.lang.String toXmlString() {
856 return _journalTemplate.toXmlString();
857 }
858
859 public void persist()
860 throws com.liferay.portal.kernel.exception.SystemException {
861 _journalTemplate.persist();
862 }
863
864 public java.lang.String getSmallImageType()
865 throws com.liferay.portal.kernel.exception.PortalException,
866 com.liferay.portal.kernel.exception.SystemException {
867 return _journalTemplate.getSmallImageType();
868 }
869
870 public void setSmallImageType(java.lang.String smallImageType) {
871 _journalTemplate.setSmallImageType(smallImageType);
872 }
873
874 @Override
875 public boolean equals(Object obj) {
876 if (this == obj) {
877 return true;
878 }
879
880 if (!(obj instanceof JournalTemplateWrapper)) {
881 return false;
882 }
883
884 JournalTemplateWrapper journalTemplateWrapper = (JournalTemplateWrapper)obj;
885
886 if (Validator.equals(_journalTemplate,
887 journalTemplateWrapper._journalTemplate)) {
888 return true;
889 }
890
891 return false;
892 }
893
894
897 public JournalTemplate getWrappedJournalTemplate() {
898 return _journalTemplate;
899 }
900
901 public JournalTemplate getWrappedModel() {
902 return _journalTemplate;
903 }
904
905 public void resetOriginalValues() {
906 _journalTemplate.resetOriginalValues();
907 }
908
909 private JournalTemplate _journalTemplate;
910 }