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 TypeMethodDescriptionvoidchangeState(@NotBlank String foreignPKey, Boolean incomingActive, Boolean outgoingActive, Integer plcState) Change the state of aLocation.voidcreate(@NotNull org.openwms.common.location.api.messages.LocationMO location) Create a newLocationon demand.voidDeletes aLocationwith the given foreign persistent key.voidrollbackDeletionMark(@NotBlank String foreignPKey) Unset a previously set removal marker on theLocationwith the given foreign persistent key.
-
Method Details
-
create
void create(@NotNull @NotNull org.openwms.common.location.api.messages.LocationMO location) Create a newLocationon 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 aLocationwith the given foreign persistent key.- Parameters:
foreignPKey- The foreign persistent key of theLocationinstance.- Throws:
IllegalArgumentException- If the parameter 'foreignPKey' is blank.
-
rollbackDeletionMark
Unset a previously set removal marker on theLocationwith the given foreign persistent key.- Parameters:
foreignPKey- The foreign persistent key of theLocationinstance.
-