Package com.google.gerrit.server
Interface StarredChangesUtil
- All Known Implementing Classes:
StarredChangesUtilNoteDbImpl
public interface StarredChangesUtil
-
Method Summary
Modifier and TypeMethodDescriptionareStarred
(org.eclipse.jgit.lib.Repository allUsersRepo, List<Change.Id> changeIds, Account.Id caller) Returns a subset of change IDs among the inputchangeIds
list that are starred by thecaller
user.com.google.common.collect.ImmutableSet<Change.Id>
byAccountId
(Account.Id accountId) com.google.common.collect.ImmutableSet<Change.Id>
byAccountId
(Account.Id accountId, boolean skipInvalidChanges) com.google.common.collect.ImmutableMap<Account.Id,
org.eclipse.jgit.lib.Ref> boolean
isStarred
(Account.Id accountId, Change.Id changeId) void
star
(Account.Id accountId, Change.Id changeId) void
unstar
(Account.Id accountId, Change.Id changeId) void
unstarAllForChangeDeletion
(Change.Id changeId) Unstar the given change for all users.
-
Method Details
-
isStarred
-
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 inputchangeIds
list that are starred by thecaller
user. -
byChange
com.google.common.collect.ImmutableMap<Account.Id,org.eclipse.jgit.lib.Ref> byChange(Change.Id changeId) -
byAccountId
-
byAccountId
com.google.common.collect.ImmutableSet<Change.Id> byAccountId(Account.Id accountId, boolean skipInvalidChanges) -
star
-
unstar
-
unstarAllForChangeDeletion
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.
-