Class LocationServiceImpl
java.lang.Object
org.openwms.tms.routing.location.impl.LocationServiceImpl
- All Implemented Interfaces:
LocationService
A LocationServiceImpl.
- Author:
- Heiko Scherrer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final LocationRepositoryprivate static final org.slf4j.Loggerprivate final RouteService -
Constructor Summary
ConstructorsConstructorDescriptionLocationServiceImpl(LocationRepository locationRepository, RouteService routeService) -
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.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
-
LOGGER
private static final org.slf4j.Logger LOGGER -
locationRepository
-
routeService
-
-
Constructor Details
-
LocationServiceImpl
LocationServiceImpl(LocationRepository locationRepository, RouteService routeService)
-
-
Method Details
-
isRemovalAllowed
Requests the removal ofLocations identified by the foreign persistent keys.- Specified by:
isRemovalAllowedin interfaceLocationService- Parameters:
foreignPKeys- The foreign persistent keys of theLocations to be deleted- Returns:
- true if deletion of
Locations is allowed
-
isRemovalAllowedInternal
-
markForRemoval
MarkLocations identified by the given keys for removal.- Specified by:
markForRemovalin interfaceLocationService- Parameters:
foreignPKeys- The foreign persistent keys of theLocations to be removed
-
delete
Deletes aLocationwith the given foreign persistent key.- Specified by:
deletein interfaceLocationService- Parameters:
foreignPKey- The foreign persistent key of theLocationinstance.
-
rollbackDeletionMark
Unset a previously set removal marker on theLocationwith the given foreign persistent key.- Specified by:
rollbackDeletionMarkin interfaceLocationService- Parameters:
foreignPKey- The foreign persistent key of theLocationinstance.
-
findByLocationId
Find a Location by its givenlocationId.- Specified by:
findByLocationIdin interfaceLocationService- Parameters:
locationId- The ID of the Location must not be blank- Returns:
- Optional instance of the Location
-