Package com.atlassian.bamboo.validation
Class ValidationFunctionFactoryImpl
java.lang.Object
com.atlassian.bamboo.validation.ValidationFunctionFactoryImpl
- All Implemented Interfaces:
ValidationFunctionFactory
-
Constructor Summary
-
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.
-
Constructor Details
-
ValidationFunctionFactoryImpl
public ValidationFunctionFactoryImpl()
-
-
Method Details
-
jobExists
Description copied from interface:ValidationFunctionFactory
Validation function that verifies if anImmutableJob
with the given key exists.- Specified by:
jobExists
in interfaceValidationFunctionFactory
- Returns:
- a validation function for a field containing a job key
-
chainExists
Description copied from interface:ValidationFunctionFactory
Validation function that verifies if anImmutableChain
with the given key exists.- Specified by:
chainExists
in interfaceValidationFunctionFactory
- Returns:
- a validation function for a field containing a chain key
-
isJobKeyFromChain
@NotNull public @NotNull ValidationFunction isJobKeyFromChain(@NotNull @NotNull ImmutableChain chain) Description copied from interface:ValidationFunctionFactory
Validation function that verifies if a job key belongs to a specificImmutableChain
.- Specified by:
isJobKeyFromChain
in interfaceValidationFunctionFactory
- Parameters:
chain
- a chain- Returns:
- a validation function for a field containing a job key
-
isUniqueJobKey
Description copied from interface:ValidationFunctionFactory
Validation function that verifies that a job key is unique.- Specified by:
isUniqueJobKey
in interfaceValidationFunctionFactory
- Returns:
- a validation function for a field containing a job key
-