インターフェース SimpleRepresentationModelAssembler<T>
- すべてのスーパーインターフェース:
RepresentationModelAssembler<T,EntityModel<T>>
public interface SimpleRepresentationModelAssembler<T>
extends RepresentationModelAssembler<T,EntityModel<T>>
EntityRepresentationModel<T> を包含表現モデル型として使用する、純粋にドメイン型に基づく RepresentationModelAssembler。- 導入:
- 1.0
- 作成者:
- Greg Turnquist
メソッドのサマリー
修飾子と型メソッド説明voidaddLinks(CollectionModel<EntityModel<T>> resources) CollectionModelコレクションに追加するリンクを定義します。voidaddLinks(EntityModel<T> resource) 個々のEntityModelごとに追加するリンクを定義します。default CollectionModel<EntityModel<T>>toCollectionModel(IterableSE<? extends T> entities) 指定されたすべてのエンティティをリソースに変換し、コレクションもリソースとしてラップします。default EntityModel<T>指定されたエンティティをEntityModelに変換します。
メソッドの詳細
toModel
指定されたエンティティをEntityModelに変換します。- 次で指定:
- インターフェース
RepresentationModelAssembler<T,のEntityModel<T>> toModel - パラメーター:
entity-- 戻り値:
addLinks
個々のEntityModelごとに追加するリンクを定義します。- パラメーター:
resource-
toCollectionModel
指定されたすべてのエンティティをリソースに変換し、コレクションもリソースとしてラップします。- 次で指定:
- インターフェース
RepresentationModelAssembler<T,のEntityModel<T>> toCollectionModel - パラメーター:
entities- null であってはなりません。- 戻り値:
TのEntityModelを含むCollectionModel。- 関連事項:
addLinks
CollectionModelコレクションに追加するリンクを定義します。- パラメーター:
resources-