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 MDRActionWrapper implements MDRAction, ModelWrapper<MDRAction> {
038 public MDRActionWrapper(MDRAction mdrAction) {
039 _mdrAction = mdrAction;
040 }
041
042 @Override
043 public Class<?> getModelClass() {
044 return MDRAction.class;
045 }
046
047 @Override
048 public String getModelClassName() {
049 return MDRAction.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("actionId", getActionId());
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("classNameId", getClassNameId());
065 attributes.put("classPK", getClassPK());
066 attributes.put("ruleGroupInstanceId", getRuleGroupInstanceId());
067 attributes.put("name", getName());
068 attributes.put("description", getDescription());
069 attributes.put("type", getType());
070 attributes.put("typeSettings", getTypeSettings());
071
072 return attributes;
073 }
074
075 @Override
076 public void setModelAttributes(Map<String, Object> attributes) {
077 String uuid = (String)attributes.get("uuid");
078
079 if (uuid != null) {
080 setUuid(uuid);
081 }
082
083 Long actionId = (Long)attributes.get("actionId");
084
085 if (actionId != null) {
086 setActionId(actionId);
087 }
088
089 Long groupId = (Long)attributes.get("groupId");
090
091 if (groupId != null) {
092 setGroupId(groupId);
093 }
094
095 Long companyId = (Long)attributes.get("companyId");
096
097 if (companyId != null) {
098 setCompanyId(companyId);
099 }
100
101 Long userId = (Long)attributes.get("userId");
102
103 if (userId != null) {
104 setUserId(userId);
105 }
106
107 String userName = (String)attributes.get("userName");
108
109 if (userName != null) {
110 setUserName(userName);
111 }
112
113 Date createDate = (Date)attributes.get("createDate");
114
115 if (createDate != null) {
116 setCreateDate(createDate);
117 }
118
119 Date modifiedDate = (Date)attributes.get("modifiedDate");
120
121 if (modifiedDate != null) {
122 setModifiedDate(modifiedDate);
123 }
124
125 Long classNameId = (Long)attributes.get("classNameId");
126
127 if (classNameId != null) {
128 setClassNameId(classNameId);
129 }
130
131 Long classPK = (Long)attributes.get("classPK");
132
133 if (classPK != null) {
134 setClassPK(classPK);
135 }
136
137 Long ruleGroupInstanceId = (Long)attributes.get("ruleGroupInstanceId");
138
139 if (ruleGroupInstanceId != null) {
140 setRuleGroupInstanceId(ruleGroupInstanceId);
141 }
142
143 String name = (String)attributes.get("name");
144
145 if (name != null) {
146 setName(name);
147 }
148
149 String description = (String)attributes.get("description");
150
151 if (description != null) {
152 setDescription(description);
153 }
154
155 String type = (String)attributes.get("type");
156
157 if (type != null) {
158 setType(type);
159 }
160
161 String typeSettings = (String)attributes.get("typeSettings");
162
163 if (typeSettings != null) {
164 setTypeSettings(typeSettings);
165 }
166 }
167
168
173 @Override
174 public long getPrimaryKey() {
175 return _mdrAction.getPrimaryKey();
176 }
177
178
183 @Override
184 public void setPrimaryKey(long primaryKey) {
185 _mdrAction.setPrimaryKey(primaryKey);
186 }
187
188
193 @Override
194 public java.lang.String getUuid() {
195 return _mdrAction.getUuid();
196 }
197
198
203 @Override
204 public void setUuid(java.lang.String uuid) {
205 _mdrAction.setUuid(uuid);
206 }
207
208
213 @Override
214 public long getActionId() {
215 return _mdrAction.getActionId();
216 }
217
218
223 @Override
224 public void setActionId(long actionId) {
225 _mdrAction.setActionId(actionId);
226 }
227
228
233 @Override
234 public long getGroupId() {
235 return _mdrAction.getGroupId();
236 }
237
238
243 @Override
244 public void setGroupId(long groupId) {
245 _mdrAction.setGroupId(groupId);
246 }
247
248
253 @Override
254 public long getCompanyId() {
255 return _mdrAction.getCompanyId();
256 }
257
258
263 @Override
264 public void setCompanyId(long companyId) {
265 _mdrAction.setCompanyId(companyId);
266 }
267
268
273 @Override
274 public long getUserId() {
275 return _mdrAction.getUserId();
276 }
277
278
283 @Override
284 public void setUserId(long userId) {
285 _mdrAction.setUserId(userId);
286 }
287
288
294 @Override
295 public java.lang.String getUserUuid()
296 throws com.liferay.portal.kernel.exception.SystemException {
297 return _mdrAction.getUserUuid();
298 }
299
300
305 @Override
306 public void setUserUuid(java.lang.String userUuid) {
307 _mdrAction.setUserUuid(userUuid);
308 }
309
310
315 @Override
316 public java.lang.String getUserName() {
317 return _mdrAction.getUserName();
318 }
319
320
325 @Override
326 public void setUserName(java.lang.String userName) {
327 _mdrAction.setUserName(userName);
328 }
329
330
335 @Override
336 public java.util.Date getCreateDate() {
337 return _mdrAction.getCreateDate();
338 }
339
340
345 @Override
346 public void setCreateDate(java.util.Date createDate) {
347 _mdrAction.setCreateDate(createDate);
348 }
349
350
355 @Override
356 public java.util.Date getModifiedDate() {
357 return _mdrAction.getModifiedDate();
358 }
359
360
365 @Override
366 public void setModifiedDate(java.util.Date modifiedDate) {
367 _mdrAction.setModifiedDate(modifiedDate);
368 }
369
370
375 @Override
376 public java.lang.String getClassName() {
377 return _mdrAction.getClassName();
378 }
379
380 @Override
381 public void setClassName(java.lang.String className) {
382 _mdrAction.setClassName(className);
383 }
384
385
390 @Override
391 public long getClassNameId() {
392 return _mdrAction.getClassNameId();
393 }
394
395
400 @Override
401 public void setClassNameId(long classNameId) {
402 _mdrAction.setClassNameId(classNameId);
403 }
404
405
410 @Override
411 public long getClassPK() {
412 return _mdrAction.getClassPK();
413 }
414
415
420 @Override
421 public void setClassPK(long classPK) {
422 _mdrAction.setClassPK(classPK);
423 }
424
425
430 @Override
431 public long getRuleGroupInstanceId() {
432 return _mdrAction.getRuleGroupInstanceId();
433 }
434
435
440 @Override
441 public void setRuleGroupInstanceId(long ruleGroupInstanceId) {
442 _mdrAction.setRuleGroupInstanceId(ruleGroupInstanceId);
443 }
444
445
450 @Override
451 public java.lang.String getName() {
452 return _mdrAction.getName();
453 }
454
455
461 @Override
462 public java.lang.String getName(java.util.Locale locale) {
463 return _mdrAction.getName(locale);
464 }
465
466
473 @Override
474 public java.lang.String getName(java.util.Locale locale, boolean useDefault) {
475 return _mdrAction.getName(locale, useDefault);
476 }
477
478
484 @Override
485 public java.lang.String getName(java.lang.String languageId) {
486 return _mdrAction.getName(languageId);
487 }
488
489
496 @Override
497 public java.lang.String getName(java.lang.String languageId,
498 boolean useDefault) {
499 return _mdrAction.getName(languageId, useDefault);
500 }
501
502 @Override
503 public java.lang.String getNameCurrentLanguageId() {
504 return _mdrAction.getNameCurrentLanguageId();
505 }
506
507 @Override
508 public java.lang.String getNameCurrentValue() {
509 return _mdrAction.getNameCurrentValue();
510 }
511
512
517 @Override
518 public java.util.Map<java.util.Locale, java.lang.String> getNameMap() {
519 return _mdrAction.getNameMap();
520 }
521
522
527 @Override
528 public void setName(java.lang.String name) {
529 _mdrAction.setName(name);
530 }
531
532
538 @Override
539 public void setName(java.lang.String name, java.util.Locale locale) {
540 _mdrAction.setName(name, locale);
541 }
542
543
550 @Override
551 public void setName(java.lang.String name, java.util.Locale locale,
552 java.util.Locale defaultLocale) {
553 _mdrAction.setName(name, locale, defaultLocale);
554 }
555
556 @Override
557 public void setNameCurrentLanguageId(java.lang.String languageId) {
558 _mdrAction.setNameCurrentLanguageId(languageId);
559 }
560
561
566 @Override
567 public void setNameMap(
568 java.util.Map<java.util.Locale, java.lang.String> nameMap) {
569 _mdrAction.setNameMap(nameMap);
570 }
571
572
578 @Override
579 public void setNameMap(
580 java.util.Map<java.util.Locale, java.lang.String> nameMap,
581 java.util.Locale defaultLocale) {
582 _mdrAction.setNameMap(nameMap, defaultLocale);
583 }
584
585
590 @Override
591 public java.lang.String getDescription() {
592 return _mdrAction.getDescription();
593 }
594
595
601 @Override
602 public java.lang.String getDescription(java.util.Locale locale) {
603 return _mdrAction.getDescription(locale);
604 }
605
606
613 @Override
614 public java.lang.String getDescription(java.util.Locale locale,
615 boolean useDefault) {
616 return _mdrAction.getDescription(locale, useDefault);
617 }
618
619
625 @Override
626 public java.lang.String getDescription(java.lang.String languageId) {
627 return _mdrAction.getDescription(languageId);
628 }
629
630
637 @Override
638 public java.lang.String getDescription(java.lang.String languageId,
639 boolean useDefault) {
640 return _mdrAction.getDescription(languageId, useDefault);
641 }
642
643 @Override
644 public java.lang.String getDescriptionCurrentLanguageId() {
645 return _mdrAction.getDescriptionCurrentLanguageId();
646 }
647
648 @Override
649 public java.lang.String getDescriptionCurrentValue() {
650 return _mdrAction.getDescriptionCurrentValue();
651 }
652
653
658 @Override
659 public java.util.Map<java.util.Locale, java.lang.String> getDescriptionMap() {
660 return _mdrAction.getDescriptionMap();
661 }
662
663
668 @Override
669 public void setDescription(java.lang.String description) {
670 _mdrAction.setDescription(description);
671 }
672
673
679 @Override
680 public void setDescription(java.lang.String description,
681 java.util.Locale locale) {
682 _mdrAction.setDescription(description, locale);
683 }
684
685
692 @Override
693 public void setDescription(java.lang.String description,
694 java.util.Locale locale, java.util.Locale defaultLocale) {
695 _mdrAction.setDescription(description, locale, defaultLocale);
696 }
697
698 @Override
699 public void setDescriptionCurrentLanguageId(java.lang.String languageId) {
700 _mdrAction.setDescriptionCurrentLanguageId(languageId);
701 }
702
703
708 @Override
709 public void setDescriptionMap(
710 java.util.Map<java.util.Locale, java.lang.String> descriptionMap) {
711 _mdrAction.setDescriptionMap(descriptionMap);
712 }
713
714
720 @Override
721 public void setDescriptionMap(
722 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
723 java.util.Locale defaultLocale) {
724 _mdrAction.setDescriptionMap(descriptionMap, defaultLocale);
725 }
726
727
732 @Override
733 public java.lang.String getType() {
734 return _mdrAction.getType();
735 }
736
737
742 @Override
743 public void setType(java.lang.String type) {
744 _mdrAction.setType(type);
745 }
746
747
752 @Override
753 public java.lang.String getTypeSettings() {
754 return _mdrAction.getTypeSettings();
755 }
756
757
762 @Override
763 public void setTypeSettings(java.lang.String typeSettings) {
764 _mdrAction.setTypeSettings(typeSettings);
765 }
766
767 @Override
768 public boolean isNew() {
769 return _mdrAction.isNew();
770 }
771
772 @Override
773 public void setNew(boolean n) {
774 _mdrAction.setNew(n);
775 }
776
777 @Override
778 public boolean isCachedModel() {
779 return _mdrAction.isCachedModel();
780 }
781
782 @Override
783 public void setCachedModel(boolean cachedModel) {
784 _mdrAction.setCachedModel(cachedModel);
785 }
786
787 @Override
788 public boolean isEscapedModel() {
789 return _mdrAction.isEscapedModel();
790 }
791
792 @Override
793 public java.io.Serializable getPrimaryKeyObj() {
794 return _mdrAction.getPrimaryKeyObj();
795 }
796
797 @Override
798 public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
799 _mdrAction.setPrimaryKeyObj(primaryKeyObj);
800 }
801
802 @Override
803 public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
804 return _mdrAction.getExpandoBridge();
805 }
806
807 @Override
808 public void setExpandoBridgeAttributes(
809 com.liferay.portal.model.BaseModel<?> baseModel) {
810 _mdrAction.setExpandoBridgeAttributes(baseModel);
811 }
812
813 @Override
814 public void setExpandoBridgeAttributes(
815 com.liferay.portlet.expando.model.ExpandoBridge expandoBridge) {
816 _mdrAction.setExpandoBridgeAttributes(expandoBridge);
817 }
818
819 @Override
820 public void setExpandoBridgeAttributes(
821 com.liferay.portal.service.ServiceContext serviceContext) {
822 _mdrAction.setExpandoBridgeAttributes(serviceContext);
823 }
824
825 @Override
826 public java.lang.String[] getAvailableLanguageIds() {
827 return _mdrAction.getAvailableLanguageIds();
828 }
829
830 @Override
831 public java.lang.String getDefaultLanguageId() {
832 return _mdrAction.getDefaultLanguageId();
833 }
834
835 @Override
836 public void prepareLocalizedFieldsForImport()
837 throws com.liferay.portal.LocaleException {
838 _mdrAction.prepareLocalizedFieldsForImport();
839 }
840
841 @Override
842 public void prepareLocalizedFieldsForImport(
843 java.util.Locale defaultImportLocale)
844 throws com.liferay.portal.LocaleException {
845 _mdrAction.prepareLocalizedFieldsForImport(defaultImportLocale);
846 }
847
848 @Override
849 public java.lang.Object clone() {
850 return new MDRActionWrapper((MDRAction)_mdrAction.clone());
851 }
852
853 @Override
854 public int compareTo(
855 com.liferay.portlet.mobiledevicerules.model.MDRAction mdrAction) {
856 return _mdrAction.compareTo(mdrAction);
857 }
858
859 @Override
860 public int hashCode() {
861 return _mdrAction.hashCode();
862 }
863
864 @Override
865 public com.liferay.portal.model.CacheModel<com.liferay.portlet.mobiledevicerules.model.MDRAction> toCacheModel() {
866 return _mdrAction.toCacheModel();
867 }
868
869 @Override
870 public com.liferay.portlet.mobiledevicerules.model.MDRAction toEscapedModel() {
871 return new MDRActionWrapper(_mdrAction.toEscapedModel());
872 }
873
874 @Override
875 public com.liferay.portlet.mobiledevicerules.model.MDRAction toUnescapedModel() {
876 return new MDRActionWrapper(_mdrAction.toUnescapedModel());
877 }
878
879 @Override
880 public java.lang.String toString() {
881 return _mdrAction.toString();
882 }
883
884 @Override
885 public java.lang.String toXmlString() {
886 return _mdrAction.toXmlString();
887 }
888
889 @Override
890 public void persist()
891 throws com.liferay.portal.kernel.exception.SystemException {
892 _mdrAction.persist();
893 }
894
895 @Override
896 public com.liferay.portal.kernel.util.UnicodeProperties getTypeSettingsProperties() {
897 return _mdrAction.getTypeSettingsProperties();
898 }
899
900 @Override
901 public void setTypeSettingsProperties(
902 com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties) {
903 _mdrAction.setTypeSettingsProperties(typeSettingsProperties);
904 }
905
906 @Override
907 public boolean equals(Object obj) {
908 if (this == obj) {
909 return true;
910 }
911
912 if (!(obj instanceof MDRActionWrapper)) {
913 return false;
914 }
915
916 MDRActionWrapper mdrActionWrapper = (MDRActionWrapper)obj;
917
918 if (Validator.equals(_mdrAction, mdrActionWrapper._mdrAction)) {
919 return true;
920 }
921
922 return false;
923 }
924
925 @Override
926 public StagedModelType getStagedModelType() {
927 return _mdrAction.getStagedModelType();
928 }
929
930
933 public MDRAction getWrappedMDRAction() {
934 return _mdrAction;
935 }
936
937 @Override
938 public MDRAction getWrappedModel() {
939 return _mdrAction;
940 }
941
942 @Override
943 public void resetOriginalValues() {
944 _mdrAction.resetOriginalValues();
945 }
946
947 private MDRAction _mdrAction;
948 }