Package org.openwms.wms.inventory
Interface PackagingUnitFinder
- All Known Implementing Classes:
PackagingUnitFinderImpl
public interface PackagingUnitFinder
A PackagingUnitFinder.
- Author:
- Heiko Scherrer
-
Method Summary
Modifier and TypeMethodDescription@NotNull org.openwms.core.units.api.Measurable
findAmountOfProductByPKey
(@NotBlank String productPKey, @NotBlank String locationGroupName) Find and return the quantity of allPackagingUnit
s.@NotNull org.openwms.core.units.api.Measurable
findAmountOfProductBySKU
(@NotBlank String sku, @NotBlank String locationGroupName) Find and return the quantity of allPackagingUnit
s.@NotNull org.openwms.core.units.api.Measurable
findAmountOfProductBySKUOnLocation
(@NotBlank String sku, @NotBlank String locationErpCode) Find and return the quantity of allPackagingUnit
s.@NotNull List
<PackagingUnit> findAvailablesForProductInLoadUnitsOnly
(@NotNull Product product) @NotNull List
<PackagingUnit> findAvailablesForProductOnLocationsOnly
(@NotNull Product product) findByPKey
(@NotEmpty String pKey) Find and return aPackagingUnit
.@NotNull List
<PackagingUnit> findForSku
(@NotEmpty String sku) Find and return allPackagingUnit
s for the givenSKU
.@NotNull List
<PackagingUnit> findForSku
(@NotEmpty String sku, int amount, String sortDirection, String sortProperty) @NotNull List
<PackagingUnit> findInLocationGroup
(@NotBlank String locationGroupName) Find and return allPackagingUnit
s that are located in the givenLocationGroup
.@NotNull List
<PackagingUnit> findOfProductInLG
(@NotBlank String productPKey, List<String> locationGroupNames, String sortDirection, String sortProperty) Find and return allPackagingUnit
s of aProduct
identified by the givenproductPKey
that is located within a particularLocationGroup
identified by the givenlocationGroupName
.@NotNull List
<PackagingUnit> findOnLocation
(@NotBlank String erpCode) Find and return allPackagingUnit
s that are located on aLocation
.@NotNull List
<PackagingUnit> Find and return allPackagingUnit
s that are located on aTransportUnit
.@NotNull List
<PackagingUnit> findOnTUandLU
(@NotEmpty String transportUnitBK, @NotEmpty String luPos) Find and return allPackagingUnit
s that are located on aTransportUnit
within a particularLoadUnit
.
-
Method Details
-
findByPKey
Find and return aPackagingUnit
.- Parameters:
pKey
- The persistent identifier- Returns:
- The instance
- Throws:
org.ameba.exception.NotFoundException
- in case no PackagingUnit exists
-
findOnLocation
Find and return allPackagingUnit
s that are located on aLocation
.- Parameters:
erpCode
- The business key of the Location the PackagingUnits are placed on- Returns:
- A list of all PackagingUnits, never null
-
findInLocationGroup
@NotNull @NotNull List<PackagingUnit> findInLocationGroup(@NotBlank @NotBlank String locationGroupName) Find and return allPackagingUnit
s that are located in the givenLocationGroup
.- Parameters:
locationGroupName
- The business key of the LocationGroup the PackagingUnits are stored in- Returns:
- A list of all PackagingUnits, never null
-
findOnTU
Find and return allPackagingUnit
s that are located on aTransportUnit
.- Parameters:
transportUnitBK
- The business key of the TransportUnit the PackagingUnits are carried on- Returns:
- A list of all PackagingUnits, never null
-
findOnTUandLU
@NotNull @NotNull List<PackagingUnit> findOnTUandLU(@NotEmpty @NotEmpty String transportUnitBK, @NotEmpty @NotEmpty String luPos) Find and return allPackagingUnit
s that are located on aTransportUnit
within a particularLoadUnit
.- Parameters:
transportUnitBK
- The business key of the TransportUnit the PackagingUnits are carried onluPos
- The position of the LoadUnit within the TransportUnit- Returns:
- A list of all PackagingUnits, never null
-
findForSku
Find and return allPackagingUnit
s for the givenSKU
.- Parameters:
sku
- The Products SKU- Returns:
- A list of PackagingUnits, never null
-
findForSku
@NotNull @NotNull List<PackagingUnit> findForSku(@NotEmpty @NotEmpty String sku, int amount, String sortDirection, String sortProperty) - Parameters:
sku
- The Products SKUamount
- The number of returned hitssortDirection
- The sort direction either ASC or DESC or nullsortProperty
- The property to sort the result list or null- Returns:
- A list of PackagingUnits, never null
-
findOfProductInLG
@NotNull @NotNull List<PackagingUnit> findOfProductInLG(@NotBlank @NotBlank String productPKey, List<String> locationGroupNames, String sortDirection, String sortProperty) Find and return allPackagingUnit
s of aProduct
identified by the givenproductPKey
that is located within a particularLocationGroup
identified by the givenlocationGroupName
.- Parameters:
productPKey
- The Product persistent keylocationGroupNames
- The identifying names of the LocationGroupssortDirection
- Either ASC or DESCsortProperty
- The name of the property to sort for- Returns:
- A list of PackagingUnits
-
findAmountOfProductByPKey
@NotNull @NotNull org.openwms.core.units.api.Measurable findAmountOfProductByPKey(@NotBlank @NotBlank String productPKey, @NotBlank @NotBlank String locationGroupName) Find and return the quantity of allPackagingUnit
s.- Parameters:
productPKey
- The Product's persistent keylocationGroupName
- The identifying name of the LocationGroup and children to search for- Returns:
- The sum of quantities of all PackagingUnits
- Throws:
org.ameba.exception.NotFoundException
- In case no LocationGroup with the locationGroupName exists
-
findAmountOfProductBySKU
@NotNull @NotNull org.openwms.core.units.api.Measurable findAmountOfProductBySKU(@NotBlank @NotBlank String sku, @NotBlank @NotBlank String locationGroupName) Find and return the quantity of allPackagingUnit
s.- Parameters:
sku
- or the Product's SKUlocationGroupName
- The identifying name of the LocationGroup and children to search for- Returns:
- The sum of quantities of all PackagingUnits
- Throws:
org.ameba.exception.NotFoundException
- In case no LocationGroup with the locationGroupName exists
-
findAmountOfProductBySKUOnLocation
@NotNull @NotNull org.openwms.core.units.api.Measurable findAmountOfProductBySKUOnLocation(@NotBlank @NotBlank String sku, @NotBlank @NotBlank String locationErpCode) Find and return the quantity of allPackagingUnit
s.- Parameters:
sku
- or the Product's SKUlocationErpCode
- The identifying name of the Location to search for- Returns:
- The sum of quantities of all PackagingUnits
- Throws:
org.ameba.exception.NotFoundException
- In case no Location with the erpCode exists
-
findAvailablesForProductOnLocationsOnly
@NotNull @NotNull List<PackagingUnit> findAvailablesForProductOnLocationsOnly(@NotNull @NotNull Product product) -
findAvailablesForProductInLoadUnitsOnly
@NotNull @NotNull List<PackagingUnit> findAvailablesForProductInLoadUnitsOnly(@NotNull @NotNull Product product)
-