Class BasicProductVO

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

public class BasicProductVO extends org.ameba.http.AbstractBase<BasicProductVO>
A BasicProductVO.
Author:
Heiko Scherrer
  • Field Details

    • pKey

      @NotEmpty(message="{owms.wms.inv.product.pKey}", groups=UpdateProduct.class) private @NotEmpty(message="{owms.wms.inv.product.pKey}",groups=UpdateProduct.class) String pKey
      The persistent unique key.
    • sku

      @NotEmpty(message="{owms.wms.inv.product.sku}", groups=CreateProduct.class) private @NotEmpty(message="{owms.wms.inv.product.sku}",groups=CreateProduct.class) String sku
      The product id is part of the unique business key.
    • label

      private String label
      An identifying label of the Product.
    • accountId

      private String accountId
      The name of the Account the Product belongs to.
    • baseUnit

      @NotNull(message="{owms.wms.inv.product.baseUnit}", groups=CreateProduct.class) private @NotNull(message="{owms.wms.inv.product.baseUnit}",groups=CreateProduct.class) org.openwms.core.units.api.Measurable baseUnit
      Products may be defined with different base units.
    • description

      private String description
      Textual descriptive text.
    • availabilityState

      private AvailabilityState availabilityState
      The Product definition can be set to be unavailable for further operations.
    • classification

      private String classification
      Products may be classified, ie. hazardous.
    • group

      private String group
      Products may be grouped.
    • stockZone

      private String stockZone
      Where the Product has to be placed in stock.
    • units

      public List<UomRelationVO> units
      A Product can be packed and stored in different box sizes.
    • dimension

      private DimensionVO dimension
      The defined dimension of the Product in in's baseUnit.
    • netWeight

      private org.openwms.core.units.api.Weight netWeight
      The defined weight of the Product.
    • preferableStorageLocation

      private LocationVO preferableStorageLocation
      What is typically the preferable Location where the Product shall be stored.
    • stackingRules

      private List<StackingRuleVO> stackingRules
      A list of rules that define what kind of Product can be stacked on top of this one.
    • details

      private Map<String,String> details
      Arbitrary detail information on this product, might by populated with ERP information.
  • Constructor Details

    • BasicProductVO

      public BasicProductVO()
    • BasicProductVO

      public BasicProductVO(String sku)
    • BasicProductVO

      private BasicProductVO(BasicProductVO.Builder builder)
  • Method Details

    • skuAndLabel

      public String skuAndLabel()
    • toString

      public String toString()
      Overrides:
      toString in class org.springframework.hateoas.RepresentationModel<BasicProductVO>
    • newBuilder

      public static BasicProductVO.Builder newBuilder()
    • getpKey

      public String getpKey()
    • setpKey

      public void setpKey(String pKey)
    • getSku

      public String getSku()
    • setSku

      public void setSku(String sku)
    • getLabel

      public String getLabel()
    • setLabel

      public void setLabel(String label)
    • getAccountId

      public String getAccountId()
    • setAccountId

      public void setAccountId(String accountId)
    • getBaseUnit

      public org.openwms.core.units.api.Measurable getBaseUnit()
    • setBaseUnit

      public void setBaseUnit(org.openwms.core.units.api.Measurable baseUnit)
    • getDescription

      public String getDescription()
    • setDescription

      public void setDescription(String description)
    • getAvailabilityState

      public AvailabilityState getAvailabilityState()
    • setAvailabilityState

      public void setAvailabilityState(AvailabilityState availabilityState)
    • getClassification

      public String getClassification()
    • setClassification

      public void setClassification(String classification)
    • getGroup

      public String getGroup()
    • setGroup

      public void setGroup(String group)
    • getStockZone

      public String getStockZone()
    • setStockZone

      public void setStockZone(String stockZone)
    • getUnits

      public List<UomRelationVO> getUnits()
    • setUnits

      public void setUnits(List<UomRelationVO> units)
    • getDimension

      public DimensionVO getDimension()
    • setDimension

      public void setDimension(DimensionVO dimension)
    • getNetWeight

      public org.openwms.core.units.api.Weight getNetWeight()
    • setNetWeight

      public void setNetWeight(org.openwms.core.units.api.Weight netWeight)
    • getPreferableStorageLocation

      public LocationVO getPreferableStorageLocation()
    • setPreferableStorageLocation

      public void setPreferableStorageLocation(LocationVO preferableStorageLocation)
    • getStackingRules

      public List<StackingRuleVO> getStackingRules()
    • setStackingRules

      public void setStackingRules(List<StackingRuleVO> stackingRules)
    • getDetails

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

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

      public boolean equals(Object o)
      Not: stackingRules, units, details
      Overrides:
      equals in class org.springframework.hateoas.RepresentationModel<BasicProductVO>
    • hashCode

      public int hashCode()
      Not: stackingRules, units, details
      Overrides:
      hashCode in class org.springframework.hateoas.RepresentationModel<BasicProductVO>