Class LocationServiceImpl
java.lang.Object
org.openwms.tms.routing.location.impl.LocationServiceImpl
- All Implemented Interfaces:
LocationService
A LocationServiceImpl.
- Author:
- Heiko Scherrer
-
Field Summary
Modifier and TypeFieldDescriptionprivate final LocationRepository
private static final org.slf4j.Logger
private final RouteService
-
Constructor Summary
ConstructorDescriptionLocationServiceImpl
(LocationRepository locationRepository, RouteService routeService) -
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.private boolean
isRemovalAllowedInternal
(String foreignPKey) 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.
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
locationRepository
-
routeService
-
-
Constructor Details
-
LocationServiceImpl
LocationServiceImpl(LocationRepository locationRepository, RouteService routeService)
-
-
Method Details
-
isRemovalAllowed
Requests the removal ofLocation
s identified by the foreign persistent keys.- Specified by:
isRemovalAllowed
in interfaceLocationService
- Parameters:
foreignPKeys
- The foreign persistent keys of theLocation
s to be deleted- Returns:
- true if deletion of
Location
s is allowed
-
isRemovalAllowedInternal
-
markForRemoval
MarkLocation
s identified by the given keys for removal.- Specified by:
markForRemoval
in interfaceLocationService
- Parameters:
foreignPKeys
- The foreign persistent keys of theLocation
s to be removed
-
delete
Deletes aLocation
with the given foreign persistent key.- Specified by:
delete
in interfaceLocationService
- Parameters:
foreignPKey
- The foreign persistent key of theLocation
instance.
-
rollbackDeletionMark
Unset a previously set removal marker on theLocation
with the given foreign persistent key.- Specified by:
rollbackDeletionMark
in interfaceLocationService
- Parameters:
foreignPKey
- The foreign persistent key of theLocation
instance.
-