Package com.google.gerrit.server.account
Interface AccountsUpdate.Factory
-
- Enclosing class:
- AccountsUpdate
public static interface AccountsUpdate.Factory
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AccountsUpdate
create(IdentifiedUser currentUser, ExternalIdNotes.ExternalIdNotesLoader externalIdNotesLoader)
Creates anAccountsUpdate
which uses the identity of the specified user as author for all commits related to accounts.AccountsUpdate
createWithServerIdent(ExternalIdNotes.ExternalIdNotesLoader externalIdNotesLoader)
Creates anAccountsUpdate
which uses the server identity as author and committer for all commits related to accounts.
-
-
-
Method Detail
-
create
AccountsUpdate create(IdentifiedUser currentUser, ExternalIdNotes.ExternalIdNotesLoader externalIdNotesLoader)
Creates anAccountsUpdate
which uses the identity of the specified user as author for all commits related to accounts. The server identity will be used as committer.Note: Please use this method with care and consider using the
UserInitiated
annotation on the provider of anAccountsUpdate
instead.- Parameters:
currentUser
- the user to which modifications should be attributedexternalIdNotesLoader
- the loader that should be used to load external ID notes
-
createWithServerIdent
AccountsUpdate createWithServerIdent(ExternalIdNotes.ExternalIdNotesLoader externalIdNotesLoader)
Creates anAccountsUpdate
which uses the server identity as author and committer for all commits related to accounts.Note: Please use this method with care and consider using the
ServerInitiated
annotation on the provider of anAccountsUpdate
instead.- Parameters:
externalIdNotesLoader
- the loader that should be used to load external ID notes
-
-