Class AlfrescoPagedModelAssembler<T>

  • All Implemented Interfaces:
    org.springframework.hateoas.server.RepresentationModelAssembler<org.springframework.data.domain.Page<T>,​org.springframework.hateoas.PagedModel<org.springframework.hateoas.EntityModel<T>>>

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

      Constructors 
      Constructor Description
      AlfrescoPagedModelAssembler​(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.RepresentationModel<?>>
      org.springframework.hateoas.PagedModel<R>
      toModel​(org.springframework.data.domain.Pageable pageable, org.springframework.data.domain.Page<T> page, org.springframework.hateoas.server.RepresentationModelAssembler<T,​R> assembler)  
      • Methods inherited from class org.springframework.data.web.PagedResourcesAssembler

        createPagedModel, getMethodParameter, setForceFirstAndLastRels, toEmptyModel, toEmptyModel, toModel, toModel, toModel, toModel
      • Methods inherited from interface org.springframework.hateoas.server.RepresentationModelAssembler

        toCollectionModel
    • Constructor Detail

      • AlfrescoPagedModelAssembler

        public AlfrescoPagedModelAssembler​(@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.toModel(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

      • toModel

        public <R extends org.springframework.hateoas.RepresentationModel<?>> org.springframework.hateoas.PagedModel<R> toModel​(org.springframework.data.domain.Pageable pageable,
                                                                                                                                org.springframework.data.domain.Page<T> page,
                                                                                                                                org.springframework.hateoas.server.RepresentationModelAssembler<T,​R> assembler)