public interface SimpleReactiveRepresentationModelAssembler<T> extends ReactiveRepresentationModelAssembler<T,EntityModel<T>>
RepresentationModelAssembler combined with SimpleRepresentationModelAssembler.| Modifier and Type | Method and Description |
|---|---|
default CollectionModel<EntityModel<T>> |
addLinks(CollectionModel<EntityModel<T>> resources,
ServerWebExchange exchange)
Define links to add to the
CollectionModel collection. |
default EntityModel<T> |
addLinks(EntityModel<T> resource,
ServerWebExchange exchange)
Define links to add to every individual
EntityModel. |
default reactor.core.publisher.Mono<CollectionModel<EntityModel<T>>> |
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>> |
toModel(T entity,
ServerWebExchange exchange)
Converts the given entity into a
EntityModel wrapped in a Mono. |
default reactor.core.publisher.Mono<EntityModel<T>> toModel(T entity, ServerWebExchange exchange)
EntityModel wrapped in a Mono.toModel in interface ReactiveRepresentationModelAssembler<T,EntityModel<T>>entity - default EntityModel<T> addLinks(EntityModel<T> resource, ServerWebExchange exchange)
EntityModel.resource - default reactor.core.publisher.Mono<CollectionModel<EntityModel<T>>> toCollectionModel(reactor.core.publisher.Flux<? extends T> entities, ServerWebExchange exchange)
toCollectionModel in interface ReactiveRepresentationModelAssembler<T,EntityModel<T>>entities - must not be null.CollectionModel containing EntityModel of T.#toResource(Object, ServerWebExchange)default CollectionModel<EntityModel<T>> addLinks(CollectionModel<EntityModel<T>> resources, ServerWebExchange exchange)
CollectionModel collection.resources - Copyright © 2012-2019–2019 Pivotal, Inc.. All rights reserved.