Package com.atlassian.bamboo.validation
Interface ValidationFunctionFactory
- All Known Implementing Classes:
ValidationFunctionFactoryImpl
public interface ValidationFunctionFactory
An utility bean for creating field validation functions.
- See Also:
-
Method Summary
Modifier and TypeMethodDescription@NotNull ValidationFunction
Validation function that verifies if anImmutableChain
with the given key exists.@NotNull ValidationFunction
isJobKeyFromChain
(@NotNull ImmutableChain chain) Validation function that verifies if a job key belongs to a specificImmutableChain
.@NotNull ValidationFunction
Validation function that verifies that a job key is unique.@NotNull ValidationFunction
Validation function that verifies if anImmutableJob
with the given key exists.
-
Method Details
-
jobExists
Validation function that verifies if anImmutableJob
with the given key exists.- Returns:
- a validation function for a field containing a job key
-
chainExists
Validation function that verifies if anImmutableChain
with the given key exists.- Returns:
- a validation function for a field containing a chain key
-
isJobKeyFromChain
Validation function that verifies if a job key belongs to a specificImmutableChain
.- Parameters:
chain
- a chain- Returns:
- a validation function for a field containing a job key
-
isUniqueJobKey
Validation function that verifies that a job key is unique.- Returns:
- a validation function for a field containing a job key
-