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> |
getFileSystemChangesIntegerBounds(CoreSession session,
Set<IdRef> lastActiveRootRefs,
SynchronizationRoots activeRoots,
Set<String> collectionSyncRootMemberIds,
long lowerBound,
long upperBound,
int limit)
Gets the changes in the repository against which the given session is bound for the given synchronization root
paths, between the given lower and upper integer bounds and without exceeding the given limit.
|
long |
getUpperBound()
Return the upper bound of the range clause in the change query.
|
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 getCurrentDate()
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.List<FileSystemItemChange> getFileSystemChangesIntegerBounds(CoreSession session, Set<IdRef> lastActiveRootRefs, SynchronizationRoots activeRoots, Set<String> collectionSyncRootMemberIds, long lowerBound, long upperBound, 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 rootscollectionSyncRootMemberIds
- the collection sync root member idslowerBound
- the lower integer bound of the range clause in the change queryupperBound
- the upper integer bound of the range clause in the change query. This id is typically obtained
by calling #getUpperBound())
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()
long getUpperBound()
Copyright © 2015 Nuxeo SA. All rights reserved.