public class IsNewAwareAuditingHandler extends AuditingHandler
AuditingHandler extension that uses an IsNewStrategyFactory to expose a generic
#markAudited(Optional) method that will route calls to #markCreated(Optional) or
#markModified(Optional) based on the IsNewStrategy determined from the factory.| Constructor and Description |
|---|
IsNewAwareAuditingHandler(MappingContext<? extends PersistentEntity<?,?>,? extends PersistentProperty<?>> mappingContext)
Deprecated.
use
IsNewAwareAuditingHandler(PersistentEntities) instead. |
IsNewAwareAuditingHandler(PersistentEntities entities)
Creates a new
IsNewAwareAuditingHandler for the given MappingContext. |
| Modifier and Type | Method and Description |
|---|---|
void |
markAudited(Object object)
Marks the given object created or modified based on the
IsNewStrategy returned by the
IsNewStrategyFactory configured. |
afterPropertiesSet, isAuditable, markCreated, markModified, setAuditorAware, setDateTimeForNow, setDateTimeProvider, setModifyOnCreation@Deprecated public IsNewAwareAuditingHandler(MappingContext<? extends PersistentEntity<?,?>,? extends PersistentProperty<?>> mappingContext)
IsNewAwareAuditingHandler(PersistentEntities) instead.IsNewAwareAuditingHandler for the given MappingContext.mappingContext - must not be null.public IsNewAwareAuditingHandler(PersistentEntities entities)
IsNewAwareAuditingHandler for the given MappingContext.entities - must not be null.public void markAudited(Object object)
IsNewStrategy returned by the
IsNewStrategyFactory configured. Will rout the calls to #markCreated(Optional) and
#markModified(Optional) accordingly.object - Copyright © 2011-2016–2017 Pivotal Software, Inc.. All rights reserved.