Package com.day.cq.audit
Class AuditLogEntry
- java.lang.Object
 - 
- com.day.cq.audit.AuditLogEntry
 
 
- 
- All Implemented Interfaces:
 java.io.Serializable
public class AuditLogEntry extends java.lang.Object implements java.io.SerializableTheAuditEventclass represents the class for an audit event.- See Also:
 - Serialized Form
 
 
- 
- 
Constructor Summary
Constructors Constructor Description AuditLogEntry(java.lang.String category, java.util.Date time, java.lang.String userid, java.lang.String path, java.lang.String type, java.util.Map<java.lang.String,java.lang.Object> properties)Create a new AuditLogEntry. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetCategory()Return the category for this log entry.java.lang.StringgetPath()The path.java.util.Map<java.lang.String,java.lang.Object>getProperties()This is an application specific property map.java.util.DategetTime()Return the date of the audit log entry.java.lang.StringgetType()Returns the type of this audit log entry (this depends on the category)java.lang.StringgetUserId()Returns the user id. 
 - 
 
- 
- 
Constructor Detail
- 
AuditLogEntry
public AuditLogEntry(java.lang.String category, java.util.Date time, java.lang.String userid, java.lang.String path, java.lang.String type, java.util.Map<java.lang.String,java.lang.Object> properties)Create a new AuditLogEntry.- Parameters:
 category- The category of the entry (required)time- The date of the action (required)userid- The userid (required)path- The path of the action (required)type- The action type (required)properties- A map of key value pairs (optional). All objects in the map must be serializable.
 
 - 
 
- 
Method Detail
- 
getTime
public java.util.Date getTime()
Return the date of the audit log entry. 
- 
getUserId
public java.lang.String getUserId()
Returns the user id. 
- 
getPath
public java.lang.String getPath()
The path.- Returns:
 - The path.
 
 
- 
getType
public java.lang.String getType()
Returns the type of this audit log entry (this depends on the category) 
- 
getCategory
public java.lang.String getCategory()
Return the category for this log entry. 
- 
getProperties
public java.util.Map<java.lang.String,java.lang.Object> getProperties()
This is an application specific property map.- Returns:
 - The map or null if not specified.
 
 
 - 
 
 -