Interface BitbucketClientFactory

All Known Implementing Classes:
BitbucketClientFactoryImpl

public interface BitbucketClientFactory
Factory for Bitbucket Clients.
  • Method Details

    • getAuthenticatedUserClient

      BitbucketAuthenticatedUserClient getAuthenticatedUserClient()
      Return a client that can return the username for the credentials used.
      Returns:
      a client that is ready to use
    • getCapabilityClient

      BitbucketCapabilitiesClient getCapabilityClient()
      Construct a client that can retrieve the advertised capabilities from Bitbucket. The client is thread safe and can be used multiple times.
      Returns:
      a client that is ready to use
    • getMirroredRepositoriesClient

      BitbucketMirrorClient getMirroredRepositoriesClient(int repositoryId)
      Construct a client that can retrieve the list of mirrored repositories for a given repoId from Bitbucket.
      Parameters:
      repositoryId - the repositoryId
      Returns:
      a client that is ready to use
    • getProjectClient

      BitbucketProjectClient getProjectClient(String projectKey)
      Return a project client.
      Returns:
      a client that is ready to use
    • getSearchClient

      BitbucketSearchClient getSearchClient(String projectName)
      Return a search client
      Parameters:
      projectName - the project name to search for
      Returns:
      a client that is ready to use