Uses of Class
org.springframework.hateoas.EntityModel
Package
Description
Value objects to ease creating
Link
s and link driven representations for REST
webservices.Server-side components for hypermedia handling.
Spring WebFlux components to build
Link
s and assemble
RepresentationModel
types.-
Uses of EntityModel in org.springframework.hateoas
Modifier and TypeMethodDescriptionstatic <T extends EntityModel<S>,
S>
CollectionModel<T>Creates a newCollectionModel
instance by wrapping the given domain class instances into aEntityModel
.static <T extends EntityModel<S>,
S>
PagedModel<T>PagedModel.wrap
(Iterable<S> content, PagedModel.PageMetadata metadata) Factory method to easily create aPagedModel
instance from a set of entities and pagination metadata.static <T extends EntityModel<S>,
S>
SlicedModel<T>SlicedModel.wrap
(Iterable<S> content, SlicedModel.SliceMetadata metadata) Factory method to easily create aSlicedModel
instance from a set of entities and pagination metadata.Modifier and TypeMethodDescriptionstatic <T> EntityModel<T>
EntityModel.of
(T content) Creates a newEntityModel
with the given content.static <T> EntityModel<T>
Creates a newEntityModel
with the given content andLink
s.static <T> EntityModel<T>
Creates a newEntityModel
with the given content andLink
s (optional). -
Uses of EntityModel in org.springframework.hateoas.server
Modifier and TypeMethodDescriptiondefault EntityModel<T>
Converts the given entity into aEntityModel
.Modifier and TypeMethodDescriptiondefault CollectionModel<EntityModel<T>>
SimpleRepresentationModelAssembler.toCollectionModel
(Iterable<? extends T> entities) Converts all given entities into resources and wraps the collection as a resource as well.Modifier and TypeMethodDescriptionvoid
SimpleRepresentationModelAssembler.addLinks
(EntityModel<T> resource) Define links to add to every individualEntityModel
.Modifier and TypeMethodDescriptionvoid
SimpleRepresentationModelAssembler.addLinks
(CollectionModel<EntityModel<T>> resources) Define links to add to theCollectionModel
collection. -
Uses of EntityModel in org.springframework.hateoas.server.reactive
Modifier and TypeMethodDescriptiondefault EntityModel<T>
SimpleReactiveRepresentationModelAssembler.addLinks
(EntityModel<T> resource, ServerWebExchange exchange) Define links to add to every individualEntityModel
.Modifier and TypeMethodDescriptiondefault CollectionModel<EntityModel<T>>
SimpleReactiveRepresentationModelAssembler.addLinks
(CollectionModel<EntityModel<T>> resources, ServerWebExchange exchange) Define links to add to theCollectionModel
collection.default reactor.core.publisher.Mono<CollectionModel<EntityModel<T>>>
SimpleReactiveRepresentationModelAssembler.toCollectionModel
(reactor.core.publisher.Flux<? extends T> entities, ServerWebExchange exchange) Converts all given entities into resources and wraps the collection as a resource as well.default reactor.core.publisher.Mono<EntityModel<T>>
SimpleReactiveRepresentationModelAssembler.toModel
(T entity, ServerWebExchange exchange) Converts the given entity into aEntityModel
wrapped in aMono
.Modifier and TypeMethodDescriptiondefault EntityModel<T>
SimpleReactiveRepresentationModelAssembler.addLinks
(EntityModel<T> resource, ServerWebExchange exchange) Define links to add to every individualEntityModel
.Modifier and TypeMethodDescriptiondefault CollectionModel<EntityModel<T>>
SimpleReactiveRepresentationModelAssembler.addLinks
(CollectionModel<EntityModel<T>> resources, ServerWebExchange exchange) Define links to add to theCollectionModel
collection.