|
Spring Data Core | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.data.auditing.AuditingHandler
org.springframework.data.auditing.IsNewAwareAuditingHandler
public class IsNewAwareAuditingHandler
AuditingHandler extension that uses an IsNewStrategyFactory to expose a generic
markAudited(Object) method that will route calls to AuditingHandler.markCreated(Object) or
AuditingHandler.markModified(Object) based on the IsNewStrategy determined from the factory.
| Constructor Summary | |
|---|---|
IsNewAwareAuditingHandler(IsNewStrategyFactory isNewStrategyFactory)
Deprecated. use constructor taking a MappingContext directly. Will be removed in 1.9. |
|
IsNewAwareAuditingHandler(MappingContext<? extends PersistentEntity<?,?>,? extends PersistentProperty<?>> mappingContext)
Creates a new IsNewAwareAuditingHandler for the given MappingContext. |
|
| Method Summary | |
|---|---|
void |
markAudited(Object object)
Marks the given object created or modified based on the IsNewStrategy returned by the
IsNewStrategyFactory configured. |
| Methods inherited from class org.springframework.data.auditing.AuditingHandler |
|---|
afterPropertiesSet, markCreated, markModified, setAuditorAware, setDateTimeForNow, setDateTimeProvider, setModifyOnCreation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IsNewAwareAuditingHandler(MappingContext<? extends PersistentEntity<?,?>,? extends PersistentProperty<?>> mappingContext)
IsNewAwareAuditingHandler for the given MappingContext.
mappingContext - must not be null.@Deprecated public IsNewAwareAuditingHandler(IsNewStrategyFactory isNewStrategyFactory)
MappingContext directly. Will be removed in 1.9.
IsNewAwareAuditingHandler using the given IsNewStrategyFactory.
isNewStrategyFactory - must not be null.| Method Detail |
|---|
public void markAudited(Object object)
IsNewStrategy returned by the
IsNewStrategyFactory configured. Will rout the calls to AuditingHandler.markCreated(Object) and
AuditingHandler.markModified(Object) accordingly.
object -
|
Spring Data Core | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||