Class AlfrescoPagedResourcesAssembler<T>

  • All Implemented Interfaces:
    org.springframework.hateoas.ResourceAssembler<org.springframework.data.domain.Page<T>,​org.springframework.hateoas.PagedResources<org.springframework.hateoas.Resource<T>>>

    public class AlfrescoPagedResourcesAssembler<T>
    extends org.springframework.data.web.PagedResourcesAssembler<T>
    • Constructor Summary

      Constructors 
      Constructor Description
      AlfrescoPagedResourcesAssembler​(org.springframework.data.web.HateoasPageableHandlerMethodArgumentResolver resolver, org.springframework.web.util.UriComponents baseUri, ExtendedPageMetadataConverter extendedPageMetadataConverter)
      Creates a new PagedResourcesAssembler using the given PageableHandlerMethodArgumentResolver and base URI.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <R extends org.springframework.hateoas.ResourceSupport>
      org.springframework.hateoas.PagedResources<R>
      toResource​(org.springframework.data.domain.Pageable pageable, org.springframework.data.domain.Page<T> page, org.springframework.hateoas.ResourceAssembler<T,​R> assembler)  
      • Methods inherited from class org.springframework.data.web.PagedResourcesAssembler

        createPagedResource, getMethodParameter, setForceFirstAndLastRels, toEmptyResource, toEmptyResource, toResource, toResource, toResource, toResource
      • Methods inherited from class java.lang.Object

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

      • AlfrescoPagedResourcesAssembler

        public AlfrescoPagedResourcesAssembler​(@Nullable
                                               org.springframework.data.web.HateoasPageableHandlerMethodArgumentResolver resolver,
                                               @Nullable
                                               org.springframework.web.util.UriComponents baseUri,
                                               ExtendedPageMetadataConverter extendedPageMetadataConverter)
        Creates a new PagedResourcesAssembler using the given PageableHandlerMethodArgumentResolver and base URI. If the former is null, a default one will be created. If the latter is null, calls to PagedResourcesAssembler.toResource(Page) will use the current request's URI to build the relevant previous and next links.
        Parameters:
        resolver - can be null.
        baseUri - can be null.
    • Method Detail

      • toResource

        public <R extends org.springframework.hateoas.ResourceSupport> org.springframework.hateoas.PagedResources<R> toResource​(org.springframework.data.domain.Pageable pageable,
                                                                                                                                org.springframework.data.domain.Page<T> page,
                                                                                                                                org.springframework.hateoas.ResourceAssembler<T,​R> assembler)