public class Neo4jAuditingEventListener
extends org.neo4j.ogm.session.event.EventListenerAdapter
implements org.neo4j.ogm.session.event.EventListener
| Constructor and Description |
|---|
Neo4jAuditingEventListener(ObjectFactory<IsNewAwareAuditingHandler> auditingHandlerFactory)
Constructor used for creating an instance in the
Neo4jAuditingRegistrar to get registered in the session
"manually". |
Neo4jAuditingEventListener(ObjectFactory<IsNewAwareAuditingHandler> auditingHandlerFactory,
org.neo4j.ogm.session.SessionFactory sessionFactory)
Creates a new
Neo4jAuditingEventListener using the given MappingContext and AuditingHandler
provided by the given ObjectFactory. |
| Modifier and Type | Method and Description |
|---|---|
void |
onPreSave(org.neo4j.ogm.session.event.Event event) |
onPostDelete, onPostSave, onPreDeletepublic Neo4jAuditingEventListener(ObjectFactory<IsNewAwareAuditingHandler> auditingHandlerFactory, org.neo4j.ogm.session.SessionFactory sessionFactory)
Neo4jAuditingEventListener using the given MappingContext and AuditingHandler
provided by the given ObjectFactory. This constructor does an additional registration to the
SessionFactory. Therefore the SessionFactory must already be instantiated.auditingHandlerFactory - must not be null.public Neo4jAuditingEventListener(ObjectFactory<IsNewAwareAuditingHandler> auditingHandlerFactory)
Neo4jAuditingRegistrar to get registered in the session
"manually". The registration is done within the Neo4jAuditingBeanFactoryPostProcessor.auditingHandlerFactory - AuditingHandler to hook into the preSave phase for auditing.Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.