Class ExternalIdNotes.Factory
- java.lang.Object
-
- com.google.gerrit.server.account.externalids.ExternalIdNotes.ExternalIdNotesLoader
-
- com.google.gerrit.server.account.externalids.ExternalIdNotes.Factory
-
- Enclosing class:
- ExternalIdNotes
public static class ExternalIdNotes.Factory extends ExternalIdNotes.ExternalIdNotesLoader
-
-
Field Summary
-
Fields inherited from class com.google.gerrit.server.account.externalids.ExternalIdNotes.ExternalIdNotesLoader
allUsersName, authConfig, externalIdCache, externalIdFactory, metricMaker, upsertPreprocessors
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExternalIdNotes
load(org.eclipse.jgit.lib.Repository allUsersRepo)
Loads the external ID notes from the current tip of therefs/meta/external-ids
branch.ExternalIdNotes
load(org.eclipse.jgit.lib.Repository allUsersRepo, org.eclipse.jgit.lib.ObjectId rev)
Loads the external ID notes from the specified revision of therefs/meta/external-ids
branch.protected void
reindexAccount(Account.Id id)
-
Methods inherited from class com.google.gerrit.server.account.externalids.ExternalIdNotes.ExternalIdNotesLoader
updateExternalIdCacheAndMaybeReindexAccounts
-
-
-
-
Method Detail
-
load
public ExternalIdNotes load(org.eclipse.jgit.lib.Repository allUsersRepo) throws IOException, org.eclipse.jgit.errors.ConfigInvalidException
Description copied from class:ExternalIdNotes.ExternalIdNotesLoader
Loads the external ID notes from the current tip of therefs/meta/external-ids
branch.- Specified by:
load
in classExternalIdNotes.ExternalIdNotesLoader
- Parameters:
allUsersRepo
- the All-Users repository- Throws:
IOException
org.eclipse.jgit.errors.ConfigInvalidException
-
load
public ExternalIdNotes load(org.eclipse.jgit.lib.Repository allUsersRepo, org.eclipse.jgit.lib.ObjectId rev) throws IOException, org.eclipse.jgit.errors.ConfigInvalidException
Description copied from class:ExternalIdNotes.ExternalIdNotesLoader
Loads the external ID notes from the specified revision of therefs/meta/external-ids
branch.- Specified by:
load
in classExternalIdNotes.ExternalIdNotesLoader
- Parameters:
allUsersRepo
- the All-Users repositoryrev
- the revision from which the external ID notes should be loaded, ifnull
the external ID notes are loaded from the current tip, ifObjectId.zeroId()
it's assumed that therefs/meta/external-ids
branch doesn't exist and the loaded external IDs will be empty- Throws:
IOException
org.eclipse.jgit.errors.ConfigInvalidException
-
reindexAccount
protected void reindexAccount(Account.Id id)
- Specified by:
reindexAccount
in classExternalIdNotes.ExternalIdNotesLoader
-
-