Class ResearchObjectResourceAssembler

  • All Implemented Interfaces:
    org.springframework.hateoas.ResourceAssembler<ResearchObject,​org.springframework.hateoas.Resource<ResearchObject>>

    @Component
    public class ResearchObjectResourceAssembler
    extends java.lang.Object
    implements org.springframework.hateoas.ResourceAssembler<ResearchObject,​org.springframework.hateoas.Resource<ResearchObject>>
    An assembler to control how a Research Object is serialized as a HAL+JSON document.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.springframework.hateoas.Resource<ResearchObject> toResource​(ResearchObject researchObject)
      Create a Research Object "resource" which consists of a serialized ResearchObject bean, and various links where additional requests can be performed, including a link to the profile, a link to get the content as plain JSON in isolation, and links to each top-level field in the content.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ResearchObjectResourceAssembler

        public ResearchObjectResourceAssembler()
    • Method Detail

      • toResource

        public org.springframework.hateoas.Resource<ResearchObject> toResource​(ResearchObject researchObject)
        Create a Research Object "resource" which consists of a serialized ResearchObject bean, and various links where additional requests can be performed, including a link to the profile, a link to get the content as plain JSON in isolation, and links to each top-level field in the content.
        Specified by:
        toResource in interface org.springframework.hateoas.ResourceAssembler<ResearchObject,​org.springframework.hateoas.Resource<ResearchObject>>
        Parameters:
        researchObject -
        Returns: