public class ReactiveIsNewAwareAuditingHandler extends ReactiveAuditingHandler
AuditingHandler
extension that uses PersistentEntity.isNew(Object)
to expose a generic
markAudited(Object)
method that will route calls to ReactiveAuditingHandler.markCreated(Object)
or
ReactiveAuditingHandler.markModified(Object)
based on the IsNewStrategy
determined from the factory.Constructor and Description |
---|
ReactiveIsNewAwareAuditingHandler(PersistentEntities entities)
Creates a new
ReactiveIsNewAwareAuditingHandler for the given MappingContext . |
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<Object> |
markAudited(Object object)
Marks the given object created or modified based on
PersistentEntity.isNew(Object) . |
markCreated, markModified, setAuditorAware
isAuditable, setDateTimeForNow, setDateTimeProvider, setModifyOnCreation
public ReactiveIsNewAwareAuditingHandler(PersistentEntities entities)
ReactiveIsNewAwareAuditingHandler
for the given MappingContext
.entities
- must not be null.public reactor.core.publisher.Mono<Object> markAudited(Object object)
PersistentEntity.isNew(Object)
. Will route the calls to
ReactiveAuditingHandler.markCreated(Object)
and ReactiveAuditingHandler.markModified(Object)
accordingly.object
- must not be null.Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.