public interface ScmConnection
| Modifier and Type | Method and Description |
|---|---|
BrowseResultDto |
browse(BrowseDto dto)
Searches the repository's files to make a list of them
|
CommitResultDto |
commit(CommitDto dto)
Makes a commit of the changed made to the edited file
|
File |
getDiffs(String path,
String username,
String password,
String revision1,
String revision2)
Gives the content of a file at the specified revision
|
File |
getFileContent(String path,
String username,
String password)
Gives the content of a file
|
File |
getFileContentAtRevision(String path,
String username,
String password,
String revision)
Gives the content of a file at the specified revision
|
String |
getFileName()
Gives the name of the edited file
|
String |
getFilePath(String address,
String repositoryRoot,
String username,
String password)
Gives the path to use to get a file from the repository
|
String |
getHeadRevisionNumber(String path,
String username,
String password)
Gives the number of the head revision
|
String |
getRepositoryId()
Gives the repository's unique identifier
|
Map<ScmRevision,String> |
getRevisions(String address,
String username,
String password)
Gives a list of the important revisions for the file at the given address
|
BrowseResultDto browse(BrowseDto dto)
dto - the DTO which contains all the parametersCommitResultDto commit(CommitDto dto)
dto - the DTO which contains all the parametersFile getFileContent(String path, String username, String password) throws AuthenticationException
path - the path to the file to get the content fromusername - the user's login for the SCMpassword - the user's password for the SCMAuthenticationException - if there is a problem during the authentication processString getHeadRevisionNumber(String path, String username, String password) throws AuthenticationException
path - the path to the SCMusername - the user's login for the SCMpassword - the user's password for the SCMAuthenticationException - if there is a problem during the authentication processString getRepositoryId()
String getFileName()
String getFilePath(String address, String repositoryRoot, String username, String password)
address - the full address of the file on the repositoryrepositoryRoot - the address of the repository's rootusername - the user's login for the SCMpassword - the user's password for the SCMMap<ScmRevision,String> getRevisions(String address, String username, String password) throws AuthenticationException
address - the file's addressusername - the username to use to connect to the repositorypassword - the password to use to connect to the repositoryAuthenticationException - if there is a problem during the authentication processFile getFileContentAtRevision(String path, String username, String password, String revision) throws AuthenticationException
path - the path to the file to get the content fromusername - the user's login for the SCMpassword - the user's password for the SCMrevision - the revision ID to use to get the file contentAuthenticationException - if there is a problem during the authentication processFile getDiffs(String path, String username, String password, String revision1, String revision2) throws AuthenticationException
path - the path to the file to get the content fromusername - the user's login for the SCMpassword - the user's password for the SCMrevision1 - one of the revisions ID to comparerevision2 - the other revision ID to compareAuthenticationException - if there is a problem during the authentication processCopyright © 2009–2015 CodeLutin. All rights reserved.