Class JobModelAssembler

  • All Implemented Interfaces:
    org.springframework.hateoas.server.RepresentationModelAssembler<Job,​org.springframework.hateoas.EntityModel<Job>>

    public class JobModelAssembler
    extends java.lang.Object
    implements org.springframework.hateoas.server.RepresentationModelAssembler<Job,​org.springframework.hateoas.EntityModel<Job>>
    Assembles Job resources out of job DTOs.
    Since:
    3.0.0
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.springframework.hateoas.EntityModel<Job> toModel​(Job job)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.springframework.hateoas.server.RepresentationModelAssembler

        toCollectionModel
    • Constructor Detail

      • JobModelAssembler

        public JobModelAssembler()
    • Method Detail

      • toModel

        @Nonnull
        public org.springframework.hateoas.EntityModel<Job> toModel​(Job job)
        Specified by:
        toModel in interface org.springframework.hateoas.server.RepresentationModelAssembler<Job,​org.springframework.hateoas.EntityModel<Job>>