public interface AuditReader
Modifier and Type | Method and Description |
---|---|
List<LogEntry> |
getLogEntriesFor(String uuid)
Deprecated.
since 8.4, use
(org.nuxeo.ecm.platform.audit.api.AuditReader.getLogEntriesFor(String,
String)) instead. |
List<LogEntry> |
getLogEntriesFor(String uuid,
Map<String,FilterMapEntry> filterMap,
boolean doDefaultSort)
Returns the logs given a doc uuid, a map of filters and a default sort.
|
List<LogEntry> |
getLogEntriesFor(String uuid,
String repositoryId)
Returns the logs given a doc uuid and a repository id.
|
LogEntry |
getLogEntryByID(long id)
Returns a given log entry given its id.
|
List<?> |
nativeQuery(String query,
int pageNb,
int pageSize)
Returns a batched list of entries.
|
List<?> |
nativeQuery(String query,
Map<String,Object> params,
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.
|
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) |
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) |
List<LogEntry> |
queryLogsByPage(String[] eventIds,
String dateRange,
String category,
String path,
int pageNb,
int pageSize)
Returns the batched list of log entries.
|
List<LogEntry> getLogEntriesFor(String uuid, String repositoryId)
uuid
- the document uuidrepositoryId
- the repository id@Deprecated List<LogEntry> getLogEntriesFor(String uuid)
(org.nuxeo.ecm.platform.audit.api.AuditReader.getLogEntriesFor(String,
String))
instead.uuid
- the document uuidList<LogEntry> getLogEntriesFor(String uuid, Map<String,FilterMapEntry> filterMap, boolean doDefaultSort)
uuid
- the document uuidfilterMap
- the map of filters to applydoDefaultSort
- the default sort to setLogEntry getLogEntryByID(long id)
id
- the log entry identifierList<LogEntry> queryLogs(String[] eventIds, String dateRange)
Note we will use NXQL in the future when the search engine will index history.
eventIds
- the event ids.dateRange
- a preset date range.DateRangeQueryConstants
List<LogEntry> queryLogsByPage(String[] eventIds, String dateRange, String category, String path, int pageNb, int pageSize)
Note we will use NXQL in the future when the search engine will index history.
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
List<LogEntry> queryLogsByPage(String[] eventIds, String dateRange, String[] category, String path, int pageNb, int pageSize)
List<LogEntry> queryLogsByPage(String[] eventIds, Date limit, String category, String path, int pageNb, int pageSize)
Note we will use NXQL in the future when the search engine will index history.
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
List<LogEntry> queryLogsByPage(String[] eventIds, Date limit, String[] category, String path, int pageNb, int pageSize)
List<LogEntry> nativeQueryLogs(String whereClause, int pageNb, int pageSize)
List<?> nativeQuery(String query, int pageNb, int pageSize)
List<?> nativeQuery(String query, Map<String,Object> params, int pageNb, int pageSize)
query
- a JPA query language query if implementation of audit backend is JPA (< 7.3 or
audit.elasticsearch.enabled=false) and JSON if implementation is Elasticsearchparams
- parameters for the querypageNb
- the page number (starts at 1)pageSize
- the number of results per pageCopyright © 2017 Nuxeo. All rights reserved.