Interface CTEventListener
public interface CTEventListener
CT event listeners are used for extending change tracking behavior into
additional types of storage. Examples include: file system, message bus, and
search index.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidonAfterCopy(long sourceCTCollectionId, long targetCTCollectionId) Called after copying the source CTCollection into the target CTCollection.default voidonAfterPublish(long ctCollectionId) Called after checking conflicts and publishing theCTCollection.default voidonBeforePublish(long ctCollectionId) Called before checking conflicts and publishing theCTCollection.default voidonBeforeRemove(long ctCollectionId) Called before deleting aCTCollection.
-
Method Details
-
onAfterCopy
default void onAfterCopy(long sourceCTCollectionId, long targetCTCollectionId) throws CTEventException Called after copying the source CTCollection into the target CTCollection.- Parameters:
sourceCTCollectionId- the change tracking collection ID of the sourceCTCollectiontargetCTCollectionId- the change tracking collection ID of the targetCTCollection- Throws:
CTEventException- if a exception occurred
-
onAfterPublish
Called after checking conflicts and publishing theCTCollection.- Parameters:
ctCollectionId- the collection ID of theCTCollectionbeing published- Throws:
CTEventException- if an exception occurred
-
onBeforePublish
Called before checking conflicts and publishing theCTCollection.- Parameters:
ctCollectionId- the collection ID of theCTCollectionbeing published- Throws:
CTEventException- if an exception occurred
-
onBeforeRemove
Called before deleting aCTCollection.- Parameters:
ctCollectionId- the collection ID of theCTCollectionbeing deleted- Throws:
CTEventException- if an exception occurred
-