001
014
015 package com.liferay.portlet.mobiledevicerules.model;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.lar.StagedModelType;
020 import com.liferay.portal.kernel.util.Validator;
021 import com.liferay.portal.model.ModelWrapper;
022
023 import java.util.Date;
024 import java.util.HashMap;
025 import java.util.Map;
026
027
036 @ProviderType
037 public class MDRRuleWrapper implements MDRRule, ModelWrapper<MDRRule> {
038 public MDRRuleWrapper(MDRRule mdrRule) {
039 _mdrRule = mdrRule;
040 }
041
042 @Override
043 public Class<?> getModelClass() {
044 return MDRRule.class;
045 }
046
047 @Override
048 public String getModelClassName() {
049 return MDRRule.class.getName();
050 }
051
052 @Override
053 public Map<String, Object> getModelAttributes() {
054 Map<String, Object> attributes = new HashMap<String, Object>();
055
056 attributes.put("uuid", getUuid());
057 attributes.put("ruleId", getRuleId());
058 attributes.put("groupId", getGroupId());
059 attributes.put("companyId", getCompanyId());
060 attributes.put("userId", getUserId());
061 attributes.put("userName", getUserName());
062 attributes.put("createDate", getCreateDate());
063 attributes.put("modifiedDate", getModifiedDate());
064 attributes.put("ruleGroupId", getRuleGroupId());
065 attributes.put("name", getName());
066 attributes.put("description", getDescription());
067 attributes.put("type", getType());
068 attributes.put("typeSettings", getTypeSettings());
069
070 return attributes;
071 }
072
073 @Override
074 public void setModelAttributes(Map<String, Object> attributes) {
075 String uuid = (String)attributes.get("uuid");
076
077 if (uuid != null) {
078 setUuid(uuid);
079 }
080
081 Long ruleId = (Long)attributes.get("ruleId");
082
083 if (ruleId != null) {
084 setRuleId(ruleId);
085 }
086
087 Long groupId = (Long)attributes.get("groupId");
088
089 if (groupId != null) {
090 setGroupId(groupId);
091 }
092
093 Long companyId = (Long)attributes.get("companyId");
094
095 if (companyId != null) {
096 setCompanyId(companyId);
097 }
098
099 Long userId = (Long)attributes.get("userId");
100
101 if (userId != null) {
102 setUserId(userId);
103 }
104
105 String userName = (String)attributes.get("userName");
106
107 if (userName != null) {
108 setUserName(userName);
109 }
110
111 Date createDate = (Date)attributes.get("createDate");
112
113 if (createDate != null) {
114 setCreateDate(createDate);
115 }
116
117 Date modifiedDate = (Date)attributes.get("modifiedDate");
118
119 if (modifiedDate != null) {
120 setModifiedDate(modifiedDate);
121 }
122
123 Long ruleGroupId = (Long)attributes.get("ruleGroupId");
124
125 if (ruleGroupId != null) {
126 setRuleGroupId(ruleGroupId);
127 }
128
129 String name = (String)attributes.get("name");
130
131 if (name != null) {
132 setName(name);
133 }
134
135 String description = (String)attributes.get("description");
136
137 if (description != null) {
138 setDescription(description);
139 }
140
141 String type = (String)attributes.get("type");
142
143 if (type != null) {
144 setType(type);
145 }
146
147 String typeSettings = (String)attributes.get("typeSettings");
148
149 if (typeSettings != null) {
150 setTypeSettings(typeSettings);
151 }
152 }
153
154
159 @Override
160 public long getPrimaryKey() {
161 return _mdrRule.getPrimaryKey();
162 }
163
164
169 @Override
170 public void setPrimaryKey(long primaryKey) {
171 _mdrRule.setPrimaryKey(primaryKey);
172 }
173
174
179 @Override
180 public java.lang.String getUuid() {
181 return _mdrRule.getUuid();
182 }
183
184
189 @Override
190 public void setUuid(java.lang.String uuid) {
191 _mdrRule.setUuid(uuid);
192 }
193
194
199 @Override
200 public long getRuleId() {
201 return _mdrRule.getRuleId();
202 }
203
204
209 @Override
210 public void setRuleId(long ruleId) {
211 _mdrRule.setRuleId(ruleId);
212 }
213
214
219 @Override
220 public long getGroupId() {
221 return _mdrRule.getGroupId();
222 }
223
224
229 @Override
230 public void setGroupId(long groupId) {
231 _mdrRule.setGroupId(groupId);
232 }
233
234
239 @Override
240 public long getCompanyId() {
241 return _mdrRule.getCompanyId();
242 }
243
244
249 @Override
250 public void setCompanyId(long companyId) {
251 _mdrRule.setCompanyId(companyId);
252 }
253
254
259 @Override
260 public long getUserId() {
261 return _mdrRule.getUserId();
262 }
263
264
269 @Override
270 public void setUserId(long userId) {
271 _mdrRule.setUserId(userId);
272 }
273
274
280 @Override
281 public java.lang.String getUserUuid()
282 throws com.liferay.portal.kernel.exception.SystemException {
283 return _mdrRule.getUserUuid();
284 }
285
286
291 @Override
292 public void setUserUuid(java.lang.String userUuid) {
293 _mdrRule.setUserUuid(userUuid);
294 }
295
296
301 @Override
302 public java.lang.String getUserName() {
303 return _mdrRule.getUserName();
304 }
305
306
311 @Override
312 public void setUserName(java.lang.String userName) {
313 _mdrRule.setUserName(userName);
314 }
315
316
321 @Override
322 public java.util.Date getCreateDate() {
323 return _mdrRule.getCreateDate();
324 }
325
326
331 @Override
332 public void setCreateDate(java.util.Date createDate) {
333 _mdrRule.setCreateDate(createDate);
334 }
335
336
341 @Override
342 public java.util.Date getModifiedDate() {
343 return _mdrRule.getModifiedDate();
344 }
345
346
351 @Override
352 public void setModifiedDate(java.util.Date modifiedDate) {
353 _mdrRule.setModifiedDate(modifiedDate);
354 }
355
356
361 @Override
362 public long getRuleGroupId() {
363 return _mdrRule.getRuleGroupId();
364 }
365
366
371 @Override
372 public void setRuleGroupId(long ruleGroupId) {
373 _mdrRule.setRuleGroupId(ruleGroupId);
374 }
375
376
381 @Override
382 public java.lang.String getName() {
383 return _mdrRule.getName();
384 }
385
386
392 @Override
393 public java.lang.String getName(java.util.Locale locale) {
394 return _mdrRule.getName(locale);
395 }
396
397
404 @Override
405 public java.lang.String getName(java.util.Locale locale, boolean useDefault) {
406 return _mdrRule.getName(locale, useDefault);
407 }
408
409
415 @Override
416 public java.lang.String getName(java.lang.String languageId) {
417 return _mdrRule.getName(languageId);
418 }
419
420
427 @Override
428 public java.lang.String getName(java.lang.String languageId,
429 boolean useDefault) {
430 return _mdrRule.getName(languageId, useDefault);
431 }
432
433 @Override
434 public java.lang.String getNameCurrentLanguageId() {
435 return _mdrRule.getNameCurrentLanguageId();
436 }
437
438 @Override
439 public java.lang.String getNameCurrentValue() {
440 return _mdrRule.getNameCurrentValue();
441 }
442
443
448 @Override
449 public java.util.Map<java.util.Locale, java.lang.String> getNameMap() {
450 return _mdrRule.getNameMap();
451 }
452
453
458 @Override
459 public void setName(java.lang.String name) {
460 _mdrRule.setName(name);
461 }
462
463
469 @Override
470 public void setName(java.lang.String name, java.util.Locale locale) {
471 _mdrRule.setName(name, locale);
472 }
473
474
481 @Override
482 public void setName(java.lang.String name, java.util.Locale locale,
483 java.util.Locale defaultLocale) {
484 _mdrRule.setName(name, locale, defaultLocale);
485 }
486
487 @Override
488 public void setNameCurrentLanguageId(java.lang.String languageId) {
489 _mdrRule.setNameCurrentLanguageId(languageId);
490 }
491
492
497 @Override
498 public void setNameMap(
499 java.util.Map<java.util.Locale, java.lang.String> nameMap) {
500 _mdrRule.setNameMap(nameMap);
501 }
502
503
509 @Override
510 public void setNameMap(
511 java.util.Map<java.util.Locale, java.lang.String> nameMap,
512 java.util.Locale defaultLocale) {
513 _mdrRule.setNameMap(nameMap, defaultLocale);
514 }
515
516
521 @Override
522 public java.lang.String getDescription() {
523 return _mdrRule.getDescription();
524 }
525
526
532 @Override
533 public java.lang.String getDescription(java.util.Locale locale) {
534 return _mdrRule.getDescription(locale);
535 }
536
537
544 @Override
545 public java.lang.String getDescription(java.util.Locale locale,
546 boolean useDefault) {
547 return _mdrRule.getDescription(locale, useDefault);
548 }
549
550
556 @Override
557 public java.lang.String getDescription(java.lang.String languageId) {
558 return _mdrRule.getDescription(languageId);
559 }
560
561
568 @Override
569 public java.lang.String getDescription(java.lang.String languageId,
570 boolean useDefault) {
571 return _mdrRule.getDescription(languageId, useDefault);
572 }
573
574 @Override
575 public java.lang.String getDescriptionCurrentLanguageId() {
576 return _mdrRule.getDescriptionCurrentLanguageId();
577 }
578
579 @Override
580 public java.lang.String getDescriptionCurrentValue() {
581 return _mdrRule.getDescriptionCurrentValue();
582 }
583
584
589 @Override
590 public java.util.Map<java.util.Locale, java.lang.String> getDescriptionMap() {
591 return _mdrRule.getDescriptionMap();
592 }
593
594
599 @Override
600 public void setDescription(java.lang.String description) {
601 _mdrRule.setDescription(description);
602 }
603
604
610 @Override
611 public void setDescription(java.lang.String description,
612 java.util.Locale locale) {
613 _mdrRule.setDescription(description, locale);
614 }
615
616
623 @Override
624 public void setDescription(java.lang.String description,
625 java.util.Locale locale, java.util.Locale defaultLocale) {
626 _mdrRule.setDescription(description, locale, defaultLocale);
627 }
628
629 @Override
630 public void setDescriptionCurrentLanguageId(java.lang.String languageId) {
631 _mdrRule.setDescriptionCurrentLanguageId(languageId);
632 }
633
634
639 @Override
640 public void setDescriptionMap(
641 java.util.Map<java.util.Locale, java.lang.String> descriptionMap) {
642 _mdrRule.setDescriptionMap(descriptionMap);
643 }
644
645
651 @Override
652 public void setDescriptionMap(
653 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
654 java.util.Locale defaultLocale) {
655 _mdrRule.setDescriptionMap(descriptionMap, defaultLocale);
656 }
657
658
663 @Override
664 public java.lang.String getType() {
665 return _mdrRule.getType();
666 }
667
668
673 @Override
674 public void setType(java.lang.String type) {
675 _mdrRule.setType(type);
676 }
677
678
683 @Override
684 public java.lang.String getTypeSettings() {
685 return _mdrRule.getTypeSettings();
686 }
687
688
693 @Override
694 public void setTypeSettings(java.lang.String typeSettings) {
695 _mdrRule.setTypeSettings(typeSettings);
696 }
697
698 @Override
699 public boolean isNew() {
700 return _mdrRule.isNew();
701 }
702
703 @Override
704 public void setNew(boolean n) {
705 _mdrRule.setNew(n);
706 }
707
708 @Override
709 public boolean isCachedModel() {
710 return _mdrRule.isCachedModel();
711 }
712
713 @Override
714 public void setCachedModel(boolean cachedModel) {
715 _mdrRule.setCachedModel(cachedModel);
716 }
717
718 @Override
719 public boolean isEscapedModel() {
720 return _mdrRule.isEscapedModel();
721 }
722
723 @Override
724 public java.io.Serializable getPrimaryKeyObj() {
725 return _mdrRule.getPrimaryKeyObj();
726 }
727
728 @Override
729 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
730 _mdrRule.setPrimaryKeyObj(primaryKeyObj);
731 }
732
733 @Override
734 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
735 return _mdrRule.getExpandoBridge();
736 }
737
738 @Override
739 public void setExpandoBridgeAttributes(
740 com.liferay.portal.model.BaseModel<?> baseModel) {
741 _mdrRule.setExpandoBridgeAttributes(baseModel);
742 }
743
744 @Override
745 public void setExpandoBridgeAttributes(
746 com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
747 _mdrRule.setExpandoBridgeAttributes(expandoBridge);
748 }
749
750 @Override
751 public void setExpandoBridgeAttributes(
752 com.liferay.portal.service.ServiceContext serviceContext) {
753 _mdrRule.setExpandoBridgeAttributes(serviceContext);
754 }
755
756 @Override
757 public java.lang.String[] getAvailableLanguageIds() {
758 return _mdrRule.getAvailableLanguageIds();
759 }
760
761 @Override
762 public java.lang.String getDefaultLanguageId() {
763 return _mdrRule.getDefaultLanguageId();
764 }
765
766 @Override
767 public void prepareLocalizedFieldsForImport()
768 throws com.liferay.portal.LocaleException {
769 _mdrRule.prepareLocalizedFieldsForImport();
770 }
771
772 @Override
773 public void prepareLocalizedFieldsForImport(
774 java.util.Locale defaultImportLocale)
775 throws com.liferay.portal.LocaleException {
776 _mdrRule.prepareLocalizedFieldsForImport(defaultImportLocale);
777 }
778
779 @Override
780 public java.lang.Object clone() {
781 return new MDRRuleWrapper((MDRRule)_mdrRule.clone());
782 }
783
784 @Override
785 public int compareTo(
786 com.liferay.portlet.mobiledevicerules.model.MDRRule mdrRule) {
787 return _mdrRule.compareTo(mdrRule);
788 }
789
790 @Override
791 public int hashCode() {
792 return _mdrRule.hashCode();
793 }
794
795 @Override
796 public com.liferay.portal.model.CacheModel<com.liferay.portlet.mobiledevicerules.model.MDRRule> toCacheModel() {
797 return _mdrRule.toCacheModel();
798 }
799
800 @Override
801 public com.liferay.portlet.mobiledevicerules.model.MDRRule toEscapedModel() {
802 return new MDRRuleWrapper(_mdrRule.toEscapedModel());
803 }
804
805 @Override
806 public com.liferay.portlet.mobiledevicerules.model.MDRRule toUnescapedModel() {
807 return new MDRRuleWrapper(_mdrRule.toUnescapedModel());
808 }
809
810 @Override
811 public java.lang.String toString() {
812 return _mdrRule.toString();
813 }
814
815 @Override
816 public java.lang.String toXmlString() {
817 return _mdrRule.toXmlString();
818 }
819
820 @Override
821 public void persist()
822 throws com.liferay.portal.kernel.exception.SystemException {
823 _mdrRule.persist();
824 }
825
826 @Override
827 public com.liferay.portal.kernel.util.UnicodeProperties getTypeSettingsProperties() {
828 return _mdrRule.getTypeSettingsProperties();
829 }
830
831 @Override
832 public void setTypeSettingsProperties(
833 com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties) {
834 _mdrRule.setTypeSettingsProperties(typeSettingsProperties);
835 }
836
837 @Override
838 public boolean equals(Object obj) {
839 if (this == obj) {
840 return true;
841 }
842
843 if (!(obj instanceof MDRRuleWrapper)) {
844 return false;
845 }
846
847 MDRRuleWrapper mdrRuleWrapper = (MDRRuleWrapper)obj;
848
849 if (Validator.equals(_mdrRule, mdrRuleWrapper._mdrRule)) {
850 return true;
851 }
852
853 return false;
854 }
855
856 @Override
857 public StagedModelType getStagedModelType() {
858 return _mdrRule.getStagedModelType();
859 }
860
861
864 public MDRRule getWrappedMDRRule() {
865 return _mdrRule;
866 }
867
868 @Override
869 public MDRRule getWrappedModel() {
870 return _mdrRule;
871 }
872
873 @Override
874 public void resetOriginalValues() {
875 _mdrRule.resetOriginalValues();
876 }
877
878 private MDRRule _mdrRule;
879 }