Class DefaultFilteringService
java.lang.Object
de.hybris.platform.outboundsync.job.impl.DefaultFilteringService
- All Implemented Interfaces:
FilteringService
A filter service for all outbound item dto's collected by
StreamingChangesCollector.-
Constructor Summary
ConstructorsConstructorDescriptionDefaultFilteringService(@NotNull OutboundItemConsumer outboundItemConsumer) Constructor to create FilteringService -
Method Summary
Modifier and TypeMethodDescriptionapplyFilters(@NotNull OutboundItemDTO dto, @NotNull IntegrationObjectModel io) Searches for an applicableSyncFilterfrom the syncFilterList and calls evaluate on the first applicable filter if any is found.voidsetSyncFilterList(List<SyncFilter> syncFilterList)
-
Constructor Details
-
DefaultFilteringService
Constructor to create FilteringService- Parameters:
outboundItemConsumer- - outbound item consumer responsible for consuming changes that will not be sent outbound
-
-
Method Details
-
applyFilters
public Optional<OutboundItemDTO> applyFilters(@NotNull @NotNull OutboundItemDTO dto, @NotNull @NotNull IntegrationObjectModel io) Searches for an applicableSyncFilterfrom the syncFilterList and calls evaluate on the first applicable filter if any is found. Consumes the item change dto and returns optional empty if an applicableSyncFilterfilters it out when evaluating.- Specified by:
applyFiltersin interfaceFilteringService- Parameters:
dto- - outbound item dtoio- - integration object- Returns:
- - outbound item dto that will be sent to the spring configuration channel for synchronization, or an empty optional
-
setSyncFilterList
-