protected <R extends org.springframework.hateoas.RepresentationModel<?>,S> SlicedModel<R> |
SlicedResourcesAssembler.createPagedModel(List<R> resources,
SlicedModel.SliceMetadata metadata,
CursorPaginationSlice<S> page) |
Creates the SlicedModel to be equipped with pagination links downstream.
|
static <T> SlicedModel<T> |
SlicedModel.empty() |
Creates a new empty collection model.
|
static <T> SlicedModel<T> |
SlicedModel.empty(Iterable<org.springframework.hateoas.Link> links) |
Creates a new empty collection model with the given links.
|
static <T> SlicedModel<T> |
SlicedModel.of(Collection<T> content,
SlicedModel.SliceMetadata metadata) |
Creates a new SlicedModel with the given content and metadata.
|
static <T> SlicedModel<T> |
SlicedModel.of(Collection<T> content,
SlicedModel.SliceMetadata metadata,
Iterable<org.springframework.hateoas.Link> links) |
Creates a new SlicedModel with the given content, metadata and
Links.
|
SlicedModel<?> |
SlicedResourcesAssembler.toEmptyModel(CursorPaginationSlice<?> page,
Class<?> type) |
Creates a SlicedModel with an empty collection EmbeddedWrapper for
the given domain type.
|
SlicedModel<?> |
SlicedResourcesAssembler.toEmptyModel(CursorPaginationSlice<?> page,
Class<?> type,
org.springframework.hateoas.Link link) |
Creates a SlicedModel with an empt collection EmbeddedWrapper for
the given domain type.
|
SlicedModel<org.springframework.hateoas.EntityModel<T>> |
SlicedResourcesAssembler.toModel(CursorPaginationSlice<T> slice) |
|
SlicedModel<org.springframework.hateoas.EntityModel<T>> |
SlicedResourcesAssembler.toModel(CursorPaginationSlice<T> slice,
org.springframework.hateoas.Link selfLink) |
|
<R extends org.springframework.hateoas.RepresentationModel<?>> SlicedModel<R> |
SlicedResourcesAssembler.toModel(CursorPaginationSlice<T> slice,
org.springframework.hateoas.server.RepresentationModelAssembler<T,R> assembler) |
Creates a new SlicedModel by converting the given Slice into a
SlicedModel.SliceMetadata instance and using the given
RepresentationModelAssembler to turn elements of the Slice into
resources.
|
<R extends org.springframework.hateoas.RepresentationModel<?>> SlicedModel<R> |
SlicedResourcesAssembler.toModel(CursorPaginationSlice<T> slice,
org.springframework.hateoas.server.RepresentationModelAssembler<T,R> assembler,
org.springframework.hateoas.Link link) |
Creates a new SlicedModel by converting the given Slice into a
SlicedModel.SliceMetadata instance and using the given
RepresentationModelAssembler to turn elements of the Slice into
resources.
|