Interface AuditableBeanWrapper<T>
public interface AuditableBeanWrapper<T>
Interface to abstract the ways setting the auditing information can be implemented.
- Since:
- 1.5
- Author:
- Oliver Gierke
-
Method Summary
Modifier and TypeMethodDescriptiongetBean()
Returns the underlying bean that potentially has been modified by the setter methods exposed.Returns the date of the last modification date of the backing bean.setCreatedBy
(Object value) Set the creator of the object.setCreatedDate
(TemporalAccessor value) Set the date the object was created.setLastModifiedBy
(Object value) Set the last modifier of the object.Set the last modification date.
-
Method Details
-
setCreatedBy
Set the creator of the object.- Parameters:
value
-
-
setCreatedDate
Set the date the object was created.- Parameters:
value
-
-
setLastModifiedBy
Set the last modifier of the object.- Parameters:
value
-
-
getLastModifiedDate
Optional<TemporalAccessor> getLastModifiedDate()Returns the date of the last modification date of the backing bean.- Returns:
- the date of the last modification.
- Since:
- 1.10
-
setLastModifiedDate
Set the last modification date.- Parameters:
value
-
-
getBean
T getBean()Returns the underlying bean that potentially has been modified by the setter methods exposed. Client code needs to make sure to call this method to see all the changes applied via thisAuditableBeanWrapper
.- Returns:
- will never be null.
- Since:
- 2.1
-