U
- the auditing type. Typically some kind of user.ID
- the type of the audited type's identifierpublic interface Auditable<U,ID,T extends TemporalAccessor> extends Persistable<ID>
Modifier and Type | Method and Description |
---|---|
Optional<U> |
getCreatedBy()
Returns the user who created this entity.
|
Optional<T> |
getCreatedDate()
Returns the creation date of the entity.
|
Optional<U> |
getLastModifiedBy()
Returns the user who modified the entity lastly.
|
Optional<T> |
getLastModifiedDate()
Returns the date of the last modification.
|
void |
setCreatedBy(U createdBy)
Sets the user who created this entity.
|
void |
setCreatedDate(T creationDate)
Sets the creation date of the entity.
|
void |
setLastModifiedBy(U lastModifiedBy)
Sets the user who modified the entity lastly.
|
void |
setLastModifiedDate(T lastModifiedDate)
Sets the date of the last modification.
|
getId, isNew
Optional<U> getCreatedBy()
void setCreatedBy(U createdBy)
createdBy
- the creating entity to setOptional<T> getCreatedDate()
void setCreatedDate(T creationDate)
creationDate
- the creation date to setOptional<U> getLastModifiedBy()
void setLastModifiedBy(U lastModifiedBy)
lastModifiedBy
- the last modifying entity to setOptional<T> getLastModifiedDate()
void setLastModifiedDate(T lastModifiedDate)
lastModifiedDate
- the date of the last modification to setCopyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.