| org.outerj.daisy.repository.comment.CommentManager
All known Subclasses: org.outerj.daisy.repository.commonimpl.comment.CommentManagerImpl,
Method Summary | |
Comment | addComment(String documentId, long branchId, long languageId, CommentVisibility visibility, String commentText) | Comment | addComment(String documentId, CommentVisibility visibility, String commentText) Adds a comment to the branch "main", language "default" of this document. | void | deleteComment(String documentId, long branchId, long languageId, long commentId) Deletes a comment. | void | deleteComment(String documentId, long commentId) Deletes a comment from the branch "main", language "default" of the document. | void | deleteComment(Comment comment) | Comments | getComments(String documentId, long branchId, long langugeId) Returns the comments for a specific document variant. | Comments | getComments(VariantKey variantKey) | Comments | getComments(String documentId) Gets the comments from the branch "main", languge "default" of the document. | Comments | getComments(CommentVisibility visibility) Returns all comments with the specified visibility, created by the current user. | Comments | getComments() Returns all comments created by the current user. |
deleteComment | void deleteComment(String documentId, long branchId, long languageId, long commentId) throws RepositoryException(Code) | | Deletes a comment. These are the rules for deleting comments:
- Administrators can delete all comments, also private comments from other users.
- Users with write access to the document can delete their own private comments,
public comments and editors-only comments.
- Other users can only delete their own private comments.
|
deleteComment | void deleteComment(String documentId, long commentId) throws RepositoryException(Code) | | Deletes a comment from the branch "main", language "default" of the document.
|
getComments | Comments getComments(String documentId, long branchId, long langugeId) throws RepositoryException(Code) | | Returns the comments for a specific document variant. Only private comment of the current
user will be included (also for administrators). Editors-only comments are only
included when the user has write access to the document.
The comments are ordered by creation date.
|
|
|