Interface BitbucketClientFactory
- All Known Implementing Classes:
BitbucketClientFactoryImpl
public interface BitbucketClientFactory
Factory for Bitbucket Clients.
-
Method Summary
Modifier and TypeMethodDescriptionReturn a client that can return the username for the credentials used.Construct a client that can retrieve the advertised capabilities from Bitbucket.getMirroredRepositoriesClient(int repositoryId) Construct a client that can retrieve the list of mirrored repositories for a givenrepoIdfrom Bitbucket.getProjectClient(String projectKey) Return a project client.getSearchClient(String projectName) Return a search client
-
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
Construct a client that can retrieve the list of mirrored repositories for a givenrepoIdfrom Bitbucket.- Parameters:
repositoryId- the repositoryId- Returns:
- a client that is ready to use
-
getProjectClient
Return a project client.- Returns:
- a client that is ready to use
-
getSearchClient
Return a search client- Parameters:
projectName- the project name to search for- Returns:
- a client that is ready to use
-