public interface ChangeDetectionService
| Modifier and Type | Method and Description |
|---|---|
void |
collectChangesForType(ComposedTypeModel composedType,
StreamConfiguration configuration,
ChangesCollector collector)
Detects all kind of changes (NEW, MODIFIED, DELETED) on items for the given composed type.
|
void |
collectChangesForType(ComposedTypeModel composedType,
java.lang.String streamId,
ChangesCollector collector)
Detects all kind of changes (NEW, MODIFIED, DELETED) on items for the given composed type.
|
void |
consumeChanges(java.util.List<ItemChangeDTO> changes)
Consumes all given changes.
|
void |
deleteItemVersionMarkersForStream(java.lang.String streamId)
Deletes all item version markers belonging to the stream
|
ItemChangeDTO |
getChangeForExistingItem(ItemModel item,
java.lang.String streamId)
Detects change for a given existing item and stream.
|
ItemChangeDTO |
getChangeForRemovedItem(PK pk,
java.lang.String streamId)
Detects potential change for a an not existing item - (change type 'DELETED'), stored under
ItemVersionMarker referencing given item pk.
|
java.util.List<ItemChangeDTO> |
getChangesForRemovedItems(java.lang.String streamId)
Detects changes for all items, which doesn't exist anymore (change type 'DELETED'), stored under
ItemVersionMarker referencing the not existing item pks.
|
void |
resetStream(java.lang.String streamId)
Resets the stream.
|
ItemChangeDTO getChangeForExistingItem(ItemModel item, java.lang.String streamId)
item - the item to be checkedstreamId - the streamId for which the changes should be detectItemChangeDTO Object containing all the information about the changeItemChangeDTO getChangeForRemovedItem(PK pk, java.lang.String streamId)
pk - the pk of the item to be checkedstreamId - the streamId for which the change should be detectItemChangeDTO Object containing all the information about the changejava.util.List<ItemChangeDTO> getChangesForRemovedItems(java.lang.String streamId)
streamId - the streamId for which the change should be detectItemChangeDTO Objects containing all the information about the changesvoid collectChangesForType(ComposedTypeModel composedType, java.lang.String streamId, ChangesCollector collector)
composedType - the type for which the change detection should be executed (including subtypes)streamId - the streamId for which the change should be detectcollector - responsible for collecting the changes in specified way, e.g. store them in memory or generate
csv file.void collectChangesForType(ComposedTypeModel composedType, StreamConfiguration configuration, ChangesCollector collector)
composedType - the type for which the change detection should be executed (including subtypes)configuration - the stream configuration defining which item should be included into the stream.collector - responsible for collecting the changes in specified way, e.g. store them in memory or generate csv file.StreamConfigurationvoid consumeChanges(java.util.List<ItemChangeDTO> changes)
ItemChangeDTO objectschanges - list of the changes to be consumed.void deleteItemVersionMarkersForStream(java.lang.String streamId)
streamId - stream id for which item version markers should be deletedvoid resetStream(java.lang.String streamId)
streamId - stream id for which item version markers should be resetCopyright © 2018 SAP SE. All Rights Reserved.