public abstract class GitRepoClientSupport extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
address |
protected String |
password |
protected String |
username |
Constructor and Description |
---|
GitRepoClientSupport(String address,
String username,
String password) |
Modifier and Type | Method and Description |
---|---|
RepositoryDTO |
createRepository(CreateRepositoryDTO createRepository) |
protected abstract <T> T |
createWebClient(Class<T> clientType) |
WebHookDTO |
createWebhook(String owner,
String repo,
CreateWebhookDTO dto) |
String |
getAddress() |
protected GitApi |
getApi() |
RepositoryDTO |
getOrganisationRepository(String organisation,
String repo) |
String |
getPassword() |
InputStream |
getRawFile(String username,
String repo,
String branch,
String path) |
RepositoryDTO |
getRepository(String owner,
String repo) |
String |
getUsername() |
List<WebHookDTO> |
getWebhooks(String owner,
String repo) |
List<RepositoryDTO> |
listOrganisationRepositories(String organisation) |
List<RepositoryDTO> |
listRepositories() |
List<OrganisationDTO> |
listUserOrganisations() |
protected final String address
protected final String username
protected final String password
public List<RepositoryDTO> listRepositories()
public List<RepositoryDTO> listOrganisationRepositories(String organisation)
public List<OrganisationDTO> listUserOrganisations()
public RepositoryDTO getRepository(String owner, String repo)
public RepositoryDTO getOrganisationRepository(String organisation, String repo)
public InputStream getRawFile(String username, String repo, String branch, String path)
public WebHookDTO createWebhook(String owner, String repo, CreateWebhookDTO dto)
public List<WebHookDTO> getWebhooks(String owner, String repo)
public RepositoryDTO createRepository(CreateRepositoryDTO createRepository)
protected GitApi getApi()
public String getAddress()
public String getPassword()
public String getUsername()
protected abstract <T> T createWebClient(Class<T> clientType)
Copyright © 2011–2015 Red Hat. All rights reserved.