Annotation Interface EnableReactiveNeo4jAuditing
@Inherited
@Documented
@Target(TYPE)
@Retention(RUNTIME)
@Import(org.springframework.data.neo4j.config.ReactiveNeo4jAuditingRegistrar.class)
public @interface EnableReactiveNeo4jAuditing
Annotation to enable auditing for SDN entities using reactive infrastructure via annotation configuration.
- Since:
- 6.0
- Author:
- Michael J. Simons
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionConfigures theAuditorAware
bean to be used to look up the current principal.Configures aDateTimeProvider
bean name that allows customizing actual date time class to be used for setting creation and modification dates.boolean
Configures whether the entity shall be marked as modified on creation.boolean
Configures whether the creation and modification dates are set.
-
Element Details
-
auditorAwareRef
String auditorAwareRefConfigures theAuditorAware
bean to be used to look up the current principal.- Returns:
- The name of the
AuditorAware
bean to be used to look up the current principal.
- Default:
- ""
-
setDates
boolean setDatesConfigures whether the creation and modification dates are set. Defaults to true.- Returns:
- whether to set the creation and modification dates.
- Default:
- true
-
modifyOnCreate
boolean modifyOnCreateConfigures whether the entity shall be marked as modified on creation. Defaults to true.- Returns:
- whether to mark the entity as modified on creation.
- Default:
- true
-
dateTimeProviderRef
String dateTimeProviderRefConfigures aDateTimeProvider
bean name that allows customizing actual date time class to be used for setting creation and modification dates.- Returns:
- The name of the
DateTimeProvider
bean to provide the current date time for creation and modification dates.
- Default:
- ""
-