|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectccc.api.jaxrs.JaxrsCollection
ccc.api.jaxrs.CommentsImpl
public class CommentsImpl
JAX-RS implementation of the Comments
interface.
Field Summary |
---|
Fields inherited from interface ccc.api.core.Comments |
---|
NAME |
Constructor Summary | |
---|---|
CommentsImpl(Comments comments)
Constructor. |
Method Summary | |
---|---|
Comment |
create(Comment comment)
Create a new comment in CCC. |
void |
delete(java.util.UUID commentId)
Delete an existing comment. |
PagedCollection<Comment> |
query(java.util.UUID resourceId,
CommentStatus status,
java.lang.String sort,
SortOrder sortOrder,
int pageNo,
int pageSize)
List existing comments. |
Comment |
retrieve(java.util.UUID commentId)
Retrieve the comment using its ID. |
Comment |
update(java.util.UUID commentId,
Comment comment)
Update the specified comment. |
Methods inherited from class ccc.api.jaxrs.JaxrsCollection |
---|
convertException |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CommentsImpl(Comments comments)
comments
- The comments implementation delegated to.Method Detail |
---|
public Comment create(Comment comment)
create
in interface Comments
comment
- The comment to create.
public Comment retrieve(java.util.UUID commentId)
retrieve
in interface Comments
commentId
- The comment's ID.
public Comment update(java.util.UUID commentId, Comment comment)
update
in interface Comments
commentId
- The comment's ID.comment
- The updated comment.
public void delete(java.util.UUID commentId)
delete
in interface Comments
commentId
- The comment's ID.public PagedCollection<Comment> query(java.util.UUID resourceId, CommentStatus status, java.lang.String sort, SortOrder sortOrder, int pageNo, int pageSize)
query
in interface Comments
resourceId
- Filter comments by resource. NULL will return all.status
- Filter comments based on status. NULL will return all.sort
- The field to sort on.sortOrder
- The order results be sorted in.pageNo
- The page of results to return.pageSize
- The number of results in a page.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |