public interface FileSystemChangeFinder extends Serializable
Modifier and Type | Method and Description |
---|---|
long |
getCurrentDate()
Read the current time code to query for changes.
|
List<FileSystemItemChange> |
getFileSystemChanges(CoreSession session,
Set<IdRef> lastActiveRootRefs,
SynchronizationRoots activeRoots,
long lastSuccessfulSyncDate,
long syncDate,
int limit)
Gets the changes in the repository against which the given session is
bound for the given synchronization root paths, since the given last
successful synchronization date and without exceeding the given limit.
|
List<FileSystemItemChange> getFileSystemChanges(CoreSession session, Set<IdRef> lastActiveRootRefs, SynchronizationRoots activeRoots, long lastSuccessfulSyncDate, long syncDate, int limit) throws ClientException, TooManyChangesException
session
- the session bound to a specific repositorylastActiveRootRefs
- docrefs of the roots as reported by the last
successful synchronization (can be empty or null)activeRoots
- the currently active synchronization rootslastSuccessfulSyncDate
- the last successful synchronization date as
measured on the server for this user device.syncDate
- the current synchronization date (upper bound on the date
of the changes to return). This date is typically obtained by
calling getMostRecentChangeDate
limit
- the maximum number of changes to fetchTooManyChangesException
- if the number of changes found has
exceeded the limitClientException
- if the access to the repository fails for another
reason.long getCurrentDate()
Copyright © 2013 Nuxeo SA. All Rights Reserved.