Interface BasicAudit
public interface BasicAudit
Hold basic audit information to indicate author and timing for entity mutation
-
Method Summary
Modifier and TypeMethodDescriptionThe timestamp for the creation of the entityThe identity of the creator of this entity.The identity of the updater of this entity.The timestamp for the update of the entityvoid
setCreationTime
(Instant timestamp) The timestamp for the creation of the entityvoid
setCreator
(String creator) The identity of the creator of this entity.void
setUpdater
(String creator) The identity of the updater of this entity.void
setUpdateTime
(Instant timestamp) The timestamp for the update of the entity
-
Method Details
-
setCreator
The identity of the creator of this entity.- Parameters:
creator
- The user principal for the request. SeeContextInfo.getAuthor()
.
-
setCreationTime
The timestamp for the creation of the entity- Parameters:
timestamp
- The timestamp for the creation of the entity
-
getCreator
String getCreator()The identity of the creator of this entity.- Returns:
- The user principal for the request. See
ContextInfo.getAuthor()
.
-
getCreationTime
Instant getCreationTime()The timestamp for the creation of the entity- Returns:
- The timestamp for the creation of the entity
-
setUpdater
The identity of the updater of this entity.- Parameters:
creator
- The user principal for the request. SeeContextInfo.getAuthor()
.
-
setUpdateTime
The timestamp for the update of the entity- Parameters:
timestamp
- The timestamp for the update of the entity
-
getUpdater
String getUpdater()The identity of the updater of this entity.- Returns:
- The user principal for the request. See
ContextInfo.getAuthor()
.
-
getUpdateTime
Instant getUpdateTime()The timestamp for the update of the entity- Returns:
- The timestamp for the update of the entity
-