|
|
@ -16,18 +16,28 @@ |
|
|
package org.thingsboard.server.common.data.query; |
|
|
package org.thingsboard.server.common.data.query; |
|
|
|
|
|
|
|
|
import com.fasterxml.jackson.annotation.JsonIgnore; |
|
|
import com.fasterxml.jackson.annotation.JsonIgnore; |
|
|
|
|
|
import lombok.AllArgsConstructor; |
|
|
import lombok.Data; |
|
|
import lombok.Data; |
|
|
import lombok.Getter; |
|
|
import lombok.Getter; |
|
|
|
|
|
|
|
|
@Data |
|
|
@Data |
|
|
|
|
|
@AllArgsConstructor |
|
|
public class DynamicValue<T> { |
|
|
public class DynamicValue<T> { |
|
|
|
|
|
|
|
|
@JsonIgnore |
|
|
@JsonIgnore |
|
|
private T resolvedValue; |
|
|
private T resolvedValue; |
|
|
|
|
|
|
|
|
|
|
|
public DynamicValue(DynamicValueSourceType sourceType, String sourceAttribute) { |
|
|
|
|
|
this.sourceAttribute = sourceAttribute; |
|
|
|
|
|
this.sourceType = sourceType; |
|
|
|
|
|
this.useInherit = false; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
@Getter |
|
|
@Getter |
|
|
private final DynamicValueSourceType sourceType; |
|
|
private final DynamicValueSourceType sourceType; |
|
|
@Getter |
|
|
@Getter |
|
|
private final String sourceAttribute; |
|
|
private final String sourceAttribute; |
|
|
|
|
|
@Getter |
|
|
|
|
|
private final boolean useInherit; |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|