public interface AuditLog
AuditLog
defines an interface to retrieve audit event
information from the respective audit log.
The audit log is path based: the content path in the repository is
used as a unique identifier to group all entries.
The audit framework is still subject to change and will be improved.
Adding entries to the audit log can be done by sending a job event
with the job topic AuditLogEvent.JOB_TOPIC
and the AuditLogEvent
stored
in the property AuditLogEvent.AUDIT_EVENT_PROPERTY
or by directly calling
add(AuditLogEntry)
or add(List)
.
Modifier and Type | Method and Description |
---|---|
void |
add(AuditLogEntry entry)
Add a new audit log entry.
|
void |
add(List<AuditLogEntry> entries)
Add new audit log entries
|
String[] |
getCategories()
Return an array containing all audit log categories (that have entries)
|
AuditLogEntry |
getLatestEvent(String category,
String path)
Returns the latest event for the path and category.
|
AuditLogEntry |
getLatestEvent(String category,
String path,
String type)
Returns the latest event for the path, type and category.
|
AuditLogEntry[] |
getLatestEvents(String[] categories,
String path,
int max)
Returns the latest events for the path and category.
|
AuditLogEntry[] |
getLatestEvents(String category,
String path,
int max)
Returns the latest events for the path and category.
|
AuditLogEntry[] |
getLatestEventsFromTree(String[] categories,
String pathPrefix,
int max)
Returns the latest events for all paths which will start
with the
prefix . |
void |
move(String srcPath,
String destPath)
Move audit log entries from one place to another.
|
AuditLogEntry getLatestEvent(String category, String path)
category
- the event categorypath
- the path of the eventnull
.
throws IllegalArgumentException
If category or path are null.AuditLogEntry getLatestEvent(String category, String path, String type)
category
- the event categorypath
- the path of the eventtype
- the type of the eventnull
.
throws IllegalArgumentException
If category, type or path are null.AuditLogEntry[] getLatestEvents(String category, String path, int max)
category
- the event categorypath
- the path of the eventsmax
- the maximum number of events to return or -1 for all.IllegalArgumentException
If category or path are null.AuditLogEntry[] getLatestEvents(String[] categories, String path, int max)
categories
- the event categoriespath
- the path of the eventsmax
- the maximum number of events to return or -1 for all.IllegalArgumentException
If category or path are null.String[] getCategories()
null
AuditLogEntry[] getLatestEventsFromTree(String[] categories, String pathPrefix, int max)
prefix
.categories
- the event categoriespathPrefix
- the pattern to matchmax
- the maximum number of events per path to return or -1 for all.IllegalArgumentException
If category or pathPrefix are null.void add(AuditLogEntry entry)
entry
- The audit log entry.void add(List<AuditLogEntry> entries)
entries
- The audit log entries."Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"