Class ReceivingOrderVO

java.lang.Object
org.springframework.hateoas.RepresentationModel<ReceivingOrderVO>
org.ameba.http.AbstractBase<ReceivingOrderVO>
org.openwms.wms.receiving.api.ReceivingOrderVO
All Implemented Interfaces:
Serializable

public class ReceivingOrderVO extends org.ameba.http.AbstractBase<ReceivingOrderVO> implements Serializable
A ReceivingOrderVO.
Author:
Heiko Scherrer
See Also:
  • Field Details

    • MEDIA_TYPE

      public static final String MEDIA_TYPE
      See Also:
    • MEDIA_TYPE_CSV

      public static final String MEDIA_TYPE_CSV
      See Also:
    • pKey

      private String pKey
      The persistent identifier.
    • orderId

      private String orderId
      The unique identifier of this ReceivingOrder.
    • state

      private String state
      The current state of this ReceivingOrder.
    • expectedReceiptDate

      private ZonedDateTime expectedReceiptDate
      When the order is expected to be received.
    • positions

      @Valid private @Valid List<BaseReceivingOrderPositionVO> positions
      A set of ReceivingOrderPositions belonging to this ReceivingOrder.
    • details

      private Map<String,String> details
      Arbitrary detail information stored along an order.
  • Constructor Details

    • ReceivingOrderVO

      ReceivingOrderVO()
    • ReceivingOrderVO

      public ReceivingOrderVO(@NotBlank @NotBlank String orderId)
  • Method Details

    • sortPositions

      public void sortPositions()
    • getpKey

      public String getpKey()
    • setpKey

      public void setpKey(String pKey)
    • getOrderId

      public String getOrderId()
    • setOrderId

      public void setOrderId(String orderId)
    • hasState

      public boolean hasState()
    • getState

      public String getState()
    • setState

      public void setState(String state)
    • getExpectedReceiptDate

      public ZonedDateTime getExpectedReceiptDate()
    • setExpectedReceiptDate

      public void setExpectedReceiptDate(ZonedDateTime expectedReceiptDate)
    • getPositions

      public List<BaseReceivingOrderPositionVO> getPositions()
    • setPositions

      public void setPositions(List<BaseReceivingOrderPositionVO> positions)
    • getDetails

      public Map<String,String> getDetails()
    • setDetails

      public void setDetails(Map<String,String> details)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class org.springframework.hateoas.RepresentationModel<ReceivingOrderVO>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class org.springframework.hateoas.RepresentationModel<ReceivingOrderVO>
    • toString

      public String toString()
      Overrides:
      toString in class org.springframework.hateoas.RepresentationModel<ReceivingOrderVO>
      Returns:
      Just the orderId
    • getValuesOrdered

      public Iterable<Object> getValuesOrdered()
      Get all values, without positions, as a ordered list.
      Returns:
      All values as LinkedList implementation