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 DateTime to be used for setting creation and modification dates.

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:

default empty string

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:

default empty string

modifyOnCreate

public abstract boolean modifyOnCreate()

Configures whether the entity shall be marked as modified on creation. Defaults to true.

Returns:

default true

setDates

public abstract boolean setDates()

Configures whether the creation and modification dates are set. Defaults to true.

Returns:

default true

Applies to