Interface ShippingService

All Known Implementing Classes:
ShippingServiceImpl

public interface ShippingService
A ShippingService.
Author:
Heiko Scherrer
  • Method Details

    • createOrder

      ShippingOrder createOrder(@NotNull @NotNull ShippingOrder order)
      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 existing ShippingOrder.
      Parameters:
      shippingOrder - The ShippingOrder instance to change the state for
      orderState - The new order state to set
      Returns:
      The updated instance
    • findByPKey

      @NotNull @NotNull ShippingOrder findByPKey(@NotBlank @NotBlank String pKey)
      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

      @NotNull @NotNull ShippingOrder findByOrderId(@NotBlank @NotBlank String orderId)
      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

      @NotNull @NotNull ShippingOrder findByPositionPKey(@NotBlank @NotBlank String pKey)
      Find and return a ShippingOrder.
      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 single ShippingOrder.
      Parameters:
      pKey - The persistent key of the existing ShippingOrder
      shippingOrder - The partial content of the ShippingOrder
      Returns:
      The updated instance