public interface CommentService
Modifier and Type | Method and Description |
---|---|
QueryRequest<Comment> |
all()
Deprecated.
since 0.49.0. Use
query() instead. |
FetchRequest<Comment> |
byId(java.lang.String id)
Finds a comment by id.
|
CommandRequest<Comment> |
createComment(java.lang.String productId,
java.lang.String customerId,
java.lang.String authorName,
java.lang.String title,
java.lang.String text)
Creates a comment.
|
QueryRequest<Comment> |
forCustomer(java.lang.String customerId)
Queries all comments by given customer.
|
QueryRequest<Comment> |
forProduct(java.lang.String productId)
Queries all comments for a specific product.
|
QueryRequest<Comment> |
query()
Queries comments.
|
CommandRequest<Comment> |
updateComment(VersionedId commentId,
CommentUpdate update)
Updates a comment.
|
FetchRequest<Comment> byId(java.lang.String id)
@Deprecated QueryRequest<Comment> all()
query()
instead.QueryRequest<Comment> query()
QueryRequest<Comment> forCustomer(java.lang.String customerId)
QueryRequest<Comment> forProduct(java.lang.String productId)
CommandRequest<Comment> createComment(java.lang.String productId, java.lang.String customerId, java.lang.String authorName, java.lang.String title, java.lang.String text)
CommandRequest<Comment> updateComment(VersionedId commentId, CommentUpdate update)