Interface DirectorySynchronisationTokenStore

All Known Implementing Classes:
InDatabaseDirectorySynchronisationTokenStore, InMemoryDirectorySynchronisationTokenStore

public interface DirectorySynchronisationTokenStore
Responsible for storing and obtaining directory synchronisation tokens
  • Method Details

    • getLastSynchronisationTokenForDirectory

      @Nullable String getLastSynchronisationTokenForDirectory(long directoryId)
      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 syncStatus)
      Store a new synchronisation token for the given directory. This will overwrite the old token.
      Parameters:
      directoryId - the id of the directory
      synchronisationToken - the new token to store
    • clearSynchronisationTokenForDirectory

      void clearSynchronisationTokenForDirectory(long directoryId)
      Clears the synchronisation token for the given directory
      Parameters:
      directoryId - directory id