Package org.craftercms.commons.audit
Class AuditModel
- java.lang.Object
-
- org.craftercms.commons.audit.AuditModel
-
public abstract class AuditModel extends Object
Defines the minimum attributes needed in a generic audit entry.- Author:
- Carlos Ortiz .
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AuditModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Date
getAuditDate()
Gets Audit entry Date.String
getId()
Gets Id of the Audit Entry.Object
getPayload()
Gets Payload of the audit.protected void
setAuditDate(Date auditDate)
Sets audit entry date.protected void
setId(String id)
Sets Id of the Audit Entry.protected void
setPayload(Object payload)
Sets payload of the audit.
-
-
-
Method Detail
-
getAuditDate
public Date getAuditDate()
Gets Audit entry Date.- Returns:
- Audit entry date.
-
setAuditDate
protected void setAuditDate(Date auditDate)
Sets audit entry date.- Parameters:
auditDate
- Audit Date.
-
getId
public String getId()
Gets Id of the Audit Entry.- Returns:
- Id of the Audit Entry.
-
setId
protected void setId(String id)
Sets Id of the Audit Entry.- Parameters:
id
- Id of the Audit Entry.
-
getPayload
public Object getPayload()
Gets Payload of the audit.- Returns:
- Payload of the audit.
-
setPayload
protected void setPayload(Object payload)
Sets payload of the audit.- Parameters:
payload
- payload of the audit.
-
-