Interface PluginIntegrityCheckCommandFactory


public interface PluginIntegrityCheckCommandFactory
A Command factory for SCM integrity checks.
Since:
4.12
  • Method Summary

    Modifier and Type
    Method
    Description
    com.atlassian.bitbucket.scm.Command<com.atlassian.bitbucket.scm.CommandResult>
    Instructs an SCM to perform integrity checks.
  • Method Details

    • checkIntegrity

      @Nonnull com.atlassian.bitbucket.scm.Command<com.atlassian.bitbucket.scm.CommandResult> checkIntegrity(@Nonnull IntegrityCheckContext context, @Nonnull IntegrityCheckCallback callback)
      Instructs an SCM to perform integrity checks. SCMs should use the context to obtain additional information needed to perform checks. Inconsistencies should be reported using the provided callback.
      Parameters:
      context - a context to be used to obtain additional information
      callback - a callback to report inconsistencies
      Returns:
      a result indicating the status of the integrity check command, this is not to be confused with the results reported via the callback.