Class FileEditedEvent
- All Implemented Interfaces:
- RepositoryRefsChangedEvent,- Serializable
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:
- 
Field SummaryFields inherited from class com.atlassian.bitbucket.event.branch.BranchChangedEventbranchFields inherited from class com.atlassian.bitbucket.event.repository.AbstractRepositoryRefsChangedEventEMPTY_HASHFields inherited from class java.util.EventObjectsource
- 
Constructor SummaryConstructorsConstructorDescriptionFileEditedEvent(Object source, Repository repository, Branch branch, RefChange refChange, String path, InputSupplier<InputStream> content, String message) 
- 
Method SummaryMethods inherited from class com.atlassian.bitbucket.event.branch.BranchChangedEventgetBranchMethods inherited from class com.atlassian.bitbucket.event.repository.AbstractRepositoryRefsChangedEventgetRefChangesMethods inherited from class com.atlassian.bitbucket.event.repository.RepositoryEventgetRepositoryMethods inherited from class com.atlassian.bitbucket.event.ApplicationEventgetDate, getUserMethods inherited from class java.util.EventObjectgetSource, toStringMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.atlassian.bitbucket.event.repository.RepositoryRefsChangedEventgetRepository, getUser
- 
Constructor Details- 
FileEditedEventpublic 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- Returns:
- the new content of the edited file
- Since:
- 5.0
 
- 
getMessage- Returns:
- the commit message
- Since:
- 5.0
 
- 
getPath- Returns:
- the path of the edited (or created) file
 
 
-