Package com.google.gerrit.server
Class DefaultRefLogIdentityProvider
java.lang.Object
com.google.gerrit.server.DefaultRefLogIdentityProvider
- All Implemented Interfaces:
RefLogIdentityProvider
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.jgit.lib.PersonIdent
newRefLogIdent
(IdentifiedUser user, Instant when, ZoneId zoneId) Creates aPersonIdent
for the given user that should be used as the user identity in the reflog for ref updates done by this user or done on behalf of this user.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.google.gerrit.server.RefLogIdentityProvider
getDefaultDomain, newRefLogIdent, newRefLogIdent
-
Method Details
-
newRefLogIdent
public org.eclipse.jgit.lib.PersonIdent newRefLogIdent(IdentifiedUser user, Instant when, ZoneId zoneId) Description copied from interface:RefLogIdentityProvider
Creates aPersonIdent
for the given user that should be used as the user identity in the reflog for ref updates done by this user or done on behalf of this user.- Specified by:
newRefLogIdent
in interfaceRefLogIdentityProvider
- Parameters:
user
- the user for which a reflog identity should be createdwhen
- the timestamp that should be used to create thePersonIdent
zoneId
- the zone ID identifying the timezone that should be used to create thePersonIdent
-