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 ShippingOrder shippingOrder, @NotNull OrderState orderState) Change the state of an existingShippingOrder
.createOrder
(@NotNull ShippingOrder order) Create a new ShippingOrder.@NotNull ShippingOrder
findByOrderId
(@NotBlank String orderId) Find and return a ShippingOrder.@NotNull ShippingOrder
findByPKey
(@NotBlank String pKey) Find and return a ShippingOrder.@NotNull ShippingOrder
findByPositionPKey
(@NotBlank String pKey) Find and return aShippingOrder
.updateOrderPartially
(@NotBlank String pKey, @NotNull ShippingOrder shippingOrder) Partially update a singleShippingOrder
.
-
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
-
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(@NotBlank @NotBlank 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
-