|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CommentRepository
Repository for comments.
Method Summary | |
---|---|
long |
count(ResourceEntity resource,
CommentStatus status)
Count existing comments. |
void |
create(CommentEntity comment)
Persist a newly created comment. |
void |
delete(java.util.UUID commentId)
Delete a comment. |
java.util.List<CommentEntity> |
list(ResourceEntity resource,
CommentStatus status,
java.lang.String sort,
SortOrder sortOrder,
int pageNo,
int pageSize)
List existing comments. |
CommentEntity |
retrieve(java.util.UUID commentId)
Retrieve a single comment. |
Method Detail |
---|
void create(CommentEntity comment)
comment
- The comment to persist.void delete(java.util.UUID commentId)
commentId
- The ID of the comment to delete.CommentEntity retrieve(java.util.UUID commentId)
commentId
- The ID of the comment to retrieve.
java.util.List<CommentEntity> list(ResourceEntity resource, CommentStatus status, java.lang.String sort, SortOrder sortOrder, int pageNo, int pageSize)
resource
- 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.
long count(ResourceEntity resource, CommentStatus status)
resource
- Filter comments by resource. NULL will return all.status
- Filter comments based on status. NULL will return all.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |