クラスの使用
org.springframework.hateoas.EntityModel
EntityModel を使用するパッケージ
org.springframework.hateoas 内の EntityModel 使用
型 EntityModel の型パラメーターを使用した org.springframework.hateoas のメソッド修飾子と型メソッド説明static <T extends EntityModel<S>,S>
CollectionModel<T>CollectionModel.wrap(IterableSE<S> content) 指定されたドメインクラスインスタンスをEntityModelにラップして、新しいCollectionModelインスタンスを作成します。static <T extends EntityModel<S>,S>
PagedModel<T>PagedModel.wrap(IterableSE<S> content, PagedModel.PageMetadata metadata) 一連のエンティティとページネーションメタデータからPagedModelインスタンスを簡単に作成するファクトリメソッド。static <T extends EntityModel<S>,S>
SlicedModel<T>SlicedModel.wrap(IterableSE<S> content, SlicedModel.SliceMetadata metadata) 一連のエンティティとページネーションメタデータからSlicedModelインスタンスを簡単に作成するファクトリメソッド。EntityModel を返す org.springframework.hateoas のメソッド修飾子と型メソッド説明static <T> EntityModel<T>EntityModel.of(T content) 指定されたコンテンツで新しいEntityModelを作成します。static <T> EntityModel<T>EntityModel.of(T content, IterableSE<Link> links) 指定されたコンテンツとLinkで新しいEntityModelを作成します。static <T> EntityModel<T>指定されたコンテンツとLinkで新しいEntityModelを作成します (オプション)。org.springframework.hateoas.server 内の EntityModel 使用
型 EntityModel の引数を持つ型を返す org.springframework.hateoas.server のメソッド修飾子と型メソッド説明default CollectionModel<EntityModel<T>>SimpleRepresentationModelAssembler.toCollectionModel(IterableSE<? extends T> entities) 指定されたすべてのエンティティをリソースに変換し、コレクションもリソースとしてラップします。型 EntityModel のパラメーターを持つ org.springframework.hateoas.server のメソッド修飾子と型メソッド説明voidSimpleRepresentationModelAssembler.addLinks(EntityModel<T> resource) 個々のEntityModelごとに追加するリンクを定義します。型 EntityModel の型引数を持つ org.springframework.hateoas.server のメソッドパラメーター修飾子と型メソッド説明voidSimpleRepresentationModelAssembler.addLinks(CollectionModel<EntityModel<T>> resources) CollectionModelコレクションに追加するリンクを定義します。org.springframework.hateoas.server.reactive 内の EntityModel 使用
修飾子と型メソッド説明default EntityModel<T>SimpleReactiveRepresentationModelAssembler.addLinks(EntityModel<T> resource, org.springframework.web.server.ServerWebExchange exchange) 個々のEntityModelごとに追加するリンクを定義します。型 EntityModel の引数を持つ型を返す org.springframework.hateoas.server.reactive のメソッド修飾子と型メソッド説明default CollectionModel<EntityModel<T>>SimpleReactiveRepresentationModelAssembler.addLinks(CollectionModel<EntityModel<T>> resources, org.springframework.web.server.ServerWebExchange exchange) CollectionModelコレクションに追加するリンクを定義します。default reactor.core.publisher.Mono<CollectionModel<EntityModel<T>>>SimpleReactiveRepresentationModelAssembler.toCollectionModel(reactor.core.publisher.Flux<? extends T> entities, org.springframework.web.server.ServerWebExchange exchange) 指定されたすべてのエンティティをリソースに変換し、コレクションもリソースとしてラップします。default reactor.core.publisher.Mono<EntityModel<T>>SimpleReactiveRepresentationModelAssembler.toModel(T entity, org.springframework.web.server.ServerWebExchange exchange) 指定されたエンティティをMonoでラップされたEntityModelに変換します。型 EntityModel のパラメーターを持つ org.springframework.hateoas.server.reactive のメソッド修飾子と型メソッド説明default EntityModel<T>SimpleReactiveRepresentationModelAssembler.addLinks(EntityModel<T> resource, org.springframework.web.server.ServerWebExchange exchange) 個々のEntityModelごとに追加するリンクを定義します。型 EntityModel の型引数を持つ org.springframework.hateoas.server.reactive のメソッドパラメーター修飾子と型メソッド説明default CollectionModel<EntityModel<T>>SimpleReactiveRepresentationModelAssembler.addLinks(CollectionModel<EntityModel<T>> resources, org.springframework.web.server.ServerWebExchange exchange) CollectionModelコレクションに追加するリンクを定義します。