Interface DirectorySynchronisationTokenDao

All Known Implementing Classes:
DirectorySynchronisationTokenDaoHibernate

public interface DirectorySynchronisationTokenDao
  • 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 synchronisationToken) throws DirectoryNotFoundException
      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
      Throws:
      DirectoryNotFoundException
    • clearSynchronisationTokenForDirectory

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