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 protectedAuditModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DategetAuditDate()Gets Audit entry Date.StringgetId()Gets Id of the Audit Entry.ObjectgetPayload()Gets Payload of the audit.protected voidsetAuditDate(Date auditDate)Sets audit entry date.protected voidsetId(String id)Sets Id of the Audit Entry.protected voidsetPayload(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.
-
-