Class OrderStateChanger
java.lang.Object
org.openwms.wms.shipping.impl.updaters.OrderStateChanger
- All Implemented Interfaces:
ShippingOrderUpdater
,org.springframework.plugin.core.Plugin<ShippingOrderUpdater.Type>
A OrderStateChanger.
- Author:
- Heiko Scherrer
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.openwms.wms.shipping.ShippingOrderUpdater
ShippingOrderUpdater.Type
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final org.slf4j.Logger
private final ShippingService
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
supports
(ShippingOrderUpdater.Type delimiter) update
(@NotNull ShippingOrder existingShippingOrder, @Valid @NotNull ShippingOrder shippingOrder) Update the givenexistingShippingOrder
partially with the contents ofshippingOrder
.
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
service
-
-
Constructor Details
-
OrderStateChanger
OrderStateChanger(ShippingService service)
-
-
Method Details
-
update
@Measured @Validated(OrderStateChange.class) public ShippingOrder update(@NotNull @NotNull ShippingOrder existingShippingOrder, @Valid @NotNull @Valid @NotNull ShippingOrder shippingOrder) Update the givenexistingShippingOrder
partially with the contents ofshippingOrder
.- Specified by:
update
in interfaceShippingOrderUpdater
- Parameters:
existingShippingOrder
- The existing instanceshippingOrder
- Contains the properties to update- Returns:
- The updated instance
-
supports
- Specified by:
supports
in interfaceorg.springframework.plugin.core.Plugin<ShippingOrderUpdater.Type>
-