Class InDatabaseDirectorySynchronisationTokenStore
java.lang.Object
com.atlassian.crowd.manager.directory.InDatabaseDirectorySynchronisationTokenStore
- All Implemented Interfaces:
DirectorySynchronisationTokenStore
public class InDatabaseDirectorySynchronisationTokenStore
extends Object
implements DirectorySynchronisationTokenStore
A persistent implementation of the
DirectorySynchronisationTokenStore
that uses the database for token
storage-
Constructor Summary
ConstructorDescriptionInDatabaseDirectorySynchronisationTokenStore
(DirectorySynchronisationTokenDao directorySynchronisationTokenDao) -
Method Summary
Modifier and TypeMethodDescriptionvoid
clearSynchronisationTokenForDirectory
(long directoryId) Clears the synchronisation token for the given directorygetLastSynchronisationTokenForDirectory
(long directoryId) Returns the last stored synchronisation token for the directoryvoid
storeSynchronisationTokenForDirectory
(long directoryId, String syncStatus) Store a new synchronisation token for the given directory.
-
Constructor Details
-
InDatabaseDirectorySynchronisationTokenStore
public InDatabaseDirectorySynchronisationTokenStore(DirectorySynchronisationTokenDao directorySynchronisationTokenDao)
-
-
Method Details
-
getLastSynchronisationTokenForDirectory
Description copied from interface:DirectorySynchronisationTokenStore
Returns the last stored synchronisation token for the directory- Specified by:
getLastSynchronisationTokenForDirectory
in interfaceDirectorySynchronisationTokenStore
- Parameters:
directoryId
- the id of the directory- Returns:
- the last stored synchronisation token
-
storeSynchronisationTokenForDirectory
Description copied from interface:DirectorySynchronisationTokenStore
Store a new synchronisation token for the given directory. This will overwrite the old token.- Specified by:
storeSynchronisationTokenForDirectory
in interfaceDirectorySynchronisationTokenStore
- Parameters:
directoryId
- the id of the directory
-
clearSynchronisationTokenForDirectory
public void clearSynchronisationTokenForDirectory(long directoryId) Description copied from interface:DirectorySynchronisationTokenStore
Clears the synchronisation token for the given directory- Specified by:
clearSynchronisationTokenForDirectory
in interfaceDirectorySynchronisationTokenStore
- Parameters:
directoryId
- directory id
-