public class InDatabaseDirectorySynchronisationTokenStore extends Object implements DirectorySynchronisationTokenStore
DirectorySynchronisationTokenStore
that uses the database for token
storageConstructor 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)
DirectorySynchronisationTokenStore
getLastSynchronisationTokenForDirectory
in interface DirectorySynchronisationTokenStore
directoryId
- the id of the directorypublic void storeSynchronisationTokenForDirectory(long directoryId, String syncStatus)
DirectorySynchronisationTokenStore
storeSynchronisationTokenForDirectory
in interface DirectorySynchronisationTokenStore
directoryId
- the id of the directorypublic void clearSynchronisationTokenForDirectory(long directoryId)
DirectorySynchronisationTokenStore
clearSynchronisationTokenForDirectory
in interface DirectorySynchronisationTokenStore
directoryId
- directory idCopyright © 2021 Atlassian. All rights reserved.