T - Type of configuration datapublic interface BuildSvnRevisionLink<T>
| Modifier and Type | Method and Description |
|---|---|
T |
clone(T data,
java.util.function.Function<java.lang.String,java.lang.String> replacementFunction)
Clones the configuration.
|
java.lang.String |
getBuildPath(T data,
net.nemerosa.ontrack.model.structure.Build build,
SVNBranchConfigurationProperty branchConfigurationProperty)
Gets the path attached to a build.
|
java.util.Optional<net.nemerosa.ontrack.model.structure.Build> |
getEarliestBuild(T data,
net.nemerosa.ontrack.model.structure.Branch branch,
SVNLocation location,
SVNLocation firstCopy,
SVNBranchConfigurationProperty branchConfigurationProperty)
Gets the earliest build after a given SVN location.
|
net.nemerosa.ontrack.model.form.Form |
getForm()
Creates a form for the edition of the link configuration.
|
java.lang.String |
getId()
ID of the link
|
java.lang.String |
getName()
Display name for the link
|
java.util.OptionalLong |
getRevision(T data,
net.nemerosa.ontrack.model.structure.Build build,
SVNBranchConfigurationProperty branchConfigurationProperty)
Gets the revision attached to a build.
|
boolean |
isValidBuildName(T data,
java.lang.String name)
Tests if the name of a build for a branch does comply with the build link.
|
T |
parseData(com.fasterxml.jackson.databind.JsonNode node)
Parses the configuration from a JSON node
|
com.fasterxml.jackson.databind.JsonNode |
toJson(T data)
Formats the configuration data as JSON
|
java.lang.String getId()
java.lang.String getName()
T clone(T data, java.util.function.Function<java.lang.String,java.lang.String> replacementFunction)
T parseData(com.fasterxml.jackson.databind.JsonNode node)
com.fasterxml.jackson.databind.JsonNode toJson(T data)
net.nemerosa.ontrack.model.form.Form getForm()
boolean isValidBuildName(T data, java.lang.String name)
data - Link configurationname - Name of the build to testtrue if the build name is OKjava.util.OptionalLong getRevision(T data, net.nemerosa.ontrack.model.structure.Build build, SVNBranchConfigurationProperty branchConfigurationProperty)
data - Link configurationbuild - Build to get the revision forbranchConfigurationProperty - SVN branch configurationjava.lang.String getBuildPath(T data, net.nemerosa.ontrack.model.structure.Build build, SVNBranchConfigurationProperty branchConfigurationProperty)
data - Link configurationbuild - BuildbranchConfigurationProperty - SVN branch configurationjava.util.Optional<net.nemerosa.ontrack.model.structure.Build> getEarliestBuild(T data, net.nemerosa.ontrack.model.structure.Branch branch, SVNLocation location, SVNLocation firstCopy, SVNBranchConfigurationProperty branchConfigurationProperty)