Package org.openwms.wms.inventory.api
Class BasicProductVO
java.lang.Object
org.springframework.hateoas.RepresentationModel<T>
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 String
The name of theAccount
the Product belongs to.private AvailabilityState
The 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.Measurable
Products may be defined with different base units.private String
Products may be classified, ie.private String
Textual descriptive text.Arbitrary detail information on this product, might by populated with ERP information.private DimensionVO
The defined dimension of theProduct
in in'sbaseUnit
.private String
Products may be grouped.private String
An identifying label of the Product.private org.openwms.core.units.api.Weight
The defined weight of theProduct
.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 the Product has to be placed in stock.AProduct
can be packed and stored in different box sizes. -
Constructor Summary
ConstructorsModifierConstructorDescriptionBasicProductVO
(String sku) private
BasicProductVO
(BasicProductVO.Builder builder) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Not: stackingRules, units, detailsorg.openwms.core.units.api.Measurable
getGroup()
getLabel()
org.openwms.core.units.api.Weight
getpKey()
getSku()
getUnits()
int
hashCode()
Not: stackingRules, units, detailsstatic BasicProductVO.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
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 the Product. -
accountId
The name of theAccount
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 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
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 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 this product, might by populated with ERP information.
-
-
Constructor Details
-
BasicProductVO
public BasicProductVO() -
BasicProductVO
-
BasicProductVO
-
-
Method Details
-
skuAndLabel
-
toString
- Overrides:
toString
in 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:
equals
in classorg.springframework.hateoas.RepresentationModel<BasicProductVO>
-
hashCode
public int hashCode()Not: stackingRules, units, details- Overrides:
hashCode
in classorg.springframework.hateoas.RepresentationModel<BasicProductVO>
-