Class CommitDiscussionCommentModificationRequestedEvent
java.lang.Object
java.util.EventObject
com.atlassian.bitbucket.event.ApplicationEvent
com.atlassian.bitbucket.event.repository.RepositoryEvent
com.atlassian.bitbucket.event.commit.CommitDiscussionEvent
com.atlassian.bitbucket.event.commit.CommitDiscussionCommentEvent
com.atlassian.bitbucket.event.commit.CommitDiscussionCancelableCommentEvent
com.atlassian.bitbucket.event.commit.CommitDiscussionCommentModificationRequestedEvent
- All Implemented Interfaces:
CancelableEvent
,CancelState
,Serializable
public class CommitDiscussionCommentModificationRequestedEvent
extends CommitDiscussionCancelableCommentEvent
Event that is raised before a comment in a commit discussion is edited. This event is synchronous, allowing
listeners to perform operations in the same database transaction where the comment is edited.
This event is also cancelable
. A listener may prevent the comment from being edited by
canceling
this event. Throwing an exception will not prevent the comment from
being edited; the exception will be logged and ignored.
- Since:
- 6.6
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionCommitDiscussionCommentModificationRequestedEvent
(Object source, CommitDiscussion discussion, Comment comment, Comment parent, String previousText, CancelState cancelState) -
Method Summary
Methods inherited from class com.atlassian.bitbucket.event.commit.CommitDiscussionCancelableCommentEvent
cancel, isCanceled
Methods inherited from class com.atlassian.bitbucket.event.commit.CommitDiscussionCommentEvent
getComment, getCommentAction, getParent
Methods inherited from class com.atlassian.bitbucket.event.commit.CommitDiscussionEvent
getDiscussion
Methods inherited from class com.atlassian.bitbucket.event.repository.RepositoryEvent
getRepository
Methods inherited from class com.atlassian.bitbucket.event.ApplicationEvent
getDate, getUser
Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
CommitDiscussionCommentModificationRequestedEvent
public CommitDiscussionCommentModificationRequestedEvent(@Nonnull Object source, @Nonnull CommitDiscussion discussion, @Nonnull Comment comment, @Nullable Comment parent, @Nonnull String previousText, @Nonnull CancelState cancelState)
-
-
Method Details
-
getPreviousText
-