Class DefaultTaskDefinitionAssembler<R extends TaskDefinitionResource>

java.lang.Object
org.springframework.hateoas.server.mvc.RepresentationModelAssemblerSupport<TaskExecutionAwareTaskDefinition,R>
org.springframework.cloud.dataflow.server.controller.assembler.DefaultTaskDefinitionAssembler<R>
All Implemented Interfaces:
org.springframework.hateoas.server.RepresentationModelAssembler<TaskExecutionAwareTaskDefinition,R>

public class DefaultTaskDefinitionAssembler<R extends TaskDefinitionResource> extends org.springframework.hateoas.server.mvc.RepresentationModelAssemblerSupport<TaskExecutionAwareTaskDefinition,R>
RepresentationModelAssembler implementation that converts TaskDefinitions to TaskDefinitionResources.
Author:
Ilayaperumal Gopinathan, Evgeniy Bezdomnikov, Glenn Renfro, Chris Bono
  • Constructor Details

  • Method Details

    • toModel

      public R toModel(TaskExecutionAwareTaskDefinition taskExecutionAwareTaskDefinition)
    • instantiateModel

      public R instantiateModel(TaskExecutionAwareTaskDefinition taskExecutionAwareTaskDefinition)
      Overrides:
      instantiateModel in class org.springframework.hateoas.server.mvc.RepresentationModelAssemblerSupport<TaskExecutionAwareTaskDefinition,R extends TaskDefinitionResource>
    • isEnableManifest

      public boolean isEnableManifest()
      Returns if the TaskExecution needs to be updated with the task manifest.
      Returns:
      the boolean value of to enable setting the manifest
    • setEnableManifest

      public void setEnableManifest(boolean enableManifest)
      Set the flag to indicate whether the task manifest needs to be updated for the TaskExecution.
      Parameters:
      enableManifest - the boolean value of to enable setting the manifest