Package org.openwms.tms.impl
Class ChangeTU
java.lang.Object
org.openwms.tms.impl.ChangeTU
- All Implemented Interfaces:
UpdateFunction
A ChangeTU is responsible to change a
TransportOrder
s assigned TransportUnit
.- Author:
- Heiko Scherrer
-
Field Summary
Modifier and TypeFieldDescriptionprivate final org.openwms.common.transport.api.TransportUnitApi
private final jakarta.validation.Validator
-
Constructor Summary
ConstructorDescriptionChangeTU
(jakarta.validation.Validator validator, org.openwms.common.transport.api.TransportUnitApi transportUnitApi) -
Method Summary
Modifier and TypeMethodDescriptionvoid
update
(TransportOrder saved, TransportOrder toUpdate) Validate and change the requested values of thesaved
instance.private void
-
Field Details
-
transportUnitApi
private final org.openwms.common.transport.api.TransportUnitApi transportUnitApi -
validator
private final jakarta.validation.Validator validator
-
-
Constructor Details
-
ChangeTU
ChangeTU(jakarta.validation.Validator validator, org.openwms.common.transport.api.TransportUnitApi transportUnitApi)
-
-
Method Details
-
update
Validate and change the requested values of thesaved
instance. If the assignedTransportUnitBK
has changed, we're going to re-assign the {code TransportUnit}s.- Specified by:
update
in interfaceUpdateFunction
- Parameters:
saved
- The currently persisted TransportOrdertoUpdate
- The TransportOrder holding the new values to save
-
validateAttributes
-