public interface ScmProvider
| Modifier and Type | Method and Description |
|---|---|
boolean |
addressSeemsCompatible(String address)
Tells whether the given address seems compatible with the SCM
|
String |
changeBranch(String branchName,
String pathToLocalRepos,
String username,
String password)
Changes the working branch for the local repository
|
String |
createBranch(CreateBranchDto dto)
Allows to create a new branch on the repository
|
boolean |
filesDirectlyAccessible()
Tells whether the repositories' files are directly accessible by their address
|
ScmConnection |
getConnection(String address,
String pathToLocalRepos)
Gives the connection to the SCM
|
String |
getDefaultBranchName()
Gives the name of the default branch if the SCM supports branches
|
ScmFileManager |
getFileManager(ScmConnection connection)
Gives the file manager for the given connection
|
List<String> |
listBranches(String address,
String username,
String password)
Makes a list of the repository's branches
|
boolean |
supportsBranches()
Tells whether the SCM supports branches
|
boolean |
supportsPush()
Tells whether the SCM allows to choose when the commits are pushed to the server
|
boolean supportsBranches()
List<String> listBranches(String address, String username, String password) throws OperationNotSupportedException
address - the repository's addressusername - the username used to connect to the SCMpassword - the password used to connect to the SCMOperationNotSupportedException - if the SCM doesn't support branchesString createBranch(CreateBranchDto dto) throws OperationNotSupportedException, AuthenticationException, RepositoryNotFoundException
dto - the DTO which contains all the parametersOperationNotSupportedException - if the SCM doesn't support branchesAuthenticationException - if there is an authentication problemRepositoryNotFoundException - if the repository could not be reachedString changeBranch(String branchName, String pathToLocalRepos, String username, String password) throws OperationNotSupportedException
branchName - the new working branchpathToLocalRepos - the path to the directory where the local repositories are storedusername - the username to use to connect to the repositorypassword - the password to use to connect to the repositoryOperationNotSupportedException - if the SCM doesn't support branchesboolean supportsPush()
boolean filesDirectlyAccessible()
ScmConnection getConnection(String address, String pathToLocalRepos)
address - the repository's addresspathToLocalRepos - the folder which will be used to store one client's repositoriesScmFileManager getFileManager(ScmConnection connection)
connection - the connection to the repositoryboolean addressSeemsCompatible(String address)
address - the repository's addressString getDefaultBranchName() throws OperationNotSupportedException
OperationNotSupportedException - if the SCM doesn't support branchesCopyright © 2009–2017 CodeLutin. All rights reserved.