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 TypeMethodDescriptionvoid
Deletes aLocation
with the given foreign persistent key.boolean
isRemovalAllowed
(@NotNull List<String> foreignPKeys) Requests the removal ofLocation
s identified by the foreign persistent keys.void
markForRemoval
(@NotNull List<String> foreignPKeys) MarkLocation
s identified by the given keys for removal.void
rollbackDeletionMark
(@NotBlank String foreignPKey) Unset a previously set removal marker on theLocation
with the given foreign persistent key.
-
Method Details
-
isRemovalAllowed
Requests the removal ofLocation
s identified by the foreign persistent keys.- Parameters:
foreignPKeys
- The foreign persistent keys of theLocation
s to be deleted- Returns:
- true if deletion of
Location
s is allowed
-
markForRemoval
MarkLocation
s identified by the given keys for removal.- Parameters:
foreignPKeys
- The foreign persistent keys of theLocation
s to be removed
-
delete
Deletes aLocation
with the given foreign persistent key.- Parameters:
foreignPKey
- The foreign persistent key of theLocation
instance.- Throws:
IllegalArgumentException
- If the parameter 'foreignPKey' is blank.
-
rollbackDeletionMark
Unset a previously set removal marker on theLocation
with the given foreign persistent key.- Parameters:
foreignPKey
- The foreign persistent key of theLocation
instance.
-