Introduce imported external ids for accounts from other servers
Allow association of local accounts with
account-ids associated with server-ids of imported changes.
Example: a user having accountId=100 on Gerrit is associated with
the accountId=200 referenced in changes imported from another server having
a different server-id. This association can be represented with:
externalId=imported:200@imported-server-id.
Release-Notes: Introduce new imported external id for accounts
Change-Id: I13e526e0682d8005a48129559fcd06d039f42444
diff --git a/java/com/google/gerrit/server/account/externalids/ExternalId.java b/java/com/google/gerrit/server/account/externalids/ExternalId.java
index 0a51171..1616198 100644
--- a/java/com/google/gerrit/server/account/externalids/ExternalId.java
+++ b/java/com/google/gerrit/server/account/externalids/ExternalId.java
@@ -135,6 +135,9 @@
/** Scheme used for GPG public keys. */
public static final String SCHEME_GPGKEY = "gpgkey";
+ /** Scheme for imported accounts from other servers with different GerritServerId */
+ public static final String SCHEME_IMPORTED = "imported";
+
/** Scheme for external auth used during authentication, e.g. OAuth Token */
public static final String SCHEME_EXTERNAL = "external";