public class BitbucketCloudPullRequestDetector extends Object implements VcsPullRequestDetector
Modifier and Type | Field and Description |
---|---|
protected Supplier<com.sun.jersey.api.client.Client> |
bitbucketClientSupplier |
Constructor and Description |
---|
BitbucketCloudPullRequestDetector() |
Modifier and Type | Method and Description |
---|---|
protected void |
addFilters(com.sun.jersey.api.client.WebResource resource,
com.sun.jersey.api.client.filter.ClientFilter... filters) |
protected com.sun.jersey.api.client.filter.HTTPBasicAuthFilter |
getAuthFilter(String username,
String password) |
protected com.sun.jersey.api.client.filter.LoggingFilter |
getLoggingFilter(org.apache.log4j.Logger log) |
List<VcsPullRequest> |
getOpenPullRequests(VcsRepositoryData repositoryData)
List of open pull requests that are discovered in the repository. |
ContextualVcsId |
getVcsIdForExecutor(VcsRepositoryData vcsRepositoryData)
Returned id has to fulfill the following:
Given two VcsRepositoryData objects A and B, and executor e returning equal ContextualVcsId (in terms of equals()),
for any operation foo() provided by the executor,
the calls e::foo(A) and e::foo(B) should be equivalent.
|
protected com.sun.jersey.api.client.WebResource.Builder |
prepareResourceCall(URI requestUri,
com.sun.jersey.api.client.filter.ClientFilter... filters) |
void |
setCredentialsAccessor(CredentialsAccessor credentialsAccessor) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
usePollingForPullRequestDetection
protected final Supplier<com.sun.jersey.api.client.Client> bitbucketClientSupplier
@NotNull public List<VcsPullRequest> getOpenPullRequests(@NotNull VcsRepositoryData repositoryData) throws RepositoryException
VcsPullRequestDetector
List
of open pull requests that are discovered in the repository. Used for monitoring repositories for new PRs.getOpenPullRequests
in interface VcsPullRequestDetector
repositoryData
- repositoryList
of open pull requests. May be empty.RepositoryException
@Nullable public ContextualVcsId getVcsIdForExecutor(@NotNull VcsRepositoryData vcsRepositoryData)
IdentifyingExecutor
VcsBranchDetector
. If they also point
to the same branch, they are considered equal in context of VcsChangeDetector
getVcsIdForExecutor
in interface IdentifyingExecutor<VcsPullRequestDetector>
public void setCredentialsAccessor(CredentialsAccessor credentialsAccessor)
@Nullable protected com.sun.jersey.api.client.filter.HTTPBasicAuthFilter getAuthFilter(String username, String password)
@Nullable protected com.sun.jersey.api.client.filter.LoggingFilter getLoggingFilter(org.apache.log4j.Logger log)
protected void addFilters(com.sun.jersey.api.client.WebResource resource, @NotNull com.sun.jersey.api.client.filter.ClientFilter... filters)
@NotNull protected com.sun.jersey.api.client.WebResource.Builder prepareResourceCall(URI requestUri, @NotNull com.sun.jersey.api.client.filter.ClientFilter... filters)
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.