Package com.google.gerrit.server
Interface ChangeDraftUpdate
- All Known Implementing Classes:
ChangeDraftNotesUpdate
public interface ChangeDraftUpdate
An interface for updating draft comments.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAllDraftCommentsForDeletion
(List<Comment> comments) Marks all comments for deletion.void
Marks a comment for deletion.void
Marks a comment for deletion.void
Creates a draft comment.
-
Method Details
-
putDraftComment
Creates a draft comment. -
markDraftCommentAsPublished
Marks a comment for deletion. Called when the comment is deleted because the user published it.NOTE for implementers: The actual deletion of a published draft should only happen after the published comment is successfully updated. For more context, see
NoteDbUpdateManager.execute(boolean)
.TODO(nitzan) - add generalized support for the above sync issue. The implementation should support deletion of published drafts from multiple ChangeDraftUpdateFactory instances.
-
addDraftCommentForDeletion
Marks a comment for deletion. Called when the comment is deleted because the user removed it. -
addAllDraftCommentsForDeletion
Marks all comments for deletion. Called when there are inconsistencies between the published comments storage and the drafts one.
-