@Component public class DefaultGitHubClient extends Object implements GitHubClient
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultGitHubClient.RedirectedStatus |
| Constructor and Description |
|---|
DefaultGitHubClient(GitHubSettings settings,
com.capitalone.dashboard.client.RestClient restClient) |
| Modifier and Type | Method and Description |
|---|---|
DefaultGitHubClient.RedirectedStatus |
checkForRedirectedRepo(GitHubRepo repo) |
void |
fireGraphQL(GitHubRepo repo,
boolean firstRun,
Map<Long,String> existingPRMap,
Map<Long,String> existingIssueMap) |
List<com.capitalone.dashboard.model.Commit> |
getCommits() |
List<com.capitalone.dashboard.model.GitRequest> |
getIssues() |
String |
getLDAPDN(GitHubRepo repo,
String user) |
protected Map<String,String> |
getLdapMap() |
List<com.capitalone.dashboard.model.GitRequest> |
getPulls() |
GitHubRateLimit |
getRateLimit(GitHubRepo repo) |
long |
getRepoOffsetTime(GitHubRepo repo) |
protected void |
setLdapMap(Map<String,String> ldapMap) |
@Autowired public DefaultGitHubClient(GitHubSettings settings, com.capitalone.dashboard.client.RestClient restClient)
public List<com.capitalone.dashboard.model.Commit> getCommits()
getCommits in interface GitHubClientpublic List<com.capitalone.dashboard.model.GitRequest> getPulls()
getPulls in interface GitHubClientpublic List<com.capitalone.dashboard.model.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, com.capitalone.dashboard.misc.HygieiaException
fireGraphQL in interface GitHubClientorg.springframework.web.client.RestClientExceptionMalformedURLExceptioncom.capitalone.dashboard.misc.HygieiaExceptionpublic DefaultGitHubClient.RedirectedStatus checkForRedirectedRepo(GitHubRepo repo) throws MalformedURLException, com.capitalone.dashboard.misc.HygieiaException
MalformedURLExceptioncom.capitalone.dashboard.misc.HygieiaExceptionpublic GitHubRateLimit getRateLimit(GitHubRepo repo) throws MalformedURLException, com.capitalone.dashboard.misc.HygieiaException
getRateLimit in interface GitHubClientMalformedURLExceptioncom.capitalone.dashboard.misc.HygieiaExceptionpublic String getLDAPDN(GitHubRepo repo, String user)
getLDAPDN in interface GitHubClientpublic long getRepoOffsetTime(GitHubRepo repo)
getRepoOffsetTime in interface GitHubClientCopyright © 2019 Hygieia. All rights reserved.