Package com.atlassian.crowd.embedded.spi
Interface DirectorySynchronisationTokenDao
public interface DirectorySynchronisationTokenDao
-
Method Summary
Modifier and TypeMethodDescriptionvoidclearSynchronisationTokenForDirectory(long directoryId) Clears the synchronisation token for the given directorygetLastSynchronisationTokenForDirectory(long directoryId) Returns the last stored synchronisation token for the directoryvoidstoreSynchronisationTokenForDirectory(long directoryId, String synchronisationToken) Store a new synchronisation token for the given directory.
-
Method Details
-
getLastSynchronisationTokenForDirectory
Returns the last stored synchronisation token for the directory- Parameters:
directoryId- the id of the directory- Returns:
- the last stored synchronisation token
-
storeSynchronisationTokenForDirectory
void storeSynchronisationTokenForDirectory(long directoryId, String synchronisationToken) throws DirectoryNotFoundException Store a new synchronisation token for the given directory. This will overwrite the old token.- Parameters:
directoryId- the id of the directorysynchronisationToken- the new token to store- Throws:
DirectoryNotFoundException
-
clearSynchronisationTokenForDirectory
void clearSynchronisationTokenForDirectory(long directoryId) Clears the synchronisation token for the given directory- Parameters:
directoryId- directory id
-