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)
Deprecated.
since 7.0.1. Use
NewCommentDeduplicator.getDuplicateComment(Iterable) |
void |
newCommentSaved(Comment comment)
Called when a new comment has been saved
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDuplicateCommentpublic SubmissionTokenCommentDeduplicator(UUID submissionToken)
@Deprecated public com.atlassian.fugue.Option<Comment> findDuplicateComment(Iterable<Comment> existingComments)
NewCommentDeduplicator.getDuplicateComment(Iterable)NewCommentDeduplicatorfindDuplicateComment in interface NewCommentDeduplicatorpublic void newCommentSaved(Comment comment)
NewCommentDeduplicatornewCommentSaved in interface NewCommentDeduplicatorCopyright © 2003–2021 Atlassian. All rights reserved.