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
RepositoryRefsChangedEvent
s instead.
- Since:
- 4.13
- See Also:
-
Field Summary
Fields inherited from class com.atlassian.bitbucket.event.branch.BranchChangedEvent
branch
Fields inherited from class com.atlassian.bitbucket.event.repository.AbstractRepositoryRefsChangedEvent
EMPTY_HASH
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionFileEditedEvent
(Object source, Repository repository, Branch branch, RefChange refChange, String path, InputSupplier<InputStream> content, String message) -
Method Summary
Methods inherited from class com.atlassian.bitbucket.event.branch.BranchChangedEvent
getBranch
Methods inherited from class com.atlassian.bitbucket.event.repository.AbstractRepositoryRefsChangedEvent
getRefChanges
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.atlassian.bitbucket.event.repository.RepositoryRefsChangedEvent
getRepository, getUser
-
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 occurredrepository
- the repository the file is inbranch
- the branch the file is onrefChange
- the ref changepath
- path to the filecontent
- the new content of the filemessage
- 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
-