@Component public class DefaultGitHubClient extends Object implements GitHubClient
| Constructor and Description |
|---|
DefaultGitHubClient(GitHubSettings settings,
Supplier<org.springframework.web.client.RestOperations> restOperationsSupplier) |
| Modifier and Type | Method and Description |
|---|---|
void |
fireGraphQL(GitHubRepo repo,
boolean firstRun,
Map<Long,String> existingPRMap,
Map<Long,String> existingIssueMap) |
List<Commit> |
getCommits() |
List<GitRequest> |
getIssues() |
String |
getLDAPDN(GitHubRepo repo,
String user) |
protected Map<String,String> |
getLdapMap() |
List<GitRequest> |
getPulls() |
GitHubRateLimit |
getRateLimit(GitHubRepo repo) |
long |
getRepoOffsetTime(GitHubRepo repo) |
protected void |
setLdapMap(Map<String,String> ldapMap) |
@Autowired public DefaultGitHubClient(GitHubSettings settings, Supplier<org.springframework.web.client.RestOperations> restOperationsSupplier)
public List<Commit> getCommits()
getCommits in interface GitHubClientpublic List<GitRequest> getPulls()
getPulls in interface GitHubClientpublic List<GitRequest> getIssues()
getIssues in interface GitHubClientpublic void fireGraphQL(GitHubRepo repo, boolean firstRun, Map<Long,String> existingPRMap, Map<Long,String> existingIssueMap) throws org.springframework.web.client.RestClientException, MalformedURLException, HygieiaException
fireGraphQL in interface GitHubClientorg.springframework.web.client.RestClientExceptionMalformedURLExceptionHygieiaExceptionpublic GitHubRateLimit getRateLimit(GitHubRepo repo) throws MalformedURLException, HygieiaException
getRateLimit in interface GitHubClientMalformedURLExceptionHygieiaExceptionpublic String getLDAPDN(GitHubRepo repo, String user)
getLDAPDN in interface GitHubClientpublic long getRepoOffsetTime(GitHubRepo repo)
getRepoOffsetTime in interface GitHubClientCopyright © 2018 Pivotal Software, Inc.. All rights reserved.