public class ESAuditChangeFinder extends AuditChangeFinder
The structure of the query executed by the AuditChangeFinder
is:
from LogEntry log where log.repositoryId = :repositoryId + AND if ActiveRoots (activeRoots) NOT empty from LogEntry log where log.repositoryId = :repositoryId and ( LIST_DOC_EVENTS_IDS_QUERY and ( ROOT_PATHS or COLECTIONS_PATHS) or (log.category = 'NuxeoDrive' and log.eventId != 'rootUnregistered') ) if ActiveRoots EMPTY: from LogEntry log where log.repositoryId = :repositoryId and ((log.category = 'NuxeoDrive' and log.eventId != 'rootUnregistered')) + AND (log.id > :lowerBound and log.id <= :upperBound) + order by log.repositoryId asc, log.eventDate desc
Modifier and Type | Field and Description |
---|---|
static org.apache.commons.logging.Log |
log |
Constructor and Description |
---|
ESAuditChangeFinder() |
Modifier and Type | Method and Description |
---|---|
long |
getUpperBound()
Return 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.
|
getCurrentDate, getFileSystemChanges, getFileSystemChangesIntegerBounds, handleParameters
public long getUpperBound()
AuditChangeFinder
getUpperBound
in interface FileSystemChangeFinder
getUpperBound
in class AuditChangeFinder
Copyright © 2015 Nuxeo SA. All rights reserved.