All Downloads are FREE. Search and download functionalities are using the official Maven repository.

pl.touk.nussknacker.engine.deployment.DeploymentData.scala Maven / Gradle / Ivy

The newest version!
package pl.touk.nussknacker.engine.deployment

import io.circe.generic.JsonCodec
import pl.touk.nussknacker.engine.api.component.NodesDeploymentData

@JsonCodec case class DeploymentData(
    deploymentId: DeploymentId,
    user: User,
    additionalDeploymentData: Map[String, String],
    nodesData: NodesDeploymentData
)

object DeploymentData {

  val systemUser: User = User("system", "system")

  val empty: DeploymentData =
    DeploymentData(DeploymentId(""), systemUser, Map.empty, NodesDeploymentData.empty)

  def withDeploymentId(deploymentIdString: String) =
    DeploymentData(
      DeploymentId(deploymentIdString),
      systemUser,
      Map.empty,
      NodesDeploymentData.empty
    )

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy