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)
NewCommentDeduplicator
findDuplicateComment
in interface NewCommentDeduplicator
public void newCommentSaved(Comment comment)
NewCommentDeduplicator
newCommentSaved
in interface NewCommentDeduplicator
Copyright © 2003–2017 Atlassian. All rights reserved.