Package org.nuxeo.audit.storage.impl
Class DirectoryAuditStorage
- java.lang.Object
-
- org.nuxeo.audit.storage.impl.DirectoryAuditStorage
-
- All Implemented Interfaces:
AuditStorage
public class DirectoryAuditStorage extends Object implements AuditStorage
Audit storage implementation for an Audit directory.- Since:
- 9.10
-
-
Field Summary
Fields Modifier and Type Field Description protected CursorService<Iterator<String>,String,String>
cursorService
static String
DIRECTORY_NAME
static String
ID_COLUMN
static String
JSON_COLUMN
static String
NAME
-
Constructor Summary
Constructors Constructor Description DirectoryAuditStorage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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(String scrollId)
Scroll log entries in the Audit directory, given a scroll Id.ScrollResult<String>
scroll(QueryBuilder queryBuilder, int batchSize, int keepAlive)
Scroll log entries in the Audit directory, given an audit query builder.
-
-
-
Field Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
DIRECTORY_NAME
public static final String DIRECTORY_NAME
- See Also:
- Constant Field Values
-
ID_COLUMN
public static final String ID_COLUMN
- See Also:
- Constant Field Values
-
JSON_COLUMN
public static final String JSON_COLUMN
- See Also:
- Constant Field Values
-
cursorService
protected CursorService<Iterator<String>,String,String> cursorService
-
-
Method Detail
-
getAuditDirectory
protected Directory getAuditDirectory()
-
append
public void append(List<String> jsonEntries)
Insert entries as Json in the Audit directory.- Specified by:
append
in interfaceAuditStorage
-
scroll
public ScrollResult<String> scroll(String scrollId)
Scroll log entries in the Audit directory, given a scroll Id.- Specified by:
scroll
in interfaceAuditStorage
-
scroll
public ScrollResult<String> scroll(QueryBuilder queryBuilder, int batchSize, int keepAlive)
Scroll log entries in the Audit directory, given an audit query builder.- Specified by:
scroll
in interfaceAuditStorage
-
queryLogs
protected List<String> queryLogs(QueryBuilder queryBuilder)
Query log entries in the Audit directory, given an audit query builder. Does not support literals other than StringLiteral: seeSession.query(Map, Set, Map, boolean, int, int)
.
-
-