Package org.openwms.tms.routing.location
Interface LocationService
- All Known Implementing Classes:
LocationServiceImpl
public interface LocationService
A LocationService.
- Author:
- Heiko Scherrer
-
Method Summary
Modifier and TypeMethodDescriptionvoidDeletes aLocationwith the given foreign persistent key.findByLocationId(@NotBlank String locationId) Find a Location by its givenlocationId.booleanisRemovalAllowed(@NotNull List<String> foreignPKeys) Requests the removal ofLocations identified by the foreign persistent keys.voidmarkForRemoval(@NotNull List<String> foreignPKeys) MarkLocations identified by the given keys for removal.voidrollbackDeletionMark(@NotBlank String foreignPKey) Unset a previously set removal marker on theLocationwith the given foreign persistent key.
-
Method Details
-
isRemovalAllowed
Requests the removal ofLocations identified by the foreign persistent keys.- Parameters:
foreignPKeys- The foreign persistent keys of theLocations to be deleted- Returns:
- true if deletion of
Locations is allowed
-
markForRemoval
MarkLocations identified by the given keys for removal.- Parameters:
foreignPKeys- The foreign persistent keys of theLocations to be removed
-
delete
Deletes aLocationwith the given foreign persistent key.- Parameters:
foreignPKey- The foreign persistent key of theLocationinstance.- Throws:
IllegalArgumentException- If the parameter 'foreignPKey' is blank.
-
rollbackDeletionMark
Unset a previously set removal marker on theLocationwith the given foreign persistent key.- Parameters:
foreignPKey- The foreign persistent key of theLocationinstance.
-
findByLocationId
Find a Location by its givenlocationId.- Parameters:
locationId- The ID of the Location must not be blank- Returns:
- Optional instance of the Location
-