你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
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: