Class AttachmentEvent

java.lang.Object
java.util.EventObject
com.atlassian.bitbucket.event.ApplicationEvent
com.atlassian.bitbucket.event.attachment.AttachmentEvent
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AttachmentDeletedEvent, AttachmentDeletionRequestedEvent, AttachmentSavedEvent, AttachmentSaveRequestedEvent

@TransactionAware public class AttachmentEvent extends ApplicationEvent
Base type for all attachment related events.
Since:
7.0
See Also:
  • Constructor Details

    • AttachmentEvent

      protected AttachmentEvent(@Nonnull Object source, @Nonnull Repository repository, @Nonnull Attachment attachment)
      Construct a new AttachmentEvent.
      Parameters:
      source - the component raising the event
      repository - the repository
      attachment - the attachment
  • Method Details

    • getAttachment

      @Nonnull public Attachment getAttachment()
    • getRepository

      @Nonnull public Repository getRepository()