|
|
|
@ -27,6 +27,8 @@ import org.thingsboard.server.common.data.HasName; |
|
|
|
import org.thingsboard.server.common.data.id.AlarmCommentId; |
|
|
|
import org.thingsboard.server.common.data.id.EntityId; |
|
|
|
import org.thingsboard.server.common.data.id.UserId; |
|
|
|
import org.thingsboard.server.common.data.validation.Length; |
|
|
|
import org.thingsboard.server.common.data.validation.NoXss; |
|
|
|
|
|
|
|
@ApiModel |
|
|
|
@Data |
|
|
|
@ -38,6 +40,8 @@ public class AlarmComment extends BaseData<AlarmCommentId> implements HasName { |
|
|
|
@ApiModelProperty(position = 4, value = "JSON object with User id.", accessMode = ApiModelProperty.AccessMode.READ_ONLY) |
|
|
|
private UserId userId; |
|
|
|
@ApiModelProperty(position = 5, value = "Defines origination of comment", example = "System/Other", accessMode = ApiModelProperty.AccessMode.READ_ONLY) |
|
|
|
@NoXss |
|
|
|
@Length(fieldName = "type") |
|
|
|
private String type; |
|
|
|
@ApiModelProperty(position = 6, value = "JSON object with text of comment.", dataType = "com.fasterxml.jackson.databind.JsonNode") |
|
|
|
private transient JsonNode comment; |
|
|
|
|