Package com.google.gerrit.server
Class DefaultRefLogIdentityProvider
- java.lang.Object
-
- com.google.gerrit.server.DefaultRefLogIdentityProvider
-
- All Implemented Interfaces:
RefLogIdentityProvider
public class DefaultRefLogIdentityProvider extends Object implements RefLogIdentityProvider
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DefaultRefLogIdentityProvider.Module
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.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 Detail
-
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
-
-