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 StringgetCollectionSyncRootFilteringClause(Set<String> collectionSyncRootMemberIds, Map<String, Object> params) protected Stringprotected StringgetJPARangeClause(long lowerBound, long upperBound, Map<String, Object> params) Using event log id to ensure consistency, see https://jira.nuxeo.com/browse/NXP-14826.longReturns 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, handleParametersMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
getUpperBoundin interfaceFileSystemChangeFinder- Overrides:
getUpperBoundin classAuditChangeFinder
-
queryAuditEntries
protected List<LogEntry> queryAuditEntries(CoreSession session, SynchronizationRoots activeRoots, Set<String> collectionSyncRootMemberIds, long lowerBound, long upperBound, int limit) - Overrides:
queryAuditEntriesin classAuditChangeFinder
-
getCurrentRootFilteringClause
-
getCollectionSyncRootFilteringClause
-
getJPARangeClause
Using event log id to ensure consistency, see https://jira.nuxeo.com/browse/NXP-14826.
-