Package org.craftercms.commons.audit
Class AuditModel
java.lang.Object
org.craftercms.commons.audit.AuditModel
Defines the minimum attributes needed in a generic audit entry.
- Author:
- Carlos Ortiz .
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets Audit entry Date.getId()Gets Id of the Audit Entry.Gets Payload of the audit.protected voidsetAuditDate(Date auditDate) Sets audit entry date.protected voidSets Id of the Audit Entry.protected voidsetPayload(Object payload) Sets payload of the audit.
-
Field Details
-
auditDate
Date when the audit was entry. -
id
Id of the audit entry. -
payload
Payload of the audit.
-
-
Constructor Details
-
AuditModel
protected AuditModel()
-
-
Method Details
-
getAuditDate
Gets Audit entry Date.- Returns:
- Audit entry date.
-
setAuditDate
Sets audit entry date.- Parameters:
auditDate- Audit Date.
-
getId
Gets Id of the Audit Entry.- Returns:
- Id of the Audit Entry.
-
setId
Sets Id of the Audit Entry.- Parameters:
id- Id of the Audit Entry.
-
getPayload
Gets Payload of the audit.- Returns:
- Payload of the audit.
-
setPayload
Sets payload of the audit.- Parameters:
payload- payload of the audit.
-