Skip to content

Commit

Permalink
#96 Set default value of Case.tlp to AMBER
Browse files Browse the repository at this point in the history
  • Loading branch information
nadouani committed Jan 18, 2017
1 parent a2df75e commit a4440c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions thehive-backend/app/models/Case.scala
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ trait CaseAttributes { _: AttributeDef ⇒
val endDate = optionalAttribute("endDate", F.dateFmt, "Resolution date")
val tags = multiAttribute("tags", F.stringFmt, "Case tags")
val flag = attribute("flag", F.booleanFmt, "Flag of the case", false)
val tlp = attribute("tlp", F.numberFmt, "TLP level", -1L)
val tlp = attribute("tlp", F.numberFmt, "TLP level", 2L)
val status = attribute("status", F.enumFmt(CaseStatus), "Status of the case", CaseStatus.Open)
val metrics = optionalAttribute("metrics", F.metricsFmt, "List of metrics")
val resolutionStatus = optionalAttribute("resolutionStatus", F.enumFmt(CaseResolutionStatus), "Resolution status of the case")
Expand Down Expand Up @@ -162,4 +162,4 @@ class CaseModel @Inject() (
"handlingDuration" "doc['endDate'].value - doc['startDate'].value")
}

class Case(model: CaseModel, attributes: JsObject) extends EntityDef[CaseModel, Case](model, attributes) with CaseAttributes
class Case(model: CaseModel, attributes: JsObject) extends EntityDef[CaseModel, Case](model, attributes) with CaseAttributes

0 comments on commit a4440c4

Please sign in to comment.