Uses of Interface
org.springframework.data.domain.Slice
Package
Description
Central domain abstractions especially to be used in combination with the
Repository
abstraction.Value types representing geo-spatial concepts.
Integration with Spring MVC.
-
Uses of Slice in org.springframework.data.domain
-
Uses of Slice in org.springframework.data.geo
-
Uses of Slice in org.springframework.data.web
Modifier and TypeMethodDescriptionprotected <R extends RepresentationModel<?>,
S>
SlicedModel<R>SlicedResourcesAssembler.createSlicedModel
(List<R> resources, SlicedModel.SliceMetadata metadata, Slice<S> slice) Creates theSlicedModel
to be equipped with pagination links downstream.SlicedModel<?>
SlicedResourcesAssembler.toEmptyModel
(Slice<?> slice, Class<?> type) Creates aSlicedModel
with an empty collectionEmbeddedWrapper
for the given domain type.SlicedModel<?>
SlicedResourcesAssembler.toEmptyModel
(Slice<?> slice, Class<?> type, Optional<Link> link) SlicedModel<?>
SlicedResourcesAssembler.toEmptyModel
(Slice<?> slice, Class<?> type, Link link) Creates aSlicedModel
with an empty collectionEmbeddedWrapper
for the given domain type.Creates a newSlicedModel
by converting the givenSlice
into aSlicedModel.SliceMetadata
instance and wrapping the contained elements into *SlicedModel
instances.<R extends RepresentationModel<?>>
SlicedModel<R>SlicedResourcesAssembler.toModel
(Slice<T> slice, RepresentationModelAssembler<T, R> assembler) Creates a newSlicedModel
by converting the givenSlice
into aSlicedModel.SliceMetadata
instance and using the givenSlicedModel
to turn elements of theSlice
into resources.<R extends RepresentationModel<?>>
SlicedModel<R>SlicedResourcesAssembler.toModel
(Slice<T> slice, RepresentationModelAssembler<T, R> assembler, Link link) Creates a newSlicedModel
by converting the givenSlice
into aSlicedModel.SliceMetadata
instance and using the givenSlicedModel
to turn elements of theSlice
into resources.