Class FileEditedEvent

All Implemented Interfaces:
RepositoryRefsChangedEvent, Serializable

@AsynchronousPreferred public class FileEditedEvent extends BranchChangedEvent
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.

Since:
4.13
See Also:
  • Constructor Details

    • FileEditedEvent

      public FileEditedEvent(@Nonnull Object source, @Nonnull Repository repository, @Nonnull Branch branch, @Nonnull RefChange refChange, @Nonnull String path, @Nonnull InputSupplier<InputStream> content, @Nonnull String message)
      Parameters:
      source - the object on which the event initially occurred
      repository - the repository the file is in
      branch - the branch the file is on
      refChange - the ref change
      path - path to the file
      content - the new content of the file
      message - the commit message
      Since:
      5.0
  • Method Details

    • getContent

      @Nonnull public InputSupplier<InputStream> getContent()
      Returns:
      the new content of the edited file
      Since:
      5.0
    • getMessage

      @Nonnull public String getMessage()
      Returns:
      the commit message
      Since:
      5.0
    • getPath

      @Nonnull public String getPath()
      Returns:
      the path of the edited (or created) file