Package com.atlassian.confluence.pages
Class SubmissionTokenCommentDeduplicator
java.lang.Object
com.atlassian.confluence.pages.SubmissionTokenCommentDeduplicator
- All Implemented Interfaces:
NewCommentDeduplicator
A
NewCommentDeduplicator which uses a submission token, represented by a UUID,
to determine if a new submitted comment is a duplicate of any existing comments.
The UUID is stored as a content property against the comment.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDuplicateComment(Iterable<Comment> existingComments) Given a collection of existing comments, determine which one, if any, is a duplicate of the new comment submission.voidnewCommentSaved(Comment comment) Called when a new comment has been saved
-
Constructor Details
-
SubmissionTokenCommentDeduplicator
-
-
Method Details
-
getDuplicateComment
Description copied from interface:NewCommentDeduplicatorGiven a collection of existing comments, determine which one, if any, is a duplicate of the new comment submission.- Specified by:
getDuplicateCommentin interfaceNewCommentDeduplicator
-
newCommentSaved
Description copied from interface:NewCommentDeduplicatorCalled when a new comment has been saved- Specified by:
newCommentSavedin interfaceNewCommentDeduplicator
-