public class GitProvider extends Object implements ScmProvider
| Modifier and Type | Field and Description |
|---|---|
protected String |
address
the repository's address
|
| Constructor and Description |
|---|
GitProvider() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addressSeemsCompatible(String address) |
String |
changeBranch(String branchName,
String pathToLocalRepos,
String username,
String password) |
String |
createBranch(CreateBranchDto dto) |
boolean |
filesDirectlyAccessible() |
ScmConnection |
getConnection(String address,
String pathToLocalRepos) |
String |
getDefaultBranchName() |
ScmFileManager |
getFileManager(ScmConnection connection) |
List<String> |
listBranches(String address,
String username,
String password) |
boolean |
supportsBranches() |
boolean |
supportsPush() |
protected String address
public boolean supportsBranches()
supportsBranches in interface ScmProviderpublic List<String> listBranches(String address, String username, String password) throws OperationNotSupportedException
listBranches in interface ScmProviderOperationNotSupportedExceptionpublic String createBranch(CreateBranchDto dto) throws OperationNotSupportedException, AuthenticationException, RepositoryNotFoundException
createBranch in interface ScmProviderOperationNotSupportedExceptionAuthenticationExceptionRepositoryNotFoundExceptionpublic String changeBranch(String branchName, String pathToLocalRepos, String username, String password) throws OperationNotSupportedException
changeBranch in interface ScmProviderOperationNotSupportedExceptionpublic boolean supportsPush()
supportsPush in interface ScmProviderpublic boolean filesDirectlyAccessible()
filesDirectlyAccessible in interface ScmProviderpublic ScmConnection getConnection(String address, String pathToLocalRepos)
getConnection in interface ScmProviderpublic ScmFileManager getFileManager(ScmConnection connection)
getFileManager in interface ScmProviderpublic boolean addressSeemsCompatible(String address)
addressSeemsCompatible in interface ScmProviderpublic String getDefaultBranchName() throws OperationNotSupportedException
getDefaultBranchName in interface ScmProviderOperationNotSupportedExceptionCopyright © 2015–2017 CodeLutin. All rights reserved.