EnableCosmosAuditing Interface
Implements
public interface EnableCosmosAuditing
implements Annotation
Adapted from spring-data-mongodb
Method Summary
Modifier and Type | Method and Description |
---|---|
abstract String |
auditorAwareRef()
Configures the AuditorAware bean to be used to lookup the current principal. |
abstract String |
dateTimeProviderRef()
Configures a DateTimeProvider bean name that allows customizing the Date |
abstract boolean |
modifyOnCreate()
Configures whether the entity shall be marked as modified on creation. |
abstract boolean |
setDates()
Configures whether the creation and modification dates are set. |
Method Details
auditorAwareRef
public abstract String auditorAwareRef()
Configures the AuditorAware bean to be used to lookup the current principal.
Returns:
dateTimeProviderRef
public abstract String dateTimeProviderRef()
Configures a DateTimeProvider bean name that allows customizing the DateTime to be used for setting creation and modification dates.
Returns:
modifyOnCreate
public abstract boolean modifyOnCreate()
Configures whether the entity shall be marked as modified on creation. Defaults to true.
Returns:
setDates
public abstract boolean setDates()
Configures whether the creation and modification dates are set. Defaults to true.
Returns:
Applies to
Azure SDK for Java