Class BitbucketServerStateProvider
- java.lang.Object
-
- com.atlassian.bamboo.plugins.stash.BitbucketServerStateProvider
-
public class BitbucketServerStateProvider extends Object
Provides Bitbucket instance state.- Since:
- 9.5
-
-
Constructor Summary
Constructors Constructor Description BitbucketServerStateProvider(com.atlassian.stash.rest.client.applinks.ApplinkStashClientFactory stashClientFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected @NotNull StashRestResponsedoStatusRestCallViaApplink(@NotNull com.atlassian.applinks.api.ApplicationLink applicationLink)@NotNull Optional<String>getStateError(@NotNull VcsRepositoryData repositoryData)Gets the Bitbucket instance state error message if any.
-
-
-
Method Detail
-
getStateError
@NotNull public @NotNull Optional<String> getStateError(@NotNull @NotNull VcsRepositoryData repositoryData)
Gets the Bitbucket instance state error message if any. If nothing is returned, the instance is operational and in a RUNNING state.- Parameters:
repositoryData- repository data to check- Returns:
- error message if the one exists, empty otherwise
-
doStatusRestCallViaApplink
@VisibleForTesting @NotNull protected @NotNull StashRestResponse doStatusRestCallViaApplink(@NotNull @NotNull com.atlassian.applinks.api.ApplicationLink applicationLink) throws CredentialsRequiredContextException
-
-