Package org.openwms.wms.location
Interface LocationService
- All Known Implementing Classes:
LocationServiceImpl
public interface LocationService
A LocationService.
- Author:
- Heiko Scherrer
-
Method Summary
Modifier and TypeMethodDescription@NotNull Location
findByBK
(@NotNull LocationPK locationId) Find and return the Location identified by the business key.@NotNull Location
findByErpCode
(@NotBlank String erpCode) Find and return the Location identified by the unique erpCode.@NotNull Location
findByForeignPKey
(@NotBlank String foreignPKey) Find and return a Location identified by the persistent key.findOptionalByErpCode
(@NotBlank String erpCode) Find and return the Location identified by the unique erpCode.findOptionalByID
(@NotNull LocationPK locationId) Find and return the Location identified by the business 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.@NotNull Location
Save aLocation
.
-
Method Details
-
findByForeignPKey
Find and return a Location identified by the persistent key.- Parameters:
foreignPKey
- The foreign persistent key of the Location instance- Returns:
- The instance
-
findOptionalByID
Find and return the Location identified by the business key.- Parameters:
locationId
- The coordinate of the Location- Returns:
- The instance
-
findByBK
Find and return the Location identified by the business key.- Parameters:
locationId
- The coordinate of the Location- Returns:
- The instance
- Throws:
org.ameba.exception.NotFoundException
- in case the Location does not exist
-
findByErpCode
Find and return the Location identified by the unique erpCode.- Parameters:
erpCode
- The unique ERP code- Returns:
- The instance
- Throws:
org.ameba.exception.NotFoundException
- in case the Location does not exist
-
findOptionalByErpCode
Find and return the Location identified by the unique erpCode.- Parameters:
erpCode
- The unique ERP code- Returns:
- The instance
-
save
Save aLocation
.- Parameters:
location
- The instance to save- Returns:
- The saved instance
-
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
-