Package org.openwms.wms.movements.spi
Interface Validators
- All Known Implementing Classes:
DefaultValidatorsImpl
public interface Validators
A Validators.
- Author:
- Heiko Scherrer
-
Method Summary
-
Method Details
-
onMove
default Movement onMove(@NotNull @NotNull Movement existingMovement, @NotBlank @NotBlank String location, @NotNull @NotNull Movement movement) AnexistingMovement
to the newlocation
must be validated if it is allowed to be moved.- Parameters:
existingMovement
- The persisted instance of the Movementlocation
- The location to examine for capability to take this Movementmovement
- 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
-