Package org.openwms.wms.inventory.api
Class PackagingUnitVO
java.lang.Object
org.springframework.hateoas.RepresentationModel<T>
org.ameba.http.AbstractBase<PackagingUnitVO>
org.openwms.wms.inventory.api.PackagingUnitVO
A PackagingUnitVO represents a quantity of a
Product
packaged into a single physical unit.- Author:
- Heiko Scherrer
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe actualLocation
thePackagingUnit
is placed on.Arbitrary detail information on thisPackagingUnit
.The current dimension of thePackagingUnit
.private ZonedDateTime
The expiration date of this particularPackagingUnit
.APackagingUnit
can have arbitrary labels assigned.The comprisingLoadUnit
thePackagingUnit
is stored in.How are thePackagingUnit
s distributed in aLoadUnit
.private String
The business key referring to a definedLot
.Any kind of message placed on thePackagingUnit
.Some hint where to find thePackagingUnit
within its container.@Null(groups=CreatePackagingUnit.class) String
The persistent key of thePackagingUnit
.private ZonedDateTime
The production date of this particularPackagingUnit
.PackedProduct
, must not be null.@NotNull org.openwms.core.units.api.Measurable
Packed quantity, must not be null.The serial number of thePackagingUnit
.private String
Availability state of thisPackagingUnit
.Described in what kind of UOM the PackagingUnit is stored in.org.openwms.core.units.api.Weight
The current weight of thePackagingUnit
. -
Constructor Summary
ConstructorsConstructorDescriptionPackagingUnitVO
(ProductVO product, org.openwms.core.units.api.Measurable quantity) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Not: - detailsgetLotId()
getpKey()
org.openwms.core.units.api.Measurable
getState()
org.openwms.core.units.api.Weight
boolean
int
hashCode()
Not: - detailsboolean
@javax.validation.Valid boolean
isValid()
void
setActualLocation
(LocationVO actualLocation) void
setDetails
(Map<String, String> details) void
setDimension
(DimensionVO dimension) void
setExpiresAt
(ZonedDateTime expiresAt) void
void
setLoadUnit
(LoadUnitVO loadUnit) void
setLoadUnitDistribution
(PhysicalDistributionVO loadUnitDistribution) void
void
setMessage
(String message) void
setPhysicalPosition
(String physicalPosition) void
void
setProducedAt
(ZonedDateTime producedAt) void
setProduct
(ProductVO product) void
setQuantity
(org.openwms.core.units.api.Measurable quantity) void
setSerialNumber
(String serialNumber) void
void
setUomRelation
(UomRelationVO uomRelation) void
setWeight
(org.openwms.core.units.api.Weight weight) toString()
Not: - details@javax.validation.Valid boolean
validate()
Methods inherited from class org.ameba.http.AbstractBase
getOl, 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
-
pKey
The persistent key of thePackagingUnit
. -
physicalPosition
Some hint where to find thePackagingUnit
within its container. -
serialNumber
The serial number of thePackagingUnit
. -
lotId
The business key referring to a definedLot
. -
expiresAt
The expiration date of this particularPackagingUnit
. -
producedAt
The production date of this particularPackagingUnit
. -
labels
APackagingUnit
can have arbitrary labels assigned. -
product
PackedProduct
, must not be null. -
uomRelation
Described in what kind of UOM the PackagingUnit is stored in. -
quantity
@NotNull public @NotNull org.openwms.core.units.api.Measurable quantityPacked quantity, must not be null. -
state
Availability state of thisPackagingUnit
. -
loadUnit
The comprisingLoadUnit
thePackagingUnit
is stored in. -
actualLocation
The actualLocation
thePackagingUnit
is placed on. -
dimension
The current dimension of thePackagingUnit
. -
weight
public org.openwms.core.units.api.Weight weightThe current weight of thePackagingUnit
. -
message
Any kind of message placed on thePackagingUnit
. -
loadUnitDistribution
How are thePackagingUnit
s distributed in aLoadUnit
. -
details
Arbitrary detail information on thisPackagingUnit
.
-
-
Constructor Details
-
PackagingUnitVO
public PackagingUnitVO() -
PackagingUnitVO
@ConstructorProperties({"product","quantity"}) public PackagingUnitVO(ProductVO product, org.openwms.core.units.api.Measurable quantity)
-
-
Method Details
-
validate
@Valid public @javax.validation.Valid boolean validate() -
isValid
@Valid public @javax.validation.Valid boolean isValid() -
hasLoadUnit
public boolean hasLoadUnit() -
hasActualLocation
public boolean hasActualLocation() -
toString
Not: - details- Overrides:
toString
in classorg.springframework.hateoas.RepresentationModel<PackagingUnitVO>
-
equals
Not: - details- Overrides:
equals
in classorg.springframework.hateoas.RepresentationModel<PackagingUnitVO>
-
hashCode
public int hashCode()Not: - details- Overrides:
hashCode
in classorg.springframework.hateoas.RepresentationModel<PackagingUnitVO>
-
getpKey
-
setpKey
-
getPhysicalPosition
-
setPhysicalPosition
-
getSerialNumber
-
setSerialNumber
-
getLotId
-
setLotId
-
getExpiresAt
-
setExpiresAt
-
getProducedAt
-
setProducedAt
-
getLabels
-
setLabels
-
getProduct
-
setProduct
-
getUomRelation
-
setUomRelation
-
getQuantity
public org.openwms.core.units.api.Measurable getQuantity() -
setQuantity
public void setQuantity(org.openwms.core.units.api.Measurable quantity) -
getState
-
setState
-
getLoadUnit
-
setLoadUnit
-
getActualLocation
-
setActualLocation
-
getDimension
-
setDimension
-
getWeight
public org.openwms.core.units.api.Weight getWeight() -
setWeight
public void setWeight(org.openwms.core.units.api.Weight weight) -
getMessage
-
setMessage
-
getLoadUnitDistribution
-
setLoadUnitDistribution
-
getDetails
-
setDetails
-