Class LocationServiceImpl
java.lang.Object
org.openwms.tms.routing.location.impl.LocationServiceImpl
- All Implemented Interfaces:
- LocationService
A LocationServiceImpl.
- Author:
- Heiko Scherrer
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final LocationRepositoryprivate static final org.slf4j.Loggerprivate final RouteService
- 
Constructor SummaryConstructorsConstructorDescriptionLocationServiceImpl(LocationRepository locationRepository, RouteService routeService) 
- 
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.private booleanisRemovalAllowedInternal(String foreignPKey) 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.
- 
Field Details- 
LOGGERprivate static final org.slf4j.Logger LOGGER
- 
locationRepository
- 
routeService
 
- 
- 
Constructor Details- 
LocationServiceImplLocationServiceImpl(LocationRepository locationRepository, RouteService routeService) 
 
- 
- 
Method Details- 
isRemovalAllowedRequests the removal ofLocations identified by the foreign persistent keys.- Specified by:
- isRemovalAllowedin interface- LocationService
- Parameters:
- foreignPKeys- The foreign persistent keys of the- Locations to be deleted
- Returns:
- true if deletion of Locations is allowed
 
- 
isRemovalAllowedInternal
- 
markForRemovalMarkLocations identified by the given keys for removal.- Specified by:
- markForRemovalin interface- LocationService
- Parameters:
- foreignPKeys- The foreign persistent keys of the- Locations to be removed
 
- 
deleteDeletes aLocationwith the given foreign persistent key.- Specified by:
- deletein interface- LocationService
- Parameters:
- foreignPKey- The foreign persistent key of the- Locationinstance.
 
- 
rollbackDeletionMarkUnset a previously set removal marker on theLocationwith the given foreign persistent key.- Specified by:
- rollbackDeletionMarkin interface- LocationService
- Parameters:
- foreignPKey- The foreign persistent key of the- Locationinstance.
 
- 
findByLocationIdFind a Location by its givenlocationId.- Specified by:
- findByLocationIdin interface- LocationService
- Parameters:
- locationId- The ID of the Location must not be blank
- Returns:
- Optional instance of the Location
 
 
-