Interface BasicAudit
-
public interface BasicAudit
Hold basic audit information to indicate author and timing for entity mutation
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Instant
getCreationTime()
The timestamp for the creation of the entityString
getCreator()
The identity of the creator of this entity.String
getUpdater()
The identity of the updater of this entity.Instant
getUpdateTime()
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 Detail
-
setCreator
void setCreator(String creator)
The identity of the creator of this entity.- Parameters:
creator
- The user principal for the request. SeeContextInfo.getAuthor()
.
-
setCreationTime
void setCreationTime(Instant timestamp)
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
void setUpdater(String creator)
The identity of the updater of this entity.- Parameters:
creator
- The user principal for the request. SeeContextInfo.getAuthor()
.
-
setUpdateTime
void setUpdateTime(Instant timestamp)
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
-
-