Commit 77de9da2a8ba23442b8a974450e005a1f0963aa9

Authored by AndrewVolosytnykhThingsboard
Committed by Andrew Shvayka
1 parent 1c78a59f

DynamicValue: Rename 'useInherit' to correct name 'inheritMode'

... ... @@ -30,7 +30,7 @@ public class DynamicValue<T> {
30 30 public DynamicValue(DynamicValueSourceType sourceType, String sourceAttribute) {
31 31 this.sourceAttribute = sourceAttribute;
32 32 this.sourceType = sourceType;
33   - this.useInherit = false;
  33 + this.inheritMode = false;
34 34 }
35 35
36 36 @Getter
... ... @@ -38,6 +38,6 @@ public class DynamicValue<T> {
38 38 @Getter
39 39 private final String sourceAttribute;
40 40 @Getter
41   - private final boolean useInherit;
  41 + private final boolean inheritMode;
42 42
43 43 }
... ...
... ... @@ -393,7 +393,7 @@ class AlarmRuleState {
393 393 break;
394 394 case CURRENT_CUSTOMER:
395 395 ekv = dynamicPredicateValueCtx.getCustomerValue(value.getDynamicValue().getSourceAttribute());
396   - if(ekv == null && value.getDynamicValue().getUseInherit()) {
  396 + if(ekv == null && value.getDynamicValue().getInheritMode()) {
397 397 ekv = dynamicPredicateValueCtx.getTenantValue(value.getDynamicValue().getSourceAttribute());
398 398 }
399 399 break;
... ... @@ -408,7 +408,7 @@ class AlarmRuleState {
408 408 }
409 409 }
410 410 }
411   - if(ekv == null && value.getDynamicValue().getUseInherit()) {
  411 + if(ekv == null && value.getDynamicValue().getInheritMode()) {
412 412 ekv = dynamicPredicateValueCtx.getCustomerValue(value.getDynamicValue().getSourceAttribute());
413 413 if(ekv == null) {
414 414 ekv = dynamicPredicateValueCtx.getTenantValue(value.getDynamicValue().getSourceAttribute());
... ...