Package org.openwms.wms.inventory.api
Class PackagingUnitVO
java.lang.Object
org.springframework.hateoas.RepresentationModel<PackagingUnitVO>
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 actualLocationthePackagingUnitis placed on.Arbitrary detail information on thisPackagingUnit.The current dimension of thePackagingUnit.private ZonedDateTimeThe expiration date of this particularPackagingUnit.APackagingUnitcan have arbitrary labels assigned.The comprisingLoadUnitthePackagingUnitis stored in.How are thePackagingUnits distributed in aLoadUnit.private StringThe business key referring to a definedLot.Any kind of message placed on thePackagingUnit.Some hint where to find thePackagingUnitwithin its container.@Null(groups=CreatePackagingUnit.class) StringThe persistent key of thePackagingUnit.private ZonedDateTimeThe production date of this particularPackagingUnit.PackedProduct, must not be null.org.openwms.core.units.api.MeasurableCalculated available quantity.@NotNull org.openwms.core.units.api.MeasurablePacked quantity, must not be null.The serial number of thePackagingUnit.private StringAvailability state of thisPackagingUnit.Described in what kind of UOM the PackagingUnit is stored in.org.openwms.core.units.api.WeightThe current weight of thePackagingUnit.Fields inherited from class org.ameba.http.AbstractBase
DATETIME_FORMAT_ZULU -
Constructor Summary
ConstructorsConstructorDescriptionPackagingUnitVO(ProductVO product, org.openwms.core.units.api.Measurable quantity) -
Method Summary
Modifier and TypeMethodDescriptionbooleanNot: - detailsgetLotId()getpKey()org.openwms.core.units.api.Measurableorg.openwms.core.units.api.MeasurablegetState()org.openwms.core.units.api.WeightbooleaninthashCode()Not: - detailsboolean@jakarta.validation.Valid booleanisValid()voidsetActualLocation(LocationVO actualLocation) voidsetDetails(Map<String, String> details) voidsetDimension(DimensionVO dimension) voidsetExpiresAt(ZonedDateTime expiresAt) voidvoidsetLoadUnit(LoadUnitVO loadUnit) voidsetLoadUnitDistribution(PhysicalDistributionVO loadUnitDistribution) voidvoidsetMessage(String message) voidsetPhysicalPosition(String physicalPosition) voidvoidsetProducedAt(ZonedDateTime producedAt) voidsetProduct(ProductVO product) voidsetQtyAvailable(org.openwms.core.units.api.Measurable qtyAvailable) voidsetQuantity(org.openwms.core.units.api.Measurable quantity) voidsetSerialNumber(String serialNumber) voidvoidsetUomRelation(UomRelationVO uomRelation) voidsetWeight(org.openwms.core.units.api.Weight weight) toString()Not: - details@jakarta.validation.Valid booleanvalidate()Methods inherited from class org.ameba.http.AbstractBase
getCreateDt, getLastModifiedDt, getOl, setCreateDt, setLastModifiedDt, setOlMethods 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 thePackagingUnitwithin 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
APackagingUnitcan 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. -
qtyAvailable
public org.openwms.core.units.api.Measurable qtyAvailableCalculated available quantity. -
state
Availability state of thisPackagingUnit. -
loadUnit
The comprisingLoadUnitthePackagingUnitis stored in. -
actualLocation
The actualLocationthePackagingUnitis 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 thePackagingUnits 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 @jakarta.validation.Valid boolean validate() -
isValid
@Valid public @jakarta.validation.Valid boolean isValid() -
hasLoadUnit
public boolean hasLoadUnit() -
hasActualLocation
public boolean hasActualLocation() -
toString
Not: - details- Overrides:
toStringin classorg.springframework.hateoas.RepresentationModel<PackagingUnitVO>
-
equals
Not: - details- Overrides:
equalsin classorg.ameba.http.AbstractBase<PackagingUnitVO>
-
hashCode
public int hashCode()Not: - details- Overrides:
hashCodein classorg.ameba.http.AbstractBase<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) -
getQtyAvailable
public org.openwms.core.units.api.Measurable getQtyAvailable() -
setQtyAvailable
public void setQtyAvailable(org.openwms.core.units.api.Measurable qtyAvailable) -
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
-