Modifier | Constructor and Description |
---|---|
protected |
AuditableEntity()
Creates an uninitialized, and therefore not yet auditable entity.
|
Modifier and Type | Method and Description |
---|---|
Date |
createdAt()
Returns the time at which this entity was created.
|
String |
createdBy()
Returns the identity of the entity or user who
created this entity.
|
Date |
modifiedAt()
Returns the time at which this entity was last modified.
|
String |
modifiedBy()
Returns the identity of the entity or user who
last modified this entity.
|
void |
setCreatedAt(Date when)
Sets the creation date for this entity.
|
void |
setCreatedBy(String who)
Sets the creation identity for this entity.
|
void |
setModifiedAt(Date when)
Sets the time at which this entity was last modified.
|
void |
setModifiedBy(String who)
Sets the identity of the entity or user who
last modified this entity.
|
String |
toDebugString() |
String |
toString() |
protected AuditableEntity()
public Date createdAt()
Audited
public String createdBy()
Audited
public Date modifiedAt()
Audited
modifiedAt
in interface Audited
public String modifiedBy()
Audited
modifiedBy
in interface Audited
public void setModifiedAt(Date when)
Auditable
setModifiedAt
in interface Auditable
when
- the last modification timestamppublic void setModifiedBy(String who)
Auditable
setModifiedBy
in interface Auditable
who
- the identity of the modifierpublic void setCreatedAt(Date when)
when
- the time at which this entity was createdpublic void setCreatedBy(String who)
who
- the entity or user who created this entitypublic String toDebugString()
Copyright © 2015. All Rights Reserved.