def apply()

in path-manager/app/model/PathRecord.scala [19:36]


  def apply(item: Item): PathRecord = PathRecord(
    path = item.getString("path"),
    identifier = item.getLong("identifier"),
    `type` = item.getString("type"),
    system = item.getString("system"),
    ceasedToBeCanonicalAt = if(item.hasAttribute("ceasedToBeCanonicalAt")) Some(item.getLong("ceasedToBeCanonicalAt")) else None,
    isRemoved = if(item.hasAttribute("isRemoved")) Some(item.getBoolean("isRemoved")) else None
  )
}

case class PathRecord(
  path: String,
  identifier: Long,
  `type`: String,
  system: String,
  ceasedToBeCanonicalAt: Option[Long] = None,
  isRemoved: Option[Boolean] = None
) {