public abstract class AbstractAuditBackend extends Object implements AuditBackend
AuditBackend
implementationsConstructor and Description |
---|
AbstractAuditBackend() |
Modifier and Type | Method and Description |
---|---|
void |
activate(NXAuditEventsService component) |
Set<String> |
getAuditableEventNames()
Returns the list of auditable event names.
|
List<LogEntry> |
getLogEntriesFor(String uuid)
Returns the logs given a doc uuid.
|
void |
logEvent(Event event)
Logs an Event.
|
void |
logEvents(EventBundle eventBundle)
Logs a bundle of events
|
List<?> |
nativeQuery(String query,
int pageNb,
int pageSize)
Returns a batched list of entries.
|
List<LogEntry> |
nativeQueryLogs(String whereClause,
int pageNb,
int pageSize)
Returns a batched list of log entries.
|
ExtendedInfo |
newExtendedInfo(Serializable value)
Create a new ExtendedInfo instance
|
LogEntry |
newLogEntry()
Create a new LogEntry instance.
|
List<LogEntry> |
queryLogs(String[] eventIds,
String dateRange)
Returns the list of log entries.
|
List<LogEntry> |
queryLogsByPage(String[] eventIds,
Date limit,
String category,
String path,
int pageNb,
int pageSize)
Returns the batched list of log entries.
|
List<LogEntry> |
queryLogsByPage(String[] eventIds,
String dateRange,
String category,
String path,
int pageNb,
int pageSize)
Returns the batched list of log entries.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
deactivate
getLogEntriesFor, getLogEntryByID, nativeQuery, queryLogsByPage, queryLogsByPage
addLogEntries
getEventsCount, syncLogCreationEntries
public void activate(NXAuditEventsService component)
activate
in interface AuditBackend
public Set<String> getAuditableEventNames()
AuditLogger
getAuditableEventNames
in interface AuditLogger
public List<LogEntry> queryLogsByPage(String[] eventIds, String dateRange, String category, String path, int pageNb, int pageSize)
AuditReader
Note we will use NXQL in the future when the search engine will index history.
queryLogsByPage
in interface AuditReader
eventIds
- the event ids.dateRange
- a preset date range.category
- add filter on events categorypath
- add filter on document pathpageNb
- page number (ignore if <=1)pageSize
- number of results per pageDateRangeQueryConstants
public List<LogEntry> queryLogsByPage(String[] eventIds, Date limit, String category, String path, int pageNb, int pageSize)
AuditReader
Note we will use NXQL in the future when the search engine will index history.
queryLogsByPage
in interface AuditReader
eventIds
- the event ids.limit
- filter events by date from limit to nowcategory
- add filter on events categorypath
- add filter on document pathpageNb
- page number (ignore if <=1)pageSize
- number of results per pageDateRangeQueryConstants
public LogEntry newLogEntry()
AuditLogger
newLogEntry
in interface AuditLogger
public ExtendedInfo newExtendedInfo(Serializable value)
AuditLogger
newExtendedInfo
in interface AuditLogger
public void logEvents(EventBundle eventBundle)
AuditLogger
logEvents
in interface AuditLogger
public void logEvent(Event event)
AuditLogger
logEvent
in interface AuditLogger
public List<LogEntry> getLogEntriesFor(String uuid)
AuditReader
getLogEntriesFor
in interface AuditReader
uuid
- the document uuidpublic List<?> nativeQuery(String query, int pageNb, int pageSize)
AuditReader
nativeQuery
in interface AuditReader
public List<LogEntry> queryLogs(String[] eventIds, String dateRange)
AuditReader
Note we will use NXQL in the future when the search engine will index history.
queryLogs
in interface AuditReader
eventIds
- the event ids.dateRange
- a preset date range.DateRangeQueryConstants
public List<LogEntry> nativeQueryLogs(String whereClause, int pageNb, int pageSize)
AuditReader
nativeQueryLogs
in interface AuditReader
Copyright © 2015 Nuxeo SA. All rights reserved.