public interface SynchronisationStatusManager
| Modifier and Type | Method and Description |
|---|---|
void |
clearSynchronisationTokenForDirectory(long directoryId)
Clears the synchronisation token for the given directory
|
DirectorySynchronisationInformation |
getDirectorySynchronisationInformation(Directory directory)
Deprecated.
since 2.12.0, use
getDirectorySynchronisationInformation(long) instead |
DirectorySynchronisationInformation |
getDirectorySynchronisationInformation(long directoryId)
Returns directory synchronisation information.
|
String |
getLastSynchronisationTokenForDirectory(long directoryId)
Returns the last stored synchronisation token for the directory
|
void |
removeStatusesForDirectory(long directoryId)
Removes statuses for the given directory
|
void |
storeSynchronisationTokenForDirectory(long directoryId,
String synchronisationToken)
Store a new synchronisation token for the given directory.
|
default void |
syncFailure(long directoryId,
SynchronisationMode mode,
Throwable throwable)
Notify about a failure that occurs during synchronisation.
|
void |
syncFinished(long directoryId)
Deprecated.
since 2.12.0, use
SynchronisationStatusManager#syncFinished(long, SynchronisationStatusKey, List, String) instead |
void |
syncFinished(long directoryId,
SynchronisationStatusKey statusKey,
List<Serializable> parameters)
Notify that directory synchronisation has finished.
|
void |
syncStarted(Directory directory)
Notify that directory synchronisation has started.
|
void |
syncStatus(long directoryId,
String key,
Serializable... parameters)
Deprecated.
since 2.12.0, use
syncStatus(long, SynchronisationStatusKey, List) instead |
void |
syncStatus(long directoryId,
SynchronisationStatusKey statusKey,
List<Serializable> parameters)
Notify that directory synchronisation status has changed.
|
void syncStarted(Directory directory)
directory - directory@Deprecated void syncStatus(long directoryId, String key, Serializable... parameters)
syncStatus(long, SynchronisationStatusKey, List) insteaddirectoryId - directory idkey - synchronisation status message keyparameters - synchronisation status message parametersIllegalStateException - if the directory is not currently synchronisingvoid syncStatus(long directoryId,
SynchronisationStatusKey statusKey,
List<Serializable> parameters)
directoryId - directory idstatusKey - synchronisation status message keyparameters - synchronisation status message parametersdefault void syncFailure(long directoryId,
SynchronisationMode mode,
Throwable throwable)
directoryId - directory idmode - synchronisation modethrowable - throwable that carries information about the failure@Deprecated void syncFinished(long directoryId)
SynchronisationStatusManager#syncFinished(long, SynchronisationStatusKey, List, String) insteaddirectoryId - directory idvoid syncFinished(long directoryId,
SynchronisationStatusKey statusKey,
List<Serializable> parameters)
directoryId - directory idstatusKey - synchronisation statusparameters - parameters for statusKeyvoid removeStatusesForDirectory(long directoryId)
directoryId - directory id@Deprecated DirectorySynchronisationInformation getDirectorySynchronisationInformation(Directory directory)
getDirectorySynchronisationInformation(long) insteaddirectory - directory to retrieve information fromDirectorySynchronisationInformation getDirectorySynchronisationInformation(long directoryId) throws DirectoryNotFoundException
directoryId - directory id to retrieve information fromDirectoryNotFoundException@Nullable String getLastSynchronisationTokenForDirectory(long directoryId)
directoryId - the id of the directoryvoid storeSynchronisationTokenForDirectory(long directoryId,
String synchronisationToken)
directoryId - the id of the directorysynchronisationToken - the new token to storevoid clearSynchronisationTokenForDirectory(long directoryId)
directoryId - directory idCopyright © 2023 Atlassian. All rights reserved.