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.
|
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.
|
Collection<DirectorySynchronisationStatus> |
getStalledSynchronizations()
Attempts to find synchronizations that have been marked as in-progress, but don't seem to be running anymore.
|
default void |
syncFailure(long directoryId,
SynchronisationMode syncMode,
String failureReason)
Updates active directory synchronisation status with a failure reason.
|
void |
syncFinished(long directoryId,
long timestamp,
SynchronisationStatusKey statusKey,
List<Serializable> parameters)
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 startdefault void syncFailure(long directoryId,
SynchronisationMode syncMode,
String failureReason)
directoryId - directory idsyncMode - synchronisation modefailureReason - failure reasonvoid syncFinished(long directoryId,
long timestamp,
SynchronisationStatusKey statusKey,
List<Serializable> parameters)
directoryId - directory idtimestamp - synchronisation endstatusKey - ending status (should indicate failure or success)parameters - parameters for the statusKeyCollection<DirectorySynchronisationStatus> getStalledSynchronizations()
Copyright © 2023 Atlassian. All rights reserved.