Package org.openwms.wms.inventory
Interface PackagingUnitService
- All Known Implementing Classes:
PackagingUnitServiceImpl
public interface PackagingUnitService
A PackagingUnitService.
- Author:
- Heiko Scherrer
-
Method Summary
Modifier and TypeMethodDescriptionvoid
acknowledgeReservation
(@NotBlank String reservationId, @NotBlank String acknowledgeId) Acknowledge a previously set reservation on aPackagingUnit
.void
deleteAll
(@NotEmpty List<PackagingUnit> packagingUnits) Delete multiplePackagingUnit
s.void
deleteByPKey
(@NotBlank String pKey) void
deleteOnLocation
(@NotNull DeletePURequestVO request) DeletePackagingUnit
s on aLocation
.void
Release a lockedPackagingUnit
.void
reportProblem
(@NotBlank String transportUnitBK, @NotBlank String loadUnitPosition, @NotNull ReportProblemVO problem) Report a Problem onPackagingUnit
s.@NotNull PackagingUnit
save
(@NotNull PackagingUnit packagingUnit) Create or update the givenPackagingUnit
.@NotNull PackagingUnitVO
update
(@NotBlank String pKey, @NotNull PackagingUnitVO packagingUnit) Update aPackagingUnit
.
-
Method Details
-
acknowledgeReservation
void acknowledgeReservation(@NotBlank @NotBlank String reservationId, @NotBlank @NotBlank String acknowledgeId) Acknowledge a previously set reservation on aPackagingUnit
. If noPackagingUnit
is reserved with thereservationId
the implementation might silently return without further action.- Parameters:
reservationId
- The previously set reservationIdacknowledgeId
- The acknowledgeId to replace the reservationId with
-
update
@NotNull @NotNull PackagingUnitVO update(@NotBlank @NotBlank String pKey, @NotNull @NotNull PackagingUnitVO packagingUnit) Update aPackagingUnit
.- Parameters:
pKey
- The persistent identifierpackagingUnit
- The new representation of the PackagingUnit- Returns:
- The updated instance
-
save
Create or update the givenPackagingUnit
.- Parameters:
packagingUnit
- The PackagingUnit to create or update- Returns:
- the saved instance
-
reportProblem
void reportProblem(@NotBlank @NotBlank String transportUnitBK, @NotBlank @NotBlank String loadUnitPosition, @NotNull @NotNull ReportProblemVO problem) Report a Problem onPackagingUnit
s.- Parameters:
transportUnitBK
- The TransportUnit where the PackagingUnits are stored inloadUnitPosition
- The LoadUnit where the PackagingUnits are stored inproblem
- The representation of the problem
-
release
Release a lockedPackagingUnit
.- Parameters:
pKey
- The persistent key
-
deleteAll
Delete multiplePackagingUnit
s.- Parameters:
packagingUnits
- PackagingUnits to delete
-
deleteOnLocation
DeletePackagingUnit
s on aLocation
.- Parameters:
request
- Contains the quantity, the Product and the Location where to delete the PackagingUnits from
-
deleteByPKey
-