Class BitBucketVcsInformationService
- java.lang.Object
-
- jetbrains.buildServer.vcshostings.bbcloud.BitBucketVcsInformationService
-
- All Implemented Interfaces:
ServerExtension
,TeamCityExtension
,VcsInformationService
public class BitBucketVcsInformationService extends Object implements VcsInformationService
-
-
Constructor Summary
Constructors Constructor Description BitBucketVcsInformationService(BitbucketClient client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VcsInformationProvider
createProvider(OAuthConnectionDescriptor connectionDescriptor, OAuthToken token)
Creates a VCS information provider that corresponds to the connection typeString
getVcsHostingType()
-
-
-
Constructor Detail
-
BitBucketVcsInformationService
public BitBucketVcsInformationService(BitbucketClient client)
-
-
Method Detail
-
getVcsHostingType
@NotNull public String getVcsHostingType()
- Specified by:
getVcsHostingType
in interfaceVcsInformationService
- Returns:
- The VCS hosting service type, the same value is returned by ConnectionProvider::getType
-
createProvider
@NotNull public VcsInformationProvider createProvider(@NotNull OAuthConnectionDescriptor connectionDescriptor, @NotNull OAuthToken token)
Description copied from interface:VcsInformationService
Creates a VCS information provider that corresponds to the connection type- Specified by:
createProvider
in interfaceVcsInformationService
- Parameters:
connectionDescriptor
- OAuth/GitHub App/etc connection descriptortoken
- permanent or refreshable token to be used by the provider for querying VCS hosting services- Returns:
- provider instance
-
-