public interface DirectorySynchronisationInformationStore
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears directory synchronisation information of all directories.
|
void |
clear(long directoryId)
Clears directory synchronisation information for the given directory
|
void |
clearEventTokenForDirectory(long directoryId)
Clears event tokens for the given directory
|
DirectorySynchronisationRoundInformation |
getActive(long directoryId)
Provides information about the status of the active synchronisation for the directory
|
Optional<DirectorySynchronisationRoundInformation> |
getLast(long directoryId)
Provides information about the last completed (either succeeded or failed) synchronisation
|
void |
syncFinished(long directoryId,
long timestamp,
SynchronisationStatusKey statusKey,
List<Serializable> parameters,
String syncStatusToken)
Finishes synchronisation status, marking it as last status information and clearing active synchronisation status
|
void |
syncStarted(long directoryId,
long timestamp)
Starts the synchronisation, creating new directory synchronisation information
|
void |
syncStatus(long directoryId,
String statusKey,
List<Serializable> parameters)
Updates active directory synchronisation status
|
void |
syncStatus(long directoryId,
SynchronisationStatusKey statusKey,
List<Serializable> parameters)
Updates active directory synchronisation status
|
@Nullable DirectorySynchronisationRoundInformation getActive(long directoryId)
directoryId - directory idOptional<DirectorySynchronisationRoundInformation> getLast(long directoryId)
directoryId - directory idvoid clear(long directoryId)
directoryId - directory idvoid clear()
void syncStatus(long directoryId,
String statusKey,
List<Serializable> parameters)
directoryId - directory idstatusKey - new status i18n keyparameters - parameters for the statusKeyvoid syncStatus(long directoryId,
SynchronisationStatusKey statusKey,
List<Serializable> parameters)
directoryId - directory idstatusKey - new status i18n keyparameters - paramaters for the statusKeyvoid syncStarted(long directoryId,
long timestamp)
directoryId - directory idtimestamp - synchronisation startvoid syncFinished(long directoryId,
long timestamp,
SynchronisationStatusKey statusKey,
List<Serializable> parameters,
@Nullable
String syncStatusToken)
directoryId - directory idtimestamp - synchronisation endstatusKey - ending status (should indicate failure or success)parameters - parameters for the statusKeyvoid clearEventTokenForDirectory(long directoryId)
directoryId - directory idCopyright © 2017 Atlassian. All rights reserved.