Package org.openwms.wms.location.impl
Class LocationSynchronizerImpl
java.lang.Object
org.openwms.wms.location.impl.LocationSynchronizerImpl
- All Implemented Interfaces:
LocationSynchronizer
A LocationSynchronizerImpl is a Spring managed transaction service that is responsible to synchronize the state of
Locations with
the golden source.- Author:
- Heiko Scherrer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.springframework.context.ApplicationEventPublisherprivate static final org.slf4j.Loggerprivate final LocationMapperprivate final LocationRepositoryprivate final org.ameba.i18n.Translator -
Constructor Summary
ConstructorsConstructorDescriptionLocationSynchronizerImpl(org.ameba.i18n.Translator translator, LocationMapper mapper, LocationRepository repository, org.springframework.context.ApplicationEventPublisher eventPublisher) -
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.private LocationfindByForeignPKeyInternal(String foreignPKey) voidrollbackDeletionMark(@NotBlank String foreignPKey) Unset a previously set removal marker on theLocationwith the given foreign persistent key.
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
translator
private final org.ameba.i18n.Translator translator -
mapper
-
repository
-
eventPublisher
private final org.springframework.context.ApplicationEventPublisher eventPublisher
-
-
Constructor Details
-
LocationSynchronizerImpl
LocationSynchronizerImpl(org.ameba.i18n.Translator translator, LocationMapper mapper, LocationRepository repository, org.springframework.context.ApplicationEventPublisher eventPublisher)
-
-
Method Details
-
create
@Measured public void create(@NotNull @NotNull org.openwms.common.location.api.messages.LocationMO location) Create a newLocationon demand.- Specified by:
createin interfaceLocationSynchronizer- Parameters:
location- The instance to create
-
changeState
@Measured public void changeState(@NotBlank @NotBlank String foreignPKey, Boolean incomingActive, Boolean outgoingActive, Integer plcState) Change the state of aLocation.- Specified by:
changeStatein interfaceLocationSynchronizer- 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.- Specified by:
deletein interfaceLocationSynchronizer- Parameters:
foreignPKey- The foreign persistent key of theLocationinstance.
-
rollbackDeletionMark
Unset a previously set removal marker on theLocationwith the given foreign persistent key.- Specified by:
rollbackDeletionMarkin interfaceLocationSynchronizer- Parameters:
foreignPKey- The foreign persistent key of theLocationinstance.
-
findByForeignPKeyInternal
-