Package org.projectnessie.api.v2.params
Interface Transplant
- All Superinterfaces:
BaseMergeTransplant
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidValidation rule usingValidation.validateHashOrRelativeSpec(String)(String)}.@NotNull @NotNull @Size @Size(min=1) List<@Pattern(regexp="^([0-9a-fA-F]{8,64})?((?:([~*^])([0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}[.][0-9]{1,9}Z|([0-9]+)))*)$",message="Hash with optional relative part must consist of either a valid commit hash (which in turn must consist of the hex representation of 4-32 bytes), or a valid relative part (which must be either \'~\' + a number representing the n-th predecessor of a commit, \'^\' + a number representing the n-th parent within a commit, or \'*\' + a number representing the created timestamp of a commit, in milliseconds since epoch or in ISO-8601 format), or both.") @Pattern(regexp="^([0-9a-fA-F]{8,64})?((?:([~*^])([0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}[.][0-9]{1,9}Z|([0-9]+)))*)$",message="Hash with optional relative part must consist of either a valid commit hash (which in turn must consist of the hex representation of 4-32 bytes), or a valid relative part (which must be either \'~\' + a number representing the n-th predecessor of a commit, \'^\' + a number representing the n-th parent within a commit, or \'*\' + a number representing the created timestamp of a commit, in milliseconds since epoch or in ISO-8601 format), or both.") String>The hashes of commits that should be transplanted into the target branch.@Size @Size(min=1) StringMethods inherited from interface org.projectnessie.api.v2.params.BaseMergeTransplant
getDefaultKeyMergeMode, getFromRefName, getKeyMergeModes, isDryRun, isFetchAdditionalInfo, isReturnConflictAsResult
-
Method Details
-
getMessage
- Specified by:
getMessagein interfaceBaseMergeTransplant
-
getHashesToTransplant
@NotNull @NotNull @Size @Size(min=1) @NotNull @NotNull @Size @Size(min=1) List<@Pattern(regexp="^([0-9a-fA-F]{8,64})?((?:([~*^])([0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}[.][0-9]{1,9}Z|([0-9]+)))*)$",message="Hash with optional relative part must consist of either a valid commit hash (which in turn must consist of the hex representation of 4-32 bytes), or a valid relative part (which must be either \'~\' + a number representing the n-th predecessor of a commit, \'^\' + a number representing the n-th parent within a commit, or \'*\' + a number representing the created timestamp of a commit, in milliseconds since epoch or in ISO-8601 format), or both.") @Pattern(regexp="^([0-9a-fA-F]{8,64})?((?:([~*^])([0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}[.][0-9]{1,9}Z|([0-9]+)))*)$",message="Hash with optional relative part must consist of either a valid commit hash (which in turn must consist of the hex representation of 4-32 bytes), or a valid relative part (which must be either \'~\' + a number representing the n-th predecessor of a commit, \'^\' + a number representing the n-th parent within a commit, or \'*\' + a number representing the created timestamp of a commit, in milliseconds since epoch or in ISO-8601 format), or both.") String> getHashesToTransplant()The hashes of commits that should be transplanted into the target branch.Since Nessie spec 2.1.1, hashes can be absolute or relative.
-
checkHashes
@Check default void checkHashes()Validation rule usingValidation.validateHashOrRelativeSpec(String)(String)}.
-