Interface StarredChangesUtil

All Known Implementing Classes:
StarredChangesUtilNoteDbImpl

public interface StarredChangesUtil
  • Method Details

    • isStarred

      boolean isStarred(Account.Id accountId, Change.Id changeId)
    • areStarred

      Set<Change.Id> areStarred(org.eclipse.jgit.lib.Repository allUsersRepo, List<Change.Id> changeIds, Account.Id caller)
      Returns a subset of change IDs among the input changeIds list that are starred by the caller user.
    • byChange

      com.google.common.collect.ImmutableMap<Account.Id,org.eclipse.jgit.lib.Ref> byChange(Change.Id changeId)
    • byAccountId

      com.google.common.collect.ImmutableSet<Change.Id> byAccountId(Account.Id accountId)
    • byAccountId

      com.google.common.collect.ImmutableSet<Change.Id> byAccountId(Account.Id accountId, boolean skipInvalidChanges)
    • star

      void star(Account.Id accountId, Change.Id changeId)
    • unstar

      void unstar(Account.Id accountId, Change.Id changeId)
    • 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.