Class LocationServiceImpl

java.lang.Object
org.openwms.tms.routing.location.impl.LocationServiceImpl
All Implemented Interfaces:
LocationService

@TxService class LocationServiceImpl extends Object implements LocationService
A LocationServiceImpl.
Author:
Heiko Scherrer
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • locationRepository

      private final LocationRepository locationRepository
    • routeService

      private final RouteService routeService
  • Constructor Details

  • Method Details

    • isRemovalAllowed

      @Measured public boolean isRemovalAllowed(@NotNull @NotNull List<String> foreignPKeys)
      Requests the removal of Locations identified by the foreign persistent keys.
      Specified by:
      isRemovalAllowed in interface LocationService
      Parameters:
      foreignPKeys - The foreign persistent keys of the Locations to be deleted
      Returns:
      true if deletion of Locations is allowed
    • isRemovalAllowedInternal

      private boolean isRemovalAllowedInternal(String foreignPKey)
    • markForRemoval

      @Measured public void markForRemoval(@NotNull @NotNull List<String> foreignPKeys)
      Mark Locations identified by the given keys for removal.
      Specified by:
      markForRemoval in interface LocationService
      Parameters:
      foreignPKeys - The foreign persistent keys of the Locations to be removed
    • delete

      @Measured public void delete(@NotBlank @NotBlank String foreignPKey)
      Deletes a Location with the given foreign persistent key.
      Specified by:
      delete in interface LocationService
      Parameters:
      foreignPKey - The foreign persistent key of the Location instance.
    • rollbackDeletionMark

      @Measured public void rollbackDeletionMark(@NotBlank @NotBlank String foreignPKey)
      Unset a previously set removal marker on the Location with the given foreign persistent key.
      Specified by:
      rollbackDeletionMark in interface LocationService
      Parameters:
      foreignPKey - The foreign persistent key of the Location instance.