public class DefaultQuotaBackend extends java.lang.Object implements QuotaBackend
Modifier and Type | Method and Description |
---|---|
com.google.gerrit.server.quota.DefaultQuotaBackend.WithUser |
currentUser()
Constructs a request for the current user.
|
com.google.gerrit.server.quota.DefaultQuotaBackend.WithUser |
user(CurrentUser user)
|
public com.google.gerrit.server.quota.DefaultQuotaBackend.WithUser currentUser()
QuotaBackend
currentUser
in interface QuotaBackend
public com.google.gerrit.server.quota.DefaultQuotaBackend.WithUser user(CurrentUser user)
QuotaBackend
QuotaBackend.currentUser()
. Use this method only if you can't guarantee that the request is for
the current user (e.g. impersonation).user
in interface QuotaBackend