Class PackagingUnitVO

java.lang.Object
org.springframework.hateoas.RepresentationModel<T>
org.ameba.http.AbstractBase<PackagingUnitVO>
org.openwms.wms.inventory.api.PackagingUnitVO

public class PackagingUnitVO extends org.ameba.http.AbstractBase<PackagingUnitVO>
A PackagingUnitVO represents a quantity of a Product packaged into a single physical unit.
Author:
Heiko Scherrer
  • Field Details

    • pKey

      @Null(groups=CreatePackagingUnit.class) public @Null(groups=CreatePackagingUnit.class) String pKey
      The persistent key of the PackagingUnit.
    • physicalPosition

      public String physicalPosition
      Some hint where to find the PackagingUnit within its container.
    • serialNumber

      public String serialNumber
      The serial number of the PackagingUnit.
    • lotId

      private String lotId
      The business key referring to a defined Lot.
    • expiresAt

      private ZonedDateTime expiresAt
      The expiration date of this particular PackagingUnit.
    • producedAt

      private ZonedDateTime producedAt
      The production date of this particular PackagingUnit.
    • labels

      private List<String> labels
      A PackagingUnit can have arbitrary labels assigned.
    • product

      public ProductVO product
      Packed Product, must not be null.
    • uomRelation

      public UomRelationVO uomRelation
      Described in what kind of UOM the PackagingUnit is stored in.
    • quantity

      @NotNull public @NotNull org.openwms.core.units.api.Measurable quantity
      Packed quantity, must not be null.
    • state

      private String state
      Availability state of this PackagingUnit.
    • loadUnit

      public LoadUnitVO loadUnit
      The comprising LoadUnit the PackagingUnit is stored in.
    • actualLocation

      public LocationVO actualLocation
      The actual Location the PackagingUnit is placed on.
    • dimension

      public DimensionVO dimension
      The current dimension of the PackagingUnit.
    • weight

      public org.openwms.core.units.api.Weight weight
      The current weight of the PackagingUnit.
    • message

      public String message
      Any kind of message placed on the PackagingUnit.
    • loadUnitDistribution

      public PhysicalDistributionVO loadUnitDistribution
      How are the PackagingUnits distributed in a LoadUnit.
    • details

      private Map<String,String> details
      Arbitrary detail information on this PackagingUnit.
  • 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

      public String toString()
      Not: - details
      Overrides:
      toString in class org.springframework.hateoas.RepresentationModel<PackagingUnitVO>
    • equals

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

      public int hashCode()
      Not: - details
      Overrides:
      hashCode in class org.springframework.hateoas.RepresentationModel<PackagingUnitVO>
    • getpKey

      public String getpKey()
    • setpKey

      public void setpKey(String pKey)
    • getPhysicalPosition

      public String getPhysicalPosition()
    • setPhysicalPosition

      public void setPhysicalPosition(String physicalPosition)
    • getSerialNumber

      public String getSerialNumber()
    • setSerialNumber

      public void setSerialNumber(String serialNumber)
    • getLotId

      public String getLotId()
    • setLotId

      public void setLotId(String lotId)
    • getExpiresAt

      public ZonedDateTime getExpiresAt()
    • setExpiresAt

      public void setExpiresAt(ZonedDateTime expiresAt)
    • getProducedAt

      public ZonedDateTime getProducedAt()
    • setProducedAt

      public void setProducedAt(ZonedDateTime producedAt)
    • getLabels

      public List<String> getLabels()
    • setLabels

      public void setLabels(List<String> labels)
    • getProduct

      public ProductVO getProduct()
    • setProduct

      public void setProduct(ProductVO product)
    • getUomRelation

      public UomRelationVO getUomRelation()
    • setUomRelation

      public void setUomRelation(UomRelationVO uomRelation)
    • getQuantity

      public org.openwms.core.units.api.Measurable getQuantity()
    • setQuantity

      public void setQuantity(org.openwms.core.units.api.Measurable quantity)
    • getState

      public String getState()
    • setState

      public void setState(String state)
    • getLoadUnit

      public LoadUnitVO getLoadUnit()
    • setLoadUnit

      public void setLoadUnit(LoadUnitVO loadUnit)
    • getActualLocation

      public LocationVO getActualLocation()
    • setActualLocation

      public void setActualLocation(LocationVO actualLocation)
    • getDimension

      public DimensionVO getDimension()
    • setDimension

      public void setDimension(DimensionVO dimension)
    • getWeight

      public org.openwms.core.units.api.Weight getWeight()
    • setWeight

      public void setWeight(org.openwms.core.units.api.Weight weight)
    • getMessage

      public String getMessage()
    • setMessage

      public void setMessage(String message)
    • getLoadUnitDistribution

      public PhysicalDistributionVO getLoadUnitDistribution()
    • setLoadUnitDistribution

      public void setLoadUnitDistribution(PhysicalDistributionVO loadUnitDistribution)
    • getDetails

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

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