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.ApplicationEventPublisherprivate final LoadUnitServiceprivate final LocationServiceprivate static final org.slf4j.Loggerprivate final PackagingUnitFinderprivate final PackagingUnitMapperprivate final ProductServiceprivate final PackagingUnitRepositoryprivate 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 TypeMethodDescriptionvoidacknowledgeReservation(@NotBlank String reservationId, @NotBlank String acknowledgeId) Acknowledge a previously set reservation on aPackagingUnit.(package private) voiddelete(List<PackagingUnit> pus, String sku, org.openwms.core.units.api.Measurable quantity) voiddeleteAll(@NotEmpty List<PackagingUnit> packagingUnits) Delete multiplePackagingUnits.voiddeleteByPKey(@NotBlank String pKey) private voiddeleteInternal(PackagingUnit packagingUnit) voiddeleteOnLocation(@NotNull DeletePURequestVO request) DeletePackagingUnits on aLocation.private PackagingUnitfindByPKeyInternal(String pKey) private LoadUnitgetLoadUnit(String transportUnitBK, String loadUnitPosition) voidRelease a lockedPackagingUnit.voidreportProblem(@NotBlank String transportUnitBK, @NotBlank String loadUnitPosition, @NotNull ReportProblemVO problem) Report a Problem onPackagingUnits.private Locationresolve(LocationVO location) @NotNull PackagingUnitsave(@NotNull PackagingUnit packagingUnit) Create or update the givenPackagingUnit.@NotNull PackagingUnitVOupdate(@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 noPackagingUnitis reserved with thereservationIdthe implementation might silently return without further action.- Specified by:
 acknowledgeReservationin 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:
 updatein 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:
 savein 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 onPackagingUnits.- Specified by:
 reportProblemin 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:
 releasein interfacePackagingUnitService- Parameters:
 pKey- The persistent key
 - 
deleteAll
Delete multiplePackagingUnits.- Specified by:
 deleteAllin interfacePackagingUnitService- Parameters:
 packagingUnits- PackagingUnits to delete
 - 
deleteOnLocation
DeletePackagingUnits on aLocation.- Specified by:
 deleteOnLocationin interfacePackagingUnitService- Parameters:
 request- Contains the quantity, the Product and the Location where to delete the PackagingUnits from
 - 
deleteByPKey
- Specified by:
 deleteByPKeyin interfacePackagingUnitService
 - 
resolve
 - 
delete
 - 
deleteInternal
 
 -