public class ReactiveAuditingEntityCallback extends Object implements ReactiveBeforeConvertCallback<Object>, ReactiveAfterConvertCallback<Object>, Ordered
EntityCallback to populate auditing related fields on an entity about to be saved. Based on ReactiveAfterConvertCallbackHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| Constructor and Description |
|---|
ReactiveAuditingEntityCallback(ObjectFactory<ReactiveIsNewAwareAuditingHandler> auditingHandlerFactory)
Creates a new
ReactiveAuditingEntityCallback using the given MappingContext and
AuditingHandler provided by the given ObjectFactory. |
| Modifier and Type | Method and Description |
|---|---|
int |
getOrder() |
org.reactivestreams.Publisher<Object> |
onAfterConvert(Object entity,
CouchbaseDocument document,
String collection)
Entity callback method invoked after a domain object is converted to be persisted.
|
org.reactivestreams.Publisher<Object> |
onBeforeConvert(Object entity,
String collection)
Entity callback method invoked before a domain object is converted to be persisted.
|
public ReactiveAuditingEntityCallback(ObjectFactory<ReactiveIsNewAwareAuditingHandler> auditingHandlerFactory)
ReactiveAuditingEntityCallback using the given MappingContext and
AuditingHandler provided by the given ObjectFactory.auditingHandlerFactory - must not be null.public org.reactivestreams.Publisher<Object> onBeforeConvert(Object entity, String collection)
ReactiveBeforeConvertCallbackonBeforeConvert in interface ReactiveBeforeConvertCallback<Object>entity - the domain object to save.collection - name of the collection.Publisher emitting the domain object to be persisted.public org.reactivestreams.Publisher<Object> onAfterConvert(Object entity, CouchbaseDocument document, String collection)
ReactiveAfterConvertCallbackonAfterConvert in interface ReactiveAfterConvertCallback<Object>entity - the domain object to save.collection - name of the collection.Publisher emitting the domain object to be persisted.Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.