Package org.openwms.wms.receiving.api
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 Summary
Modifier and TypeFieldDescriptionArbitrary detail information stored along an order.private ZonedDateTime
When the order is expected to be received.static final String
static final String
private String
The unique identifier of thisReceivingOrder
.private String
The persistent identifier.private @Valid List
<BaseReceivingOrderPositionVO> A set ofReceivingOrderPosition
s belonging to thisReceivingOrder
.private String
The current state of thisReceivingOrder
.Fields inherited from class org.ameba.http.AbstractBase
DATETIME_FORMAT_ZULU
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getpKey()
getState()
Get all values, without positions, as an ordered list.int
hashCode()
boolean
hasState()
void
setDetails
(Map<String, String> details) void
setExpectedReceiptDate
(ZonedDateTime expectedReceiptDate) void
setOrderId
(String orderId) void
void
setPositions
(List<BaseReceivingOrderPositionVO> positions) void
void
toString()
Methods inherited from class org.ameba.http.AbstractBase
getCreateDt, getLastModifiedDt, getOl, setCreateDt, setLastModifiedDt, setOl
Methods inherited from class org.springframework.hateoas.RepresentationModel
add, add, add, addAllIf, addIf, getLink, getLink, getLinks, getLinks, getLinks, getRequiredLink, getRequiredLink, hasLink, hasLink, hasLinks, mapLink, mapLinkIf, of, of, removeLinks
-
Field Details
-
MEDIA_TYPE
- See Also:
-
MEDIA_TYPE_CSV
- See Also:
-
pKey
The persistent identifier. -
orderId
The unique identifier of thisReceivingOrder
. -
state
The current state of thisReceivingOrder
. -
expectedReceiptDate
When the order is expected to be received. -
positions
A set ofReceivingOrderPosition
s belonging to thisReceivingOrder
. -
details
Arbitrary detail information stored along an order.
-
-
Constructor Details
-
ReceivingOrderVO
ReceivingOrderVO() -
ReceivingOrderVO
-
-
Method Details
-
sortPositions
public void sortPositions() -
getpKey
-
setpKey
-
getOrderId
-
setOrderId
-
hasState
public boolean hasState() -
getState
-
setState
-
getExpectedReceiptDate
-
setExpectedReceiptDate
-
getPositions
-
setPositions
-
getDetails
-
setDetails
-
equals
- Overrides:
equals
in classorg.springframework.hateoas.RepresentationModel<ReceivingOrderVO>
-
hashCode
public int hashCode()- Overrides:
hashCode
in classorg.springframework.hateoas.RepresentationModel<ReceivingOrderVO>
-
toString
- Overrides:
toString
in classorg.springframework.hateoas.RepresentationModel<ReceivingOrderVO>
- Returns:
- Just the
orderId
-
getValuesOrdered
Get all values, without positions, as an ordered list.- Returns:
- All values as LinkedList implementation
-