Package org.openwms.common.location
Interface LocationService
- All Known Implementing Classes:
LocationServiceImpl
public interface LocationService
A LocationService manages
Locations.- Author:
- Heiko Scherrer
-
Method Summary
Modifier and TypeMethodDescriptionvoidchangeState(@NotBlank String pKey, @NotNull ErrorCodeVO errorCode) Change the infeed and outfeed state of aLocationin respect of the accordingLocationGroup.voidchangeState(@NotNull LocationPK bk, @NotNull ErrorCodeVO errorCode) Change the infeed and outfeed state of aLocationin respect of the accordingLocationGroup.@NotNull LocationCreate 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 LocationfindByLocationIdOrThrow(@NotBlank String locationId) Find and return aLocation.findByLocationPk(@NotNull LocationPK locationId) Find and return aLocation.@NotNull LocationfindByPKey(@NotBlank String pKey) Find and return aLocation.findByPlcCode(@NotBlank String plcCode) Find and return aLocation.findLocations(@NotNull LocationPK locationIds) Find and return allLocations that match thelocationIdswhereas the attributes of theLocationPKmay include SQL wildcard operators, like '%', '_'.@NotNull LocationModify 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 allLocations that match thelocationIdswhereas the attributes of theLocationPKmay 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 aLocationin 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 aLocationin 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
-