Package com.atlassian.confluence.pages
Class SubmissionTokenCommentDeduplicator
- java.lang.Object
-
- com.atlassian.confluence.pages.SubmissionTokenCommentDeduplicator
-
- All Implemented Interfaces:
NewCommentDeduplicator
public class SubmissionTokenCommentDeduplicator extends Object implements NewCommentDeduplicator
ANewCommentDeduplicator
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 Constructor Description SubmissionTokenCommentDeduplicator(UUID submissionToken)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description com.atlassian.fugue.Option<Comment>
findDuplicateComment(Iterable<Comment> existingComments)
Deprecated.since 7.0.1.void
newCommentSaved(Comment comment)
Called when a new comment has been saved-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.confluence.pages.NewCommentDeduplicator
getDuplicateComment
-
-
-
-
Constructor Detail
-
SubmissionTokenCommentDeduplicator
public SubmissionTokenCommentDeduplicator(UUID submissionToken)
-
-
Method Detail
-
findDuplicateComment
@Deprecated public com.atlassian.fugue.Option<Comment> findDuplicateComment(Iterable<Comment> existingComments)
Deprecated.since 7.0.1. UseNewCommentDeduplicator.getDuplicateComment(Iterable)
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:
findDuplicateComment
in interfaceNewCommentDeduplicator
-
newCommentSaved
public void newCommentSaved(Comment comment)
Description copied from interface:NewCommentDeduplicator
Called when a new comment has been saved- Specified by:
newCommentSaved
in interfaceNewCommentDeduplicator
-
-