Class DirectorySynchronisationInformationStoreImpl
java.lang.Object
com.atlassian.crowd.manager.directory.DirectorySynchronisationInformationStoreImpl
- All Implemented Interfaces:
DirectorySynchronisationInformationStore
@Deprecated
public class DirectorySynchronisationInformationStoreImpl
extends Object
implements DirectorySynchronisationInformationStore
Deprecated.
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.DirectorySynchronisationInformationStoreImpl
(ConcurrentMap<Long, DirectorySynchronisationInformation> syncStatus) Deprecated.Construct aDirectorySynchronisationInformationStoreImpl
which is backed by a concurrent map. -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Deprecated.Clears directory synchronisation information of all directories.void
clear
(long directoryId) Deprecated.Clears directory synchronisation information for the given directory.get
(long directoryId) Deprecated.getActive
(long directoryId) Deprecated.Provides information about the status of the active synchronisation for the directory.getLast
(long directoryId) Deprecated.Provides information about the last completed (either succeeded or failed) synchronisation.Deprecated.Attempts to find synchronizations that have been marked as in-progress, but don't seem to be running anymore.void
syncFailure
(long directoryId, SynchronisationMode syncMode, String failureReason) Deprecated.Updates active directory synchronisation status with a failure reason.void
syncFinished
(long directoryId, long timestamp, SynchronisationStatusKey statusKey, List<Serializable> parameters) Deprecated.Finishes synchronisation status, marking it as last status information and clearing active synchronisation status.void
syncStarted
(long directoryId, long timestamp) Deprecated.Starts the synchronisation, creating new directory synchronisation information.void
syncStatus
(long directoryId, SynchronisationStatusKey statusKey, List<Serializable> parameters) Deprecated.Updates active directory synchronisation status.void
syncStatus
(long directoryId, String statusKey, List<Serializable> parameters) Deprecated.Updates active directory synchronisation status
-
Constructor Details
-
DirectorySynchronisationInformationStoreImpl
public DirectorySynchronisationInformationStoreImpl()Deprecated. -
DirectorySynchronisationInformationStoreImpl
public DirectorySynchronisationInformationStoreImpl(ConcurrentMap<Long, DirectorySynchronisationInformation> syncStatus) Deprecated.Construct aDirectorySynchronisationInformationStoreImpl
which is backed by a concurrent map.This constructor can be used to achieve cluster safety in cluster-capable applications by providing a cluster-aware implementation
- Since:
- 2.8
-
-
Method Details
-
getActive
Deprecated.Description copied from interface:DirectorySynchronisationInformationStore
Provides information about the status of the active synchronisation for the directory.- Specified by:
getActive
in interfaceDirectorySynchronisationInformationStore
- Parameters:
directoryId
- directory id- Returns:
- information about the active synchronisation if present
-
getLast
Deprecated.Description copied from interface:DirectorySynchronisationInformationStore
Provides information about the last completed (either succeeded or failed) synchronisation.- Specified by:
getLast
in interfaceDirectorySynchronisationInformationStore
- Parameters:
directoryId
- directory id- Returns:
- an optional either containing information about the last synchronisation if present
-
clear
public void clear(long directoryId) Deprecated.Description copied from interface:DirectorySynchronisationInformationStore
Clears directory synchronisation information for the given directory.- Specified by:
clear
in interfaceDirectorySynchronisationInformationStore
- Parameters:
directoryId
- directory id
-
clear
public void clear()Deprecated.Description copied from interface:DirectorySynchronisationInformationStore
Clears directory synchronisation information of all directories.- Specified by:
clear
in interfaceDirectorySynchronisationInformationStore
-
syncStatus
Deprecated.Description copied from interface:DirectorySynchronisationInformationStore
Updates active directory synchronisation status- Specified by:
syncStatus
in interfaceDirectorySynchronisationInformationStore
- Parameters:
directoryId
- directory idstatusKey
- new status i18n keyparameters
- parameters for the statusKey
-
syncStatus
public void syncStatus(long directoryId, SynchronisationStatusKey statusKey, List<Serializable> parameters) Deprecated.Description copied from interface:DirectorySynchronisationInformationStore
Updates active directory synchronisation status.- Specified by:
syncStatus
in interfaceDirectorySynchronisationInformationStore
- Parameters:
directoryId
- directory idstatusKey
- new status i18n keyparameters
- paramaters for the statusKey
-
syncStarted
public void syncStarted(long directoryId, long timestamp) Deprecated.Description copied from interface:DirectorySynchronisationInformationStore
Starts the synchronisation, creating new directory synchronisation information.- Specified by:
syncStarted
in interfaceDirectorySynchronisationInformationStore
- Parameters:
directoryId
- directory idtimestamp
- synchronisation start
-
syncFinished
public void syncFinished(long directoryId, long timestamp, SynchronisationStatusKey statusKey, List<Serializable> parameters) Deprecated.Description copied from interface:DirectorySynchronisationInformationStore
Finishes synchronisation status, marking it as last status information and clearing active synchronisation status.- Specified by:
syncFinished
in interfaceDirectorySynchronisationInformationStore
- Parameters:
directoryId
- directory idtimestamp
- synchronisation endstatusKey
- ending status (should indicate failure or success)parameters
- parameters for the statusKey
-
syncFailure
Deprecated.Description copied from interface:DirectorySynchronisationInformationStore
Updates active directory synchronisation status with a failure reason.- Specified by:
syncFailure
in interfaceDirectorySynchronisationInformationStore
- Parameters:
directoryId
- directory idsyncMode
- synchronisation modefailureReason
- failure reason
-
getStalledSynchronizations
Deprecated.Description copied from interface:DirectorySynchronisationInformationStore
Attempts to find synchronizations that have been marked as in-progress, but don't seem to be running anymore. The exact method of finding those depends on the implementation and configuration.- Specified by:
getStalledSynchronizations
in interfaceDirectorySynchronisationInformationStore
- Returns:
- a list of synchronizations that are potentially stalled, or an empty list if stalled synchronisations can't be determined.
-
get
Deprecated.
-