public class SubmissionTokenCommentDeduplicator extends Object implements NewCommentDeduplicator
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 and Description |
|---|
SubmissionTokenCommentDeduplicator(UUID submissionToken) |
| Modifier and Type | Method and Description |
|---|---|
com.atlassian.fugue.Option<Comment> |
findDuplicateComment(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
|
public SubmissionTokenCommentDeduplicator(UUID submissionToken)
public com.atlassian.fugue.Option<Comment> findDuplicateComment(Iterable<Comment> existingComments)
NewCommentDeduplicatorfindDuplicateComment in interface NewCommentDeduplicatorpublic void newCommentSaved(Comment comment)
NewCommentDeduplicatornewCommentSaved in interface NewCommentDeduplicatorCopyright © 2003–2019 Atlassian. All rights reserved.