@AsynchronousPreferred public class

FileEditedEvent

extends BranchChangedEvent
java.lang.Object
   ↳ java.util.EventObject
     ↳ com.atlassian.bitbucket.event.ApplicationEvent
       ↳ com.atlassian.bitbucket.event.repository.RepositoryEvent
         ↳ com.atlassian.bitbucket.event.repository.AbstractRepositoryRefsChangedEvent
           ↳ com.atlassian.bitbucket.event.branch.BranchChangedEvent
             ↳ com.atlassian.bitbucket.event.content.FileEditedEvent

Class Overview

An event that is raised after a file is edited on the server.

Listeners that are interested in all repository changes should listen for RepositoryRefsChangedEvents instead.

Summary

[Expand]
Inherited Fields
From class com.atlassian.bitbucket.event.branch.BranchChangedEvent
From class com.atlassian.bitbucket.event.repository.AbstractRepositoryRefsChangedEvent
From class java.util.EventObject
Public Constructors
FileEditedEvent(Object source, Repository repository, Branch branch, RefChange refChange, String path, InputSupplier<InputStream> content, String message)
Public Methods
@Nonnull InputSupplier<InputStream> getContent()
@Nonnull String getMessage()
@Nonnull String getPath()
[Expand]
Inherited Methods
From class com.atlassian.bitbucket.event.branch.BranchChangedEvent
From class com.atlassian.bitbucket.event.repository.AbstractRepositoryRefsChangedEvent
From class com.atlassian.bitbucket.event.repository.RepositoryEvent
From class com.atlassian.bitbucket.event.ApplicationEvent
From class java.util.EventObject
From class java.lang.Object
From interface com.atlassian.bitbucket.event.repository.RepositoryRefsChangedEvent

Public Constructors

public FileEditedEvent (Object source, Repository repository, Branch branch, RefChange refChange, String path, InputSupplier<InputStream> content, String message)

Public Methods

@Nonnull public InputSupplier<InputStream> getContent ()

Returns
  • the new content of the edited file

@Nonnull public String getMessage ()

Returns
  • the commit message

@Nonnull public String getPath ()

Returns
  • the path of the edited (or created) file