Skip to content

Commit

Permalink
Upgrade scala 3
Browse files Browse the repository at this point in the history
  • Loading branch information
larousso committed Oct 11, 2024
1 parent bf0d1fa commit 858f41e
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions nio-server/app/models/Permission.scala
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
package models

import cats.data.Validated
import cats.data.Validated._
import cats.implicits._
import cats.data.Validated.*
import cats.implicits.*
import libs.xml.XMLRead
import libs.xml.XmlUtil.XmlCleaner
import libs.xml.implicits._
import libs.xml.syntax._
import play.api.libs.functional.syntax._
import play.api.libs.json._
import play.api.libs.json.Reads._
import libs.xml.implicits.*
import libs.xml.syntax.*
import play.api.libs.functional.syntax.*
import play.api.libs.json.*
import play.api.libs.json.Reads.*
import utils.Result.AppErrors

import java.time.{Clock, LocalDateTime, ZoneId}
import scala.concurrent.duration.{Duration, FiniteDuration}
import scala.util.{Failure, Success, Try}
import scala.xml.{Elem, NodeSeq}
import scala.xml.{Elem, NodeBuffer, NodeSeq}

sealed trait PermissionType {
def print : String = this match {
Expand Down Expand Up @@ -68,7 +68,7 @@ case class Permission(key: String, label: String, `type`: PermissionType = OptIn
<key>{key}</key>
<label>{label}</label>
<type>{`type`.print}</type>
{validityPeriod.map(p => <validityPeriod>p.toString()</validityPeriod>)}
{validityPeriod.map(p => <validityPeriod>p.toString()</validityPeriod>).getOrElse(new NodeBuffer())}
</permission>.clean()
}

Expand Down

0 comments on commit 858f41e

Please sign in to comment.