Package org.openwms.common.location
Interface LocationService
- All Known Implementing Classes:
LocationServiceImpl
public interface LocationService
A LocationService manages
Location
s.- Author:
- Heiko Scherrer
-
Method Summary
Modifier and TypeMethodDescriptionvoid
changeState
(@NotBlank String pKey, @NotNull ErrorCodeVO errorCode) Change the infeed and outfeed state of aLocation
in respect of the accordingLocationGroup
.void
changeState
(@NotNull LocationPK bk, @NotNull ErrorCodeVO errorCode) Change the infeed and outfeed state of aLocation
in respect of the accordingLocationGroup
.@NotNull Location
Create a new non-existingLocation
.Find and return all Locations that belong to aLocationGroup
.findByErpCode
(@NotBlank String erpCode) Find and return aLocation
.findByLocationId
(@NotBlank String locationId) Find and return aLocation
.@NotNull Location
findByLocationIdOrThrow
(@NotBlank String locationId) Find and return aLocation
.findByLocationPk
(@NotNull LocationPK locationId) Find and return aLocation
.@NotNull Location
findByPKey
(@NotBlank String pKey) Find and return aLocation
.findByPlcCode
(@NotBlank String plcCode) Find and return aLocation
.findLocations
(@NotNull LocationPK locationIds) Find and return allLocation
s that match thelocationIds
whereas the attributes of theLocationPK
may include SQL wildcard operators, like '%', '_'.@NotNull Location
Modify and update an existingLocation
.
-
Method Details
-
create
Create a new non-existingLocation
.- Parameters:
location
- The representation with the mandatory data to create the Location- Returns:
- The created instance
-
findByPKey
Find and return aLocation
.- Parameters:
pKey
- The persistent key- Returns:
- The instance
- Throws:
org.ameba.exception.NotFoundException
- If the Location does not exist
-
findByLocationPk
Find and return aLocation
.- Parameters:
locationId
- The business key of the Location to search for as String- Returns:
- The Location instance
-
findByLocationId
Find and return aLocation
.- Parameters:
locationId
- The business key of the Location to search for as String- Returns:
- The Location instance
-
findByLocationIdOrThrow
Find and return aLocation
.- Parameters:
locationId
- The business key of the Location to search for as String- Returns:
- The Location instance
- Throws:
org.ameba.exception.NotFoundException
- In case the Location does not exist
-
findLocations
Find and return allLocation
s that match thelocationIds
whereas the attributes of theLocationPK
may include SQL wildcard operators, like '%', '_'.- Parameters:
locationIds
- The business keys of the Locations to search for as Strings- Returns:
- The Location instances or an empty list, never null
-
findByErpCode
Find and return aLocation
.- Parameters:
erpCode
- The ERP Code of the Location to search for- Returns:
- The Location instance
-
findByPlcCode
Find and return aLocation
.- Parameters:
plcCode
- The PLC Code of the Location to search for- Returns:
- The Location instance
-
findAllOf
Find and return all Locations that belong to aLocationGroup
.- Parameters:
locationGroupNames
- The identifying names of the LocationGroups to search Locations for- Returns:
- The LocationGroup instances or an empty list, never null
-
changeState
Change the infeed and outfeed state of aLocation
in respect of the accordingLocationGroup
.- Parameters:
pKey
- The persistent key identifier of the Location to changeerrorCode
- Contains the error bitmap to encode the state
-
changeState
Change the infeed and outfeed state of aLocation
in respect of the accordingLocationGroup
.- Parameters:
bk
- The business key identifier of the Location to changeerrorCode
- Contains the error bitmap to encode the state
-
save
Modify and update an existingLocation
.- Parameters:
location
- Modified instance- Returns:
- Saved instance
- Throws:
org.ameba.exception.NotFoundException
- If the passed instance does not already exist
-