Package org.openwms.wms.inventory.api
Class BasicProductVO
java.lang.Object
org.springframework.hateoas.RepresentationModel<BasicProductVO>
org.ameba.http.AbstractBase<BasicProductVO>
org.openwms.wms.inventory.api.BasicProductVO
A BasicProductVO.
- Author:
- Heiko Scherrer
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringThe name of theAccountthe Product belongs to.private AvailabilityStateThe Product definition can be set to be unavailable for further operations.private @NotNull(message="{owms.wms.inv.product.baseUnit}",groups=CreateProduct.class) org.openwms.core.units.api.MeasurableProducts may be defined with different base units.private StringProducts may be classified, ie. hazardous.private StringTextual descriptive text.Arbitrary detail information on this product, might by populated with ERP information.private DimensionVOThe defined dimension of theProductin in'sbaseUnit.private StringProducts may be grouped.private StringAn identifying label of the Product.private org.openwms.core.units.api.WeightThe defined weight of theProduct.private @NotEmpty(message="{owms.wms.inv.product.pKey}",groups=UpdateProduct.class) StringThe persistent unique key.private LocationVOWhat is typically the preferableLocationwhere theProductshall be stored.private @NotEmpty(message="{owms.wms.inv.product.sku}",groups=CreateProduct.class) StringThe product id is part of the unique business key.private List<StackingRuleVO> A list of rules that define what kind ofProductcan be stacked on top of this one.private StringWhere the Product has to be placed in stock.AProductcan be packed and stored in different box sizes.Fields inherited from class org.ameba.http.AbstractBase
DATETIME_FORMAT_ZULU -
Constructor Summary
ConstructorsModifierConstructorDescriptionBasicProductVO(String sku) privateBasicProductVO(BasicProductVO.Builder builder) -
Method Summary
Modifier and TypeMethodDescriptionbooleanNot: stackingRules, units, detailsorg.openwms.core.units.api.MeasurablegetGroup()getLabel()org.openwms.core.units.api.WeightgetpKey()getSku()getUnits()inthashCode()Not: stackingRules, units, detailsstatic BasicProductVO.BuildervoidsetAccountId(String accountId) voidsetAvailabilityState(AvailabilityState availabilityState) voidsetBaseUnit(org.openwms.core.units.api.Measurable baseUnit) voidsetClassification(String classification) voidsetDescription(String description) voidsetDetails(Map<String, String> details) voidsetDimension(DimensionVO dimension) voidvoidvoidsetNetWeight(org.openwms.core.units.api.Weight netWeight) voidvoidsetPreferableStorageLocation(LocationVO preferableStorageLocation) voidvoidsetStackingRules(List<StackingRuleVO> stackingRules) voidsetStockZone(String stockZone) voidsetUnits(List<UomRelationVO> units) toString()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
@NotEmpty(message="{owms.wms.inv.product.pKey}", groups=UpdateProduct.class) private @NotEmpty(message="{owms.wms.inv.product.pKey}",groups=UpdateProduct.class) String pKeyThe 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 skuThe product id is part of the unique business key. -
label
An identifying label of the Product. -
accountId
The name of theAccountthe 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 baseUnitProducts may be defined with different base units. -
description
Textual descriptive text. -
availabilityState
The Product definition can be set to be unavailable for further operations. -
classification
Products may be classified, ie. hazardous. -
group
Products may be grouped. -
stockZone
Where the Product has to be placed in stock. -
units
AProductcan be packed and stored in different box sizes. -
dimension
The defined dimension of theProductin in'sbaseUnit. -
netWeight
private org.openwms.core.units.api.Weight netWeightThe defined weight of theProduct. -
preferableStorageLocation
What is typically the preferableLocationwhere theProductshall be stored. -
stackingRules
A list of rules that define what kind ofProductcan be stacked on top of this one. -
details
Arbitrary detail information on this product, might by populated with ERP information.
-
-
Constructor Details
-
BasicProductVO
public BasicProductVO() -
BasicProductVO
-
BasicProductVO
-
-
Method Details
-
skuAndLabel
-
toString
- Overrides:
toStringin classorg.springframework.hateoas.RepresentationModel<BasicProductVO>
-
newBuilder
-
getpKey
-
setpKey
-
getSku
-
setSku
-
getLabel
-
setLabel
-
getAccountId
-
setAccountId
-
getBaseUnit
public org.openwms.core.units.api.Measurable getBaseUnit() -
setBaseUnit
public void setBaseUnit(org.openwms.core.units.api.Measurable baseUnit) -
getDescription
-
setDescription
-
getAvailabilityState
-
setAvailabilityState
-
getClassification
-
setClassification
-
getGroup
-
setGroup
-
getStockZone
-
setStockZone
-
getUnits
-
setUnits
-
getDimension
-
setDimension
-
getNetWeight
public org.openwms.core.units.api.Weight getNetWeight() -
setNetWeight
public void setNetWeight(org.openwms.core.units.api.Weight netWeight) -
getPreferableStorageLocation
-
setPreferableStorageLocation
-
getStackingRules
-
setStackingRules
-
getDetails
-
setDetails
-
equals
Not: stackingRules, units, details- Overrides:
equalsin classorg.ameba.http.AbstractBase<BasicProductVO>
-
hashCode
public int hashCode()Not: stackingRules, units, details- Overrides:
hashCodein classorg.ameba.http.AbstractBase<BasicProductVO>
-