Interface PackagingUnitService

All Known Implementing Classes:
PackagingUnitServiceImpl

public interface PackagingUnitService
A PackagingUnitService.
Author:
Heiko Scherrer
  • Method Details

    • acknowledgeReservation

      void acknowledgeReservation(@NotBlank @NotBlank String reservationId, @NotBlank @NotBlank String acknowledgeId)
      Acknowledge a previously set reservation on a PackagingUnit. If no PackagingUnit is reserved with the reservationId the implementation might silently return without further action.
      Parameters:
      reservationId - The previously set reservationId
      acknowledgeId - The acknowledgeId to replace the reservationId with
    • update

      @NotNull @NotNull PackagingUnitVO update(@NotBlank @NotBlank String pKey, @NotNull @NotNull PackagingUnitVO packagingUnit)
      Update a PackagingUnit.
      Parameters:
      pKey - The persistent identifier
      packagingUnit - The new representation of the PackagingUnit
      Returns:
      The updated instance
    • save

      @NotNull @NotNull PackagingUnit save(@NotNull @NotNull PackagingUnit packagingUnit)
      Create or update the given PackagingUnit.
      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 on PackagingUnits.
      Parameters:
      transportUnitBK - The TransportUnit where the PackagingUnits are stored in
      loadUnitPosition - The LoadUnit where the PackagingUnits are stored in
      problem - The representation of the problem
    • release

      void release(@NotBlank @NotBlank String pKey)
      Release a locked PackagingUnit.
      Parameters:
      pKey - The persistent key
    • deleteAll

      void deleteAll(@NotEmpty @NotEmpty List<PackagingUnit> packagingUnits)
      Delete multiple PackagingUnits.
      Parameters:
      packagingUnits - PackagingUnits to delete
    • deleteOnLocation

      void deleteOnLocation(@NotNull @NotNull DeletePURequestVO request)
      Delete PackagingUnits on a Location.
      Parameters:
      request - Contains the quantity, the Product and the Location where to delete the PackagingUnits from
    • deleteByPKey

      void deleteByPKey(@NotBlank @NotBlank String pKey)