public interface SVNService
extends net.nemerosa.ontrack.extension.scm.service.SCMService
| Modifier and Type | Field and Description |
|---|---|
static net.nemerosa.ontrack.job.JobCategory |
SVN_JOB_CATEGORY |
| Modifier and Type | Method and Description |
|---|---|
SVNChangeLogRevision |
createChangeLogRevision(SVNRepository repository,
SVNRevisionInfo basicInfo) |
void |
forEachConfiguredBranch(java.util.function.Predicate<SVNProjectConfigurationProperty> projectConfigurationPredicate,
java.util.function.BiConsumer<net.nemerosa.ontrack.model.structure.Branch,SVNBranchConfigurationProperty> branchConsumer) |
java.util.Optional<java.lang.String> |
getBasePath(SVNRepository svnRepository,
java.lang.String branchPath) |
java.util.List<java.lang.String> |
getBranches(net.nemerosa.ontrack.model.structure.Branch branch)
Gets the list of branches
|
SVNLocation |
getFirstCopyAfter(SVNRepository repository,
SVNLocation location) |
TCopyEvent |
getLastCopyEvent(int id,
java.lang.String tagPath,
long maxValue)
Gets the last copy event to this tag.
|
SVNRepository |
getRepository(java.lang.String name)
Loads a
SVNRepository using its
configuration name. |
SVNRepository |
getRequiredSVNRepository(net.nemerosa.ontrack.model.structure.Branch branch)
Gets the required configuration for a branch
|
SVNRevisionInfo |
getRevisionInfo(SVNRepository repository,
long revision)
Gets the information about a revision
|
SVNRevisionPaths |
getRevisionPaths(SVNRepository repository,
long revision)
Gets the list of changes for a revision
|
java.util.List<java.lang.Long> |
getRevisionsForIssueKey(SVNRepository repository,
java.lang.String key)
Gets the list of revisions for an issue in a repository
|
java.util.Optional<SVNRepository> |
getSVNRepository(net.nemerosa.ontrack.model.structure.Branch branch)
Gets the configuration for a branch
|
SVNSyncInfo |
getSyncInfo(net.nemerosa.ontrack.model.structure.ID branchId)
Gets the synchronisation information for a branch.
|
java.util.Optional<java.lang.String> |
getTagPathForTagName(SVNRepository svnRepository,
java.lang.String branchPath,
java.lang.String tagName)
Given a tag name and a base branch, returns the corresponding tag path.
|
java.util.Optional<SVNRepositoryIssue> |
searchIssues(SVNRepository repository,
java.lang.String token)
Searches a list of issues associated to this repository
|
SVNRevisionInfo getRevisionInfo(SVNRepository repository, long revision)
revision - Revision to get information aboutSVNRevisionPaths getRevisionPaths(SVNRepository repository, long revision)
java.util.List<java.lang.Long> getRevisionsForIssueKey(SVNRepository repository, java.lang.String key)
repository - Repository to get the info fromkey - Issue keySVNRepository getRepository(java.lang.String name)
SVNRepository using its
configuration name.name - Name of the SVNConfigurationjava.util.Optional<SVNRepositoryIssue> searchIssues(SVNRepository repository, java.lang.String token)
SVNChangeLogRevision createChangeLogRevision(SVNRepository repository, SVNRevisionInfo basicInfo)
void forEachConfiguredBranch(java.util.function.Predicate<SVNProjectConfigurationProperty> projectConfigurationPredicate, java.util.function.BiConsumer<net.nemerosa.ontrack.model.structure.Branch,SVNBranchConfigurationProperty> branchConsumer)
SVNSyncInfo getSyncInfo(net.nemerosa.ontrack.model.structure.ID branchId)
branchId - ID of the branchjava.util.Optional<SVNRepository> getSVNRepository(net.nemerosa.ontrack.model.structure.Branch branch)
SVNRepository getRequiredSVNRepository(net.nemerosa.ontrack.model.structure.Branch branch)
java.util.List<java.lang.String> getBranches(net.nemerosa.ontrack.model.structure.Branch branch)
TCopyEvent getLastCopyEvent(int id, java.lang.String tagPath, long maxValue)
id - Repository IDtagPath - Target of the copymaxValue - Maximum revisionjava.util.Optional<java.lang.String> getTagPathForTagName(SVNRepository svnRepository, java.lang.String branchPath, java.lang.String tagName)
svnRepository - Repository accessbranchPath - Branch or trunk pathtagName - Tag namejava.util.Optional<java.lang.String> getBasePath(SVNRepository svnRepository, java.lang.String branchPath)
SVNLocation getFirstCopyAfter(SVNRepository repository, SVNLocation location)