1 16 package org.outerj.daisy.repository.comment; 17 18 import org.outerj.daisy.repository.RepositoryException; 19 import org.outerj.daisy.repository.VariantKey; 20 21 public interface CommentManager { 22 Comment addComment(long documentId, long branchId, long languageId, CommentVisibility visibility, String commentText) throws RepositoryException; 23 24 27 Comment addComment(long documentId, CommentVisibility visibility, String commentText) throws RepositoryException; 28 29 38 void deleteComment(long documentId, long branchId, long languageId, long commentId) throws RepositoryException; 39 40 43 void deleteComment(long documentId, long commentId) throws RepositoryException; 44 45 void deleteComment(Comment comment) throws RepositoryException; 46 47 54 Comments getComments(long documentId, long branchId, long langugeId) throws RepositoryException; 55 56 59 Comments getComments(VariantKey variantKey) throws RepositoryException; 60 61 64 Comments getComments(long documentId) throws RepositoryException; 65 66 69 Comments getComments(CommentVisibility visibility) throws RepositoryException; 70 71 74 Comments getComments() throws RepositoryException; 75 } 76 | Popular Tags |