Interface ValidationFunctionFactory

All Known Implementing Classes:
ValidationFunctionFactoryImpl

public interface ValidationFunctionFactory
An utility bean for creating field validation functions.
See Also:
  • Method Details

    • jobExists

      @NotNull @NotNull ValidationFunction jobExists()
      Validation function that verifies if an ImmutableJob with the given key exists.
      Returns:
      a validation function for a field containing a job key
    • chainExists

      @NotNull @NotNull ValidationFunction chainExists()
      Validation function that verifies if an ImmutableChain with the given key exists.
      Returns:
      a validation function for a field containing a chain key
    • isJobKeyFromChain

      @NotNull @NotNull ValidationFunction isJobKeyFromChain(@NotNull @NotNull ImmutableChain chain)
      Validation function that verifies if a job key belongs to a specific ImmutableChain.
      Parameters:
      chain - a chain
      Returns:
      a validation function for a field containing a job key
    • isUniqueJobKey

      @NotNull @NotNull ValidationFunction isUniqueJobKey()
      Validation function that verifies that a job key is unique.
      Returns:
      a validation function for a field containing a job key