Package org.openwms.wms.shipping
Interface ShippingService
- All Known Implementing Classes:
ShippingServiceImpl
public interface ShippingService
A ShippingService.
- Author:
- Heiko Scherrer
-
Method Summary
Modifier and TypeMethodDescriptionchangeState
(@NotNull ShippingOrderPosition shippingOrderPosition, @NotNull OrderState orderState) Change the state of an existingShippingOrderPosition
.changeState
(@NotNull ShippingOrder shippingOrder, @NotNull OrderState orderState) Change the state of an existingShippingOrder
.createOrder
(@NotNull ShippingOrder order) Create a new ShippingOrder.findByOrderId
(@NotEmpty String orderId) Find and return a ShippingOrder.findByPKey
(@NotEmpty String pKey) Find and return a ShippingOrder.findByPositionPKey
(@NotEmpty String pKey) Find and return aShippingOrder
.updateOrderPartially
(@NotEmpty String pKey, @NotNull ShippingOrder shippingOrder) Partially update a singleShippingOrder
.updatePositionPartially
(@NotEmpty String pKey, @NotNull ShippingOrderPosition shippingOrderPosition) Partially update a singleShippingOrderPosition
.
-
Method Details
-
createOrder
Create a new ShippingOrder.- Parameters:
order
- The ShippingOrder instance to store
-
changeState
ShippingOrder changeState(@NotNull @NotNull ShippingOrder shippingOrder, @NotNull @NotNull OrderState orderState) Change the state of an existingShippingOrder
.- Parameters:
shippingOrder
- The ShippingOrder instance to change the state fororderState
- The new order state to set- Returns:
- The updated instance
-
changeState
ShippingOrderPosition changeState(@NotNull @NotNull ShippingOrderPosition shippingOrderPosition, @NotNull @NotNull OrderState orderState) Change the state of an existingShippingOrderPosition
.- Parameters:
shippingOrderPosition
- The ShippingOrderPosition instance to change the state fororderState
- The new order state to set- Returns:
- The updated instance
-
findByPKey
Find and return a ShippingOrder.- Parameters:
pKey
- The persistent key of the ShippingOrder- Returns:
- The instance
- Throws:
org.ameba.exception.NotFoundException
- if not exists
-
findByOrderId
Find and return a ShippingOrder.- Parameters:
orderId
- The business key of the ShippingOrder- Returns:
- The instance
- Throws:
org.ameba.exception.NotFoundException
- if not exists
-
findByPositionPKey
Find and return aShippingOrder
.- Parameters:
pKey
- The persistent key of the order- Returns:
- The instance, never null
-
updateOrderPartially
ShippingOrder updateOrderPartially(@NotEmpty @NotEmpty String pKey, @NotNull @NotNull ShippingOrder shippingOrder) Partially update a singleShippingOrder
.- Parameters:
pKey
- The persistent key of the existing ShippingOrdershippingOrder
- The partial content of the ShippingOrder- Returns:
- The updated instance
-
updatePositionPartially
ShippingOrderPosition updatePositionPartially(@NotEmpty @NotEmpty String pKey, @NotNull @NotNull ShippingOrderPosition shippingOrderPosition) Partially update a singleShippingOrderPosition
.- Parameters:
pKey
- The persistent key of the existing ShippingOrderPositionshippingOrderPosition
- The partial content of the ShippingOrderPosition- Returns:
- The updated instance
-