Package org.openwms.wms.inventory.impl
Class PackagingUnitServiceImpl
java.lang.Object
org.openwms.wms.inventory.impl.PackagingUnitServiceImpl
- All Implemented Interfaces:
PackagingUnitService
A PackagingUnitServiceImpl.
- Author:
- Heiko Scherrer
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.springframework.context.ApplicationEventPublisher
private final LoadUnitService
private final LocationService
private static final org.slf4j.Logger
private final PackagingUnitFinder
private final PackagingUnitMapper
private final ProductService
private final PackagingUnitRepository
private final ReservationService
-
Constructor Summary
ConstructorsConstructorDescriptionPackagingUnitServiceImpl
(org.springframework.context.ApplicationEventPublisher eventPublisher, PackagingUnitMapper packagingUnitMapper, PackagingUnitRepository repository, PackagingUnitFinder packagingUnitFinder, ReservationService reservationService, LocationService locationService, LoadUnitService loadUnitService, ProductService productService) -
Method Summary
Modifier and TypeMethodDescriptionvoid
acknowledgeReservation
(@NotBlank String reservationId, @NotBlank String acknowledgeId) Acknowledge a previously set reservation on aPackagingUnit
.(package private) void
delete
(List<PackagingUnit> pus, String sku, org.openwms.core.units.api.Measurable quantity) void
deleteAll
(@NotEmpty List<PackagingUnit> packagingUnits) Delete multiplePackagingUnit
s.void
deleteByPKey
(@NotBlank String pKey) private void
deleteInternal
(PackagingUnit packagingUnit) void
deleteOnLocation
(@NotNull DeletePURequestVO request) DeletePackagingUnit
s on aLocation
.private PackagingUnit
findByPKeyInternal
(String pKey) private LoadUnit
getLoadUnit
(String transportUnitBK, String loadUnitPosition) void
Release a lockedPackagingUnit
.void
reportProblem
(@NotBlank String transportUnitBK, @NotBlank String loadUnitPosition, @NotNull ReportProblemVO problem) Report a Problem onPackagingUnit
s.private Location
resolve
(LocationVO location) @NotNull PackagingUnit
save
(@NotNull PackagingUnit packagingUnit) Create or update the givenPackagingUnit
.@NotNull PackagingUnitVO
update
(@NotBlank String pKey, @NotNull PackagingUnitVO packagingUnit) Update aPackagingUnit
.
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
eventPublisher
private final org.springframework.context.ApplicationEventPublisher eventPublisher -
packagingUnitMapper
-
repository
-
packagingUnitFinder
-
reservationService
-
locationService
-
loadUnitService
-
productService
-
-
Constructor Details
-
PackagingUnitServiceImpl
PackagingUnitServiceImpl(org.springframework.context.ApplicationEventPublisher eventPublisher, PackagingUnitMapper packagingUnitMapper, PackagingUnitRepository repository, PackagingUnitFinder packagingUnitFinder, ReservationService reservationService, LocationService locationService, LoadUnitService loadUnitService, ProductService productService)
-
-
Method Details
-
acknowledgeReservation
@Measured public 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.- Specified by:
acknowledgeReservation
in interfacePackagingUnitService
- Parameters:
reservationId
- The previously set reservationIdacknowledgeId
- The acknowledgeId to replace the reservationId with
-
update
@Measured @NotNull public @NotNull PackagingUnitVO update(@NotBlank @NotBlank String pKey, @NotNull @NotNull PackagingUnitVO packagingUnit) Update aPackagingUnit
.- Specified by:
update
in interfacePackagingUnitService
- Parameters:
pKey
- The persistent identifierpackagingUnit
- The new representation of the PackagingUnit- Returns:
- The updated instance
-
getLoadUnit
-
findByPKeyInternal
-
save
@Measured @NotNull public @NotNull PackagingUnit save(@NotNull @NotNull PackagingUnit packagingUnit) Create or update the givenPackagingUnit
.- Specified by:
save
in interfacePackagingUnitService
- Parameters:
packagingUnit
- The PackagingUnit to create or update- Returns:
- the saved instance
-
reportProblem
@Measured public void reportProblem(@NotBlank @NotBlank String transportUnitBK, @NotBlank @NotBlank String loadUnitPosition, @NotNull @NotNull ReportProblemVO problem) Report a Problem onPackagingUnit
s.- Specified by:
reportProblem
in interfacePackagingUnitService
- 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
.- Specified by:
release
in interfacePackagingUnitService
- Parameters:
pKey
- The persistent key
-
deleteAll
Delete multiplePackagingUnit
s.- Specified by:
deleteAll
in interfacePackagingUnitService
- Parameters:
packagingUnits
- PackagingUnits to delete
-
deleteOnLocation
DeletePackagingUnit
s on aLocation
.- Specified by:
deleteOnLocation
in interfacePackagingUnitService
- Parameters:
request
- Contains the quantity, the Product and the Location where to delete the PackagingUnits from
-
deleteByPKey
- Specified by:
deleteByPKey
in interfacePackagingUnitService
-
resolve
-
delete
-
deleteInternal
-