Interface StarredChangesWriter

All Known Implementing Classes:
StarredChangesUtilNoteDbImpl

public interface StarredChangesWriter
Interface for writing information about starred changes.
  • Method Details

    • star

      void star(Account.Id accountId, Change.Id changeId)
      Star the given change for a single Account.Id.
      Parameters:
      accountId - the Account.Id.
      changeId - the Change.Id.
    • unstar

      void unstar(Account.Id accountId, Change.Id changeId)
      Unstar the given change for a single Account.Id.
      Parameters:
      accountId - the Account.Id.
      changeId - the Change.Id.
    • unstarAllForChangeDeletion

      void unstarAllForChangeDeletion(Change.Id changeId) throws IOException
      Unstar the given change for all users.

      Intended for use only when we're about to delete a change. For that reason, the change is not reindexed.

      Parameters:
      changeId - change ID.
      Throws:
      IOException - if an error occurred.