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.void
newCommentSaved
(Comment comment) Called when a new comment has been saved
-
Constructor Details
-
SubmissionTokenCommentDeduplicator
-
-
Method Details
-
getDuplicateComment
Description copied from interface:NewCommentDeduplicator
Given a collection of existing comments, determine which one, if any, is a duplicate of the new comment submission.- Specified by:
getDuplicateComment
in interfaceNewCommentDeduplicator
-
newCommentSaved
Description copied from interface:NewCommentDeduplicator
Called when a new comment has been saved- Specified by:
newCommentSaved
in interfaceNewCommentDeduplicator
-