Package org.nuxeo.drive.service.impl
Class SQLAuditChangeFinder
java.lang.Object
org.nuxeo.drive.service.impl.AuditChangeFinder
org.nuxeo.drive.service.impl.SQLAuditChangeFinder
- All Implemented Interfaces:
FileSystemChangeFinder
Implementation of
FileSystemChangeFinder
using the AuditBackend
.-
Field Summary
Fields inherited from class org.nuxeo.drive.service.impl.AuditChangeFinder
parameters
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String
getCollectionSyncRootFilteringClause
(Set<String> collectionSyncRootMemberIds, Map<String, Object> params) protected String
protected String
getJPARangeClause
(long lowerBound, long upperBound, Map<String, Object> params) Using event log id to ensure consistency, see https://jira.nuxeo.com/browse/NXP-14826.long
Returns the last available log id in the audit log table (primary key) to be used as the upper bound of the event log id range clause in the change query.queryAuditEntries
(CoreSession session, SynchronizationRoots activeRoots, Set<String> collectionSyncRootMemberIds, long lowerBound, long upperBound, int limit) Methods inherited from class org.nuxeo.drive.service.impl.AuditChangeFinder
getFileSystemChanges, getFileSystemItemChange, handleParameters
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.nuxeo.drive.service.FileSystemChangeFinder
getUpperBound
-
Constructor Details
-
SQLAuditChangeFinder
public SQLAuditChangeFinder()
-
-
Method Details
-
getUpperBound
public long getUpperBound()Returns the last available log id in the audit log table (primary key) to be used as the upper bound of the event log id range clause in the change query.- Specified by:
getUpperBound
in interfaceFileSystemChangeFinder
- Overrides:
getUpperBound
in classAuditChangeFinder
-
queryAuditEntries
protected List<LogEntry> queryAuditEntries(CoreSession session, SynchronizationRoots activeRoots, Set<String> collectionSyncRootMemberIds, long lowerBound, long upperBound, int limit) - Overrides:
queryAuditEntries
in classAuditChangeFinder
-
getCurrentRootFilteringClause
-
getCollectionSyncRootFilteringClause
-
getJPARangeClause
Using event log id to ensure consistency, see https://jira.nuxeo.com/browse/NXP-14826.
-