public class GitHubAccessor extends Object
Modifier and Type | Class and Description |
---|---|
static class |
GitHubAccessor.GitHubException |
Constructor and Description |
---|
GitHubAccessor(String username,
String password) |
Modifier and Type | Method and Description |
---|---|
Iterable<String> |
getAccessibleRepositories() |
Map<String,Iterable<String>> |
getAccessibleRepositoriesAndBranches() |
Iterable<String> |
getBranches(String userRepo) |
Iterable<String> |
getOrganisationRepositories(String org) |
protected Pair<String,com.google.common.collect.Multimap<String,String>> |
getStringFromUrl(String url)
Get a string from a given URL.
|
Iterable<String> |
getUserOrganisations() |
Iterable<String> |
getUserRepositories() |
public Iterable<String> getAccessibleRepositories() throws IOException, GitHubAccessor.GitHubException
public Map<String,Iterable<String>> getAccessibleRepositoriesAndBranches() throws IOException, GitHubAccessor.GitHubException
public Iterable<String> getBranches(String userRepo) throws IOException, GitHubAccessor.GitHubException
public Iterable<String> getUserOrganisations() throws IOException, GitHubAccessor.GitHubException
public Iterable<String> getUserRepositories() throws IOException, GitHubAccessor.GitHubException
public Iterable<String> getOrganisationRepositories(String org) throws IOException, GitHubAccessor.GitHubException
protected Pair<String,com.google.common.collect.Multimap<String,String>> getStringFromUrl(String url) throws IOException
url
- url to GET from.IOException
- if a problem occurred in the IO layer.Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.
View cookie preferences