Interface BitbucketClientFactory
-
- All Known Implementing Classes:
BitbucketClientFactoryImpl
public interface BitbucketClientFactory
Factory for Bitbucket Clients.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BitbucketAuthenticatedUserClient
getAuthenticatedUserClient()
Return a client that can return the username for the credentials used.BitbucketCapabilitiesClient
getCapabilityClient()
Construct a client that can retrieve the advertised capabilities from Bitbucket.BitbucketMirrorClient
getMirroredRepositoriesClient(int repositoryId)
Construct a client that can retrieve the list of mirrored repositories for a givenrepoId
from Bitbucket.BitbucketProjectClient
getProjectClient(String projectKey)
Return a project client.BitbucketSearchClient
getSearchClient(String projectName)
Return a search client
-
-
-
Method Detail
-
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 givenrepoId
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
-
-