Class DefaultValidatorsImpl

java.lang.Object
org.openwms.wms.movements.spi.DefaultValidatorsImpl
All Implemented Interfaces:
Validators

@Validated @Component class DefaultValidatorsImpl extends Object implements Validators
A DefaultValidatorsImpl is used to instantiate concrete Spring Beans from the interface.
Author:
Heiko Scherrer
  • Constructor Details

    • DefaultValidatorsImpl

      DefaultValidatorsImpl()
  • Method Details

    • onMove

      public 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. Just to satisfy the default interface and have a concrete bean instantiation here.
      Specified by:
      onMove in interface Validators
      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