Package org.openwms.common.transport.spi
Interface TransportUnitMoveApproval
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A TransportUnitMoveApproval implementation validates a request to move a
TransportUnit
and can prevent it.- Author:
- Heiko Scherrer
-
Method Summary
Modifier and TypeMethodDescriptionvoid
approve
(@NotNull TransportUnit transportUnit, @NotBlank Location newLocation) Approve that the requested move of thetransportUnit
to thenewLocation
is permitted.
-
Method Details
-
approve
void approve(@NotNull @NotNull TransportUnit transportUnit, @NotBlank @NotBlank Location newLocation) throws NotApprovedException Approve that the requested move of thetransportUnit
to thenewLocation
is permitted.- Parameters:
transportUnit
- The TransportUnit to movenewLocation
- The new location to move to- Throws:
NotApprovedException
- If not allowed to move
-