Class MdmPageLinkBuilder

    • Method Detail

      • buildMdmPageLinks

        public static MdmPageLinkTuple buildMdmPageLinks​(ca.uhn.fhir.rest.server.servlet.ServletRequestDetails theServletRequestDetails,
                                                         org.springframework.data.domain.Page<MdmLinkJson> theCurrentPage,
                                                         MdmPageRequest thePageRequest)
        Generates an MdmPageLinkTuple which contains previous/self/next links for pagination purposes.
        Parameters:
        theServletRequestDetails - the incoming request details. Used to determine server base.
        theCurrentPage - the page of MDM link data. Used for determining if there are next/previous pages available.
        thePageRequest - the incoming Page request, containing requested offset and count. Used for building offset for outgoing URLs.
        Returns:
        the MdmPageLinkTuple