Class DefaultRefLogIdentityProvider

java.lang.Object
com.google.gerrit.server.DefaultRefLogIdentityProvider
All Implemented Interfaces:
RefLogIdentityProvider

public class DefaultRefLogIdentityProvider extends Object implements RefLogIdentityProvider
  • Method Details

    • newRefLogIdent

      public org.eclipse.jgit.lib.PersonIdent newRefLogIdent(IdentifiedUser user, Instant when, ZoneId zoneId)
      Description copied from interface: RefLogIdentityProvider
      Creates a PersonIdent 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 interface RefLogIdentityProvider
      Parameters:
      user - the user for which a reflog identity should be created
      when - the timestamp that should be used to create the PersonIdent
      zoneId - the zone ID identifying the timezone that should be used to create the PersonIdent