Class AccountsUpdateNoteDbImpl.Factory
java.lang.Object
com.google.gerrit.server.account.storage.notedb.AccountsUpdateNoteDbImpl.Factory
- All Implemented Interfaces:
AccountsUpdate.AccountsUpdateLoader
- Enclosing class:
AccountsUpdateNoteDbImpl
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.google.gerrit.server.account.AccountsUpdate.AccountsUpdateLoader
AccountsUpdate.AccountsUpdateLoader.NoReindex, AccountsUpdate.AccountsUpdateLoader.WithReindex
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(IdentifiedUser currentUser) Creates anAccountsUpdate
which uses the identity of the specified user as author for all commits related to accounts.Creates anAccountsUpdate
which uses the server identity as author and committer for all commits related to accounts.
-
Method Details
-
create
Description copied from interface:AccountsUpdate.AccountsUpdateLoader
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.- Specified by:
create
in interfaceAccountsUpdate.AccountsUpdateLoader
- Parameters:
currentUser
- the user to which modifications should be attributed
-
createWithServerIdent
Description copied from interface:AccountsUpdate.AccountsUpdateLoader
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.- Specified by:
createWithServerIdent
in interfaceAccountsUpdate.AccountsUpdateLoader
-