Package org.openwms.tms.routing.location
Interface LocationService
- All Known Implementing Classes:
- LocationServiceImpl
public interface LocationService
A LocationService.
- Author:
- Heiko Scherrer
- 
Method SummaryModifier 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- 
isRemovalAllowedRequests the removal ofLocations identified by the foreign persistent keys.- Parameters:
- foreignPKeys- The foreign persistent keys of the- Locations to be deleted
- Returns:
- true if deletion of Locations is allowed
 
- 
markForRemovalMarkLocations identified by the given keys for removal.- Parameters:
- foreignPKeys- The foreign persistent keys of the- Locations to be removed
 
- 
deleteDeletes aLocationwith the given foreign persistent key.- Parameters:
- foreignPKey- The foreign persistent key of the- Locationinstance.
- Throws:
- IllegalArgumentException- If the parameter 'foreignPKey' is blank.
 
- 
rollbackDeletionMarkUnset a previously set removal marker on theLocationwith the given foreign persistent key.- Parameters:
- foreignPKey- The foreign persistent key of the- Locationinstance.
 
- 
findByLocationIdFind a Location by its givenlocationId.- Parameters:
- locationId- The ID of the Location must not be blank
- Returns:
- Optional instance of the Location
 
 
-