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() |
String |
getPassword() |
String |
getUsername() |
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 WebHookDTO createWebhook(String owner, String repo, CreateWebhookDTO dto)
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.