Package org.openwms.wms.location
Interface LocationSynchronizer
- All Known Implementing Classes:
LocationSynchronizerImpl
public interface LocationSynchronizer
A LocationSynchronizer is used to synchronize the state of Locations with the golden source.
- Author:
- Heiko Scherrer
-
Method Summary
Modifier and TypeMethodDescriptionvoid
changeState
(@NotBlank String foreignPKey, Boolean incomingActive, Boolean outgoingActive, Integer plcState) Change the state of aLocation
.void
create
(@NotNull org.openwms.common.location.api.messages.LocationMO location) Create a newLocation
on demand.void
Deletes aLocation
with the given foreign persistent key.void
rollbackDeletionMark
(@NotBlank String foreignPKey) Unset a previously set removal marker on theLocation
with the given foreign persistent key.
-
Method Details
-
create
void create(@NotNull @NotNull org.openwms.common.location.api.messages.LocationMO location) Create a newLocation
on demand.- Parameters:
location
- The instance to create
-
changeState
void changeState(@NotBlank @NotBlank String foreignPKey, Boolean incomingActive, Boolean outgoingActive, Integer plcState) Change the state of aLocation
.- Parameters:
foreignPKey
- The foreign persistent key of the Location instanceincomingActive
- The state for incoming or inbound goodsoutgoingActive
- The state for outgoing or outbound goodsplcState
- The PLC state of the Location
-
delete
Deletes aLocation
with the given foreign persistent key.- Parameters:
foreignPKey
- The foreign persistent key of theLocation
instance.- Throws:
IllegalArgumentException
- If the parameter 'foreignPKey' is blank.
-
rollbackDeletionMark
Unset a previously set removal marker on theLocation
with the given foreign persistent key.- Parameters:
foreignPKey
- The foreign persistent key of theLocation
instance.
-