Interface IntegrityCheckCallback
public interface IntegrityCheckCallback
Used by an SCM to report integrity check results as they become available.
- Since:
- 4.12
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onError
(com.atlassian.bitbucket.i18n.KeyedMessage message) Called when the SCM encounters a problem that cannot be expressed in terms of pull requests or repositories.void
onError
(com.atlassian.bitbucket.repository.Repository repository, com.atlassian.bitbucket.i18n.KeyedMessage message) Called when the SCM encounters a problem while checking the integrity of a specific repository.void
onExtraPullRequest
(com.atlassian.bitbucket.repository.Repository repository, long pullRequestId) Invoked when the SCM encounters a pull request that does not exist according to the host application.void
onMissingPullRequest
(com.atlassian.bitbucket.repository.Repository repository, long pullRequestId) Invoked when the required SCM-level data for a pull request is missing.
-
Method Details
-
onError
void onError(@Nonnull com.atlassian.bitbucket.i18n.KeyedMessage message) Called when the SCM encounters a problem that cannot be expressed in terms of pull requests or repositories.- Parameters:
message
- a detailed description that can be used by administrators to debug the problem
-
onError
void onError(@Nonnull com.atlassian.bitbucket.repository.Repository repository, @Nonnull com.atlassian.bitbucket.i18n.KeyedMessage message) Called when the SCM encounters a problem while checking the integrity of a specific repository.- Parameters:
repository
- the repository in which the error originatedmessage
- a detailed description that can be used by administrators to debug the problem
-
onExtraPullRequest
void onExtraPullRequest(@Nonnull com.atlassian.bitbucket.repository.Repository repository, long pullRequestId) Invoked when the SCM encounters a pull request that does not exist according to the host application.- Parameters:
repository
- the repository in which the pull request residespullRequestId
- the ID of the pull request
-
onMissingPullRequest
void onMissingPullRequest(@Nonnull com.atlassian.bitbucket.repository.Repository repository, long pullRequestId) Invoked when the required SCM-level data for a pull request is missing.- Parameters:
repository
- the repository in which the pull request residespullRequestId
- the ID of the pull request
-