Package com.google.gerrit.server
Interface StarredChangesWriter
- All Known Implementing Classes:
StarredChangesUtilNoteDbImpl
public interface StarredChangesWriter
Interface for writing information about starred changes.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
star
(Account.Id accountId, Change.Id changeId) Star the given change for a singleAccount.Id
.void
unstar
(Account.Id accountId, Change.Id changeId) Unstar the given change for a singleAccount.Id
.void
unstarAllForChangeDeletion
(Change.Id changeId) Unstar the given change for all users.
-
Method Details
-
star
Star the given change for a singleAccount.Id
.- Parameters:
accountId
- theAccount.Id
.changeId
- theChange.Id
.
-
unstar
Unstar the given change for a singleAccount.Id
.- Parameters:
accountId
- theAccount.Id
.changeId
- theChange.Id
.
-
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.
-