Interface LocationRemovalManager

All Known Implementing Classes:
LocationRemovalManagerImpl

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

    • tryDelete

      void tryDelete(@NotBlank @NotBlank String pKey)
      Try to delete a Location.
      Parameters:
      pKey - The persistent key of the Location to be deleted.
    • deleteAll

      void deleteAll(@NotNull @NotNull Collection<Location> locations)
      Delete Locations.
      Parameters:
      locations - The Locations to be deleted.
    • allowedToDelete

      boolean allowedToDelete(@NotNull @NotNull Collection<String> pKeys)
      Checks if the Locations with the given pKeys are allowed to be deleted.
      Parameters:
      pKeys - The persistent keys of the Locations to be checked.
      Returns:
      true if the Locations are allowed to be deleted, otherwise false.
    • markForDeletion

      void markForDeletion(@NotNull @NotNull Collection<String> pKeys)
      Mark Locations for upcoming deletion.
      Parameters:
      pKeys - The persistent keys of the Locations to be marked for deletion.