@Immutable public class CommentServiceAdapter extends java.lang.Object implements CommentService
Sphere.currentCustomer().| Constructor and Description |
|---|
CommentServiceAdapter(CommentService service) |
| Modifier and Type | Method and Description |
|---|---|
QueryRequest<Comment> |
all()
Deprecated.
|
FetchRequest<Comment> |
byId(java.lang.String id)
Finds a comment by id.
|
QueryRequest<Comment> |
byProductId(java.lang.String productId)
Queries all comments for a specific product.
|
QueryRequest<Comment> |
query()
Queries comments.
|
Comment |
updateComment(VersionedId commentId,
CommentUpdate update)
Updates a comment.
|
play.libs.F.Promise<SphereResult<Comment>> |
updateCommentAsync(VersionedId commentId,
CommentUpdate update)
Updates a comment asynchronously.
|
public CommentServiceAdapter(@Nonnull
CommentService service)
public FetchRequest<Comment> byId(java.lang.String id)
CommentServicebyId in interface CommentService@Deprecated public QueryRequest<Comment> all()
CommentServiceall in interface CommentServicepublic QueryRequest<Comment> query()
CommentServicequery in interface CommentServicepublic QueryRequest<Comment> byProductId(java.lang.String productId)
CommentServicebyProductId in interface CommentServicepublic Comment updateComment(VersionedId commentId, CommentUpdate update)
CommentServiceupdateComment in interface CommentServicepublic play.libs.F.Promise<SphereResult<Comment>> updateCommentAsync(VersionedId commentId, CommentUpdate update)
CommentServiceupdateCommentAsync in interface CommentService