@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)
CommentService
byId
in interface CommentService
@Deprecated public QueryRequest<Comment> all()
CommentService
all
in interface CommentService
public QueryRequest<Comment> query()
CommentService
query
in interface CommentService
public QueryRequest<Comment> byProductId(java.lang.String productId)
CommentService
byProductId
in interface CommentService
public Comment updateComment(VersionedId commentId, CommentUpdate update)
CommentService
updateComment
in interface CommentService
public play.libs.F.Promise<SphereResult<Comment>> updateCommentAsync(VersionedId commentId, CommentUpdate update)
CommentService
updateCommentAsync
in interface CommentService