Package de.hybris.platform.outboundsync
Class TestItemChangeDetector
java.lang.Object
org.junit.rules.ExternalResource
de.hybris.platform.outboundsync.TestItemChangeDetector
- All Implemented Interfaces:
org.junit.rules.TestRule
@Deprecated(since="2105",
forRemoval=true)
public class TestItemChangeDetector
extends org.junit.rules.ExternalResource
Deprecated, for removal: This API element is subject to removal in a future version.
A jUnit test rule for verifying item change conditions and creating/managing the change streams associated with
the items changes.
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidafter()Deprecated, for removal: This API element is subject to removal in a future version.voidDeprecated, for removal: This API element is subject to removal in a future version.Consumes all changes, which possibly present in all so far created streams.createChangeStream(OutboundChannelConfigurationModel channel, String typecode) Deprecated, for removal: This API element is subject to removal in a future version.Creates new delta detect stream and guarantees it has no outstanding changes in it.createChangeStream(OutboundChannelConfigurationModel channel, String typecode, String filter) Deprecated, for removal: This API element is subject to removal in a future version.Creates new delta detect stream and guarantees it has no outstanding changes in it.createChangeStream(String channelCode, String typecode) Deprecated, for removal: This API element is subject to removal in a future version.Creates new delta detect stream and guarantees it has no outstanding changes in it.createChangeStream(String channelCode, String typecode, String filter) Deprecated, for removal: This API element is subject to removal in a future version.Creates new delta detect stream and guarantees it has no outstanding changes in it.voidcreateChannel(String channelCode, String io, ConsumedDestinationModel destination) Deprecated, for removal: This API element is subject to removal in a future version.Creates an outbound channel configurationDeprecated, for removal: This API element is subject to removal in a future version.Retrieves all changes from all created change stream, which have not been consumed yet.booleanDeprecated, for removal: This API element is subject to removal in a future version.Determines whether any of the created change streams has unconsumed item changes.voidreset()Deprecated, for removal: This API element is subject to removal in a future version.Resets its state by consuming all changes in all created change streams and deletes the created change streams.Methods inherited from class org.junit.rules.ExternalResource
apply, before
-
Constructor Details
-
TestItemChangeDetector
public TestItemChangeDetector()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
after
protected void after()Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
afterin classorg.junit.rules.ExternalResource
-
reset
public void reset()Deprecated, for removal: This API element is subject to removal in a future version.Resets its state by consuming all changes in all created change streams and deletes the created change streams. This method does not affect streams created outside of this rule class. -
consumeAllCurrentChanges
public void consumeAllCurrentChanges()Deprecated, for removal: This API element is subject to removal in a future version.Consumes all changes, which possibly present in all so far created streams. -
hasAllChangesConsumed
public boolean hasAllChangesConsumed()Deprecated, for removal: This API element is subject to removal in a future version.Determines whether any of the created change streams has unconsumed item changes.- Returns:
true, if all changes are consumed;false, if at least one unconsumed item change is present in at least of of the created streams.- See Also:
-
getAllCurrentChanges
Deprecated, for removal: This API element is subject to removal in a future version.Retrieves all changes from all created change stream, which have not been consumed yet.- Returns:
- a list of item changes or an empty list, if there are no outstanding unconsumed changes.
-
createChannel
public void createChannel(String channelCode, String io, ConsumedDestinationModel destination) throws ImpExException Deprecated, for removal: This API element is subject to removal in a future version.Creates an outbound channel configuration- Parameters:
channelCode- code for the channel to createio- integration object code to associate with the channeldestination- a consumed destination model to associate with the channel- Throws:
ImpExException
-
createChangeStream
public OutboundSyncStreamConfigurationModel createChangeStream(OutboundChannelConfigurationModel channel, String typecode) throws ImpExException Deprecated, for removal: This API element is subject to removal in a future version.Creates new delta detect stream and guarantees it has no outstanding changes in it.- Parameters:
channel- a delta detect channel, the new stream should associated with.typecode- type code of a type system item, the stream should contain changes for.- Returns:
- the created change stream
- Throws:
ImpExException
-
createChangeStream
public OutboundSyncStreamConfigurationModel createChangeStream(OutboundChannelConfigurationModel channel, String typecode, String filter) throws ImpExException Deprecated, for removal: This API element is subject to removal in a future version.Creates new delta detect stream and guarantees it has no outstanding changes in it.- Parameters:
channel- a delta detect channel, the new stream should associated with.typecode- type code of a type system item, the stream should contain changes for.filter- additionalwhereclause condition to be applied to the items in the stream. Only changes for the items matching this conditions will be reported by the stream. Changes done to the non-matching items will no be contained in this stream.- Returns:
- the created change stream
- Throws:
ImpExException
-
createChangeStream
public OutboundSyncStreamConfigurationModel createChangeStream(String channelCode, String typecode) throws ImpExException Deprecated, for removal: This API element is subject to removal in a future version.Creates new delta detect stream and guarantees it has no outstanding changes in it.- Parameters:
channelCode- code of the corresponding delta detect channel, the new stream should associated with.typecode- type code of a type system item, the stream should contain changes for.- Returns:
- the created change stream
- Throws:
ImpExException
-
createChangeStream
public OutboundSyncStreamConfigurationModel createChangeStream(String channelCode, String typecode, String filter) throws ImpExException Deprecated, for removal: This API element is subject to removal in a future version.Creates new delta detect stream and guarantees it has no outstanding changes in it.- Parameters:
channelCode- code of the corresponding delta detect channel, the new stream should associated with.typecode- type code of a type system item, the stream should contain changes for.filter- additionalwhereclause condition to be applied to the items in the stream. Only changes for the items matching this conditions will be reported by the stream. Changes done to the non-matching items will no be contained in this stream.- Returns:
- the created change stream
- Throws:
ImpExException
-
OutboundSyncStreamConfigurationBuilderandOutboundChannelConfigurationBuilderinstead.