public class InDatabaseDirectorySynchronisationTokenStore extends Object implements DirectorySynchronisationTokenStore
DirectorySynchronisationTokenStore that uses the database for token
storage| Constructor and Description |
|---|
InDatabaseDirectorySynchronisationTokenStore(DirectorySynchronisationTokenDao directorySynchronisationTokenDao) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearSynchronisationTokenForDirectory(long directoryId)
Clears the synchronisation token for the given directory
|
String |
getLastSynchronisationTokenForDirectory(long directoryId)
Returns the last stored synchronisation token for the directory
|
void |
storeSynchronisationTokenForDirectory(long directoryId,
String syncStatus)
Store a new synchronisation token for the given directory.
|
public InDatabaseDirectorySynchronisationTokenStore(DirectorySynchronisationTokenDao directorySynchronisationTokenDao)
@Nullable public String getLastSynchronisationTokenForDirectory(long directoryId)
DirectorySynchronisationTokenStoregetLastSynchronisationTokenForDirectory in interface DirectorySynchronisationTokenStoredirectoryId - the id of the directorypublic void storeSynchronisationTokenForDirectory(long directoryId,
String syncStatus)
DirectorySynchronisationTokenStorestoreSynchronisationTokenForDirectory in interface DirectorySynchronisationTokenStoredirectoryId - the id of the directorypublic void clearSynchronisationTokenForDirectory(long directoryId)
DirectorySynchronisationTokenStoreclearSynchronisationTokenForDirectory in interface DirectorySynchronisationTokenStoredirectoryId - directory idCopyright © 2023 Atlassian. All rights reserved.