public class

RepositoryPushNotification

extends AbstractRepositoryNotification
java.lang.Object
   ↳ com.atlassian.bitbucket.notification.AbstractNotification
     ↳ com.atlassian.bitbucket.notification.repository.AbstractRepositoryNotification
       ↳ com.atlassian.bitbucket.notification.repository.RepositoryPushNotification

Summary

Public Constructors
RepositoryPushNotification(ApplicationUser user, Date timestamp, Repository repository, Branch defaultBranch, boolean hasExtraRefChanges, Collection<DetailedRefChange> refChanges)
Public Methods
@Nonnull Optional<Branch> getDefaultBranch()
@Nonnull Optional<DetailedRefChange> getDefaultBranchChange()
@Nonnull Collection<DetailedRefChange> getRefChanges()
boolean hasExtraRefChanges()
[Expand]
Inherited Methods
From class com.atlassian.bitbucket.notification.repository.AbstractRepositoryNotification
From class com.atlassian.bitbucket.notification.AbstractNotification
From class java.lang.Object
From interface com.atlassian.bitbucket.notification.Notification
From interface com.atlassian.bitbucket.notification.repository.RepositoryNotification

Public Constructors

public RepositoryPushNotification (ApplicationUser user, Date timestamp, Repository repository, Branch defaultBranch, boolean hasExtraRefChanges, Collection<DetailedRefChange> refChanges)

Public Methods

@Nonnull public Optional<Branch> getDefaultBranch ()

@Nonnull public Optional<DetailedRefChange> getDefaultBranchChange ()

@Nonnull public Collection<DetailedRefChange> getRefChanges ()

public boolean hasExtraRefChanges ()

Returns
  • true if the push had extra ref changes not included in getRefChanges(), otherwise false