public class DirectoryAuditStorage extends Object implements AuditStorage
Modifier and Type | Field and Description |
---|---|
protected CursorService<Iterator<String>,String,String> |
cursorService |
static String |
DIRECTORY_NAME |
static String |
ID_COLUMN |
static String |
JSON_COLUMN |
static String |
NAME |
Constructor and Description |
---|
DirectoryAuditStorage() |
Modifier and Type | Method and Description |
---|---|
void |
append(List<String> jsonEntries)
Insert entries as Json in the Audit directory.
|
protected Directory |
getAuditDirectory() |
protected List<String> |
queryLogs(QueryBuilder queryBuilder)
Query log entries in the Audit directory, given an audit query builder.
|
ScrollResult<String> |
scroll(QueryBuilder queryBuilder,
int batchSize,
int keepAlive)
Scroll log entries in the Audit directory, given an audit query builder.
|
ScrollResult<String> |
scroll(String scrollId)
Scroll log entries in the Audit directory, given a scroll Id.
|
public static final String NAME
public static final String DIRECTORY_NAME
public static final String ID_COLUMN
public static final String JSON_COLUMN
protected CursorService<Iterator<String>,String,String> cursorService
public DirectoryAuditStorage()
protected Directory getAuditDirectory()
public void append(List<String> jsonEntries)
append
in interface AuditStorage
public ScrollResult<String> scroll(String scrollId)
scroll
in interface AuditStorage
public ScrollResult<String> scroll(QueryBuilder queryBuilder, int batchSize, int keepAlive)
scroll
in interface AuditStorage
protected List<String> queryLogs(QueryBuilder queryBuilder)
Session.query(Map, Set, Map, boolean, int, int)
.Copyright © 2019 Nuxeo. All rights reserved.