Package org.openwms.wms.inventory.api
Class ProductVO
java.lang.Object
org.springframework.hateoas.RepresentationModel<T>
org.ameba.http.AbstractBase<ProductVO>
org.openwms.wms.inventory.api.ProductVO
A ProductVO.
- Author:
- Heiko Scherrer
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
The name of theAccount
theProduct
belongs to.private AvailabilityState
TheProduct
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.Measurable
Product
s may be defined with different base units.private String
Products may be classified, ie.private String
Textual descriptive text.Arbitrary detail information on thisProduct
, might by populated with ERP information.private DimensionVO
The defined dimension of theProduct
in in'sbaseUnit
.private String
Product
s may be grouped.private String
An identifying label of theProduct
.private org.openwms.core.units.api.Weight
The defined netto weight of theProduct
.private Boolean
Is it allowed to receive a higher quantity as expected/announced of this Product?private @NotEmpty(message="{owms.wms.inv.product.pKey}",groups=UpdateProduct.class) String
The persistent unique key.private LocationVO
What is typically the preferableLocation
where theProduct
shall be stored.private @NotEmpty(message="{owms.wms.inv.product.sku}",groups=CreateProduct.class) String
The product id is part of the unique business key.private List<StackingRuleVO>
A list of rules that define what kind ofProduct
can be stacked on top of this one.private String
Where theProduct
has to be placed in stock.AProduct
can be packed and stored in different box sizes. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
org.openwms.core.units.api.Measurable
getGroup()
getLabel()
org.openwms.core.units.api.Weight
getpKey()
getSku()
getUnits()
int
hashCode()
static ProductVO.Builder
void
setAccountId
(String accountId) void
setAvailabilityState
(AvailabilityState availabilityState) void
setBaseUnit
(org.openwms.core.units.api.Measurable baseUnit) void
setClassification
(String classification) void
setDescription
(String description) void
setDetails
(Map<String, String> details) void
setDimension
(DimensionVO dimension) void
void
void
setNetWeight
(org.openwms.core.units.api.Weight netWeight) void
setOverbookingAllowed
(Boolean overbookingAllowed) void
void
setPreferableStorageLocation
(LocationVO preferableStorageLocation) void
void
setStackingRules
(List<StackingRuleVO> stackingRules) void
setStockZone
(String stockZone) void
setUnits
(List<UomRelationVO> units) toString()
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
@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 theProduct
. -
accountId
The name of theAccount
theProduct
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 baseUnitProduct
s may be defined with different base units. -
overbookingAllowed
Is it allowed to receive a higher quantity as expected/announced of this Product? -
description
Textual descriptive text. -
availabilityState
TheProduct
definition can be set to be unavailable for further operations. -
classification
Products may be classified, ie. hazardous. -
group
Product
s may be grouped. -
stockZone
Where theProduct
has to be placed in stock. -
units
AProduct
can be packed and stored in different box sizes. -
dimension
The defined dimension of theProduct
in in'sbaseUnit
. -
netWeight
private org.openwms.core.units.api.Weight netWeightThe defined netto weight of theProduct
. -
preferableStorageLocation
What is typically the preferableLocation
where theProduct
shall be stored. -
stackingRules
A list of rules that define what kind ofProduct
can be stacked on top of this one. -
details
Arbitrary detail information on thisProduct
, might by populated with ERP information.
-
-
Constructor Details
-
ProductVO
public ProductVO() -
ProductVO
-
ProductVO
-
-
Method Details
-
skuAndLabel
-
toString
- Overrides:
toString
in classorg.springframework.hateoas.RepresentationModel<ProductVO>
-
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) -
getOverbookingAllowed
-
setOverbookingAllowed
-
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
- Overrides:
equals
in classorg.springframework.hateoas.RepresentationModel<ProductVO>
-
hashCode
public int hashCode()- Overrides:
hashCode
in classorg.springframework.hateoas.RepresentationModel<ProductVO>
-