Interface Validators

All Known Implementing Classes:
DefaultValidatorsImpl

public interface Validators
A Validators.
Author:
Heiko Scherrer
  • Method Summary

    Modifier and Type
    Method
    Description
    default Movement
    onMove(@NotNull Movement existingMovement, @NotBlank String location, @NotNull Movement movement)
    An existingMovement to the new location must be validated if it is allowed to be moved.
  • Method Details

    • onMove

      default Movement onMove(@NotNull @NotNull Movement existingMovement, @NotBlank @NotBlank String location, @NotNull @NotNull Movement movement)
      An existingMovement to the new location must be validated if it is allowed to be moved.
      Parameters:
      existingMovement - The persisted instance of the Movement
      location - The location to examine for capability to take this Movement
      movement - Contains all the data where to move to
      Returns:
      The updated Movement information
      Throws:
      org.ameba.exception.BusinessRuntimeException - in case moving it is not allowed