Package com.google.gerrit.server
Class IdentifiedUser.GenericFactory
- java.lang.Object
-
- com.google.gerrit.server.IdentifiedUser.GenericFactory
-
- Enclosing class:
- IdentifiedUser
public static class IdentifiedUser.GenericFactory extends Object
Create an IdentifiedUser, ignoring any per-request state.
-
-
Constructor Summary
Constructors Constructor Description GenericFactory(AuthConfig authConfig, Realm realm, String anonymousCowardName, com.google.inject.Provider<String> canonicalUrl, Boolean enableReverseDnsLookup, AccountCache accountCache, GroupBackend groupBackend)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IdentifiedUsercreate(Account.Id id)IdentifiedUsercreate(AccountState state)IdentifiedUsercreate(SocketAddress remotePeer, Account.Id id)IdentifiedUserrunAs(SocketAddress remotePeer, Account.Id id, CurrentUser caller)
-
-
-
Constructor Detail
-
GenericFactory
@Inject public GenericFactory(AuthConfig authConfig, Realm realm, String anonymousCowardName, com.google.inject.Provider<String> canonicalUrl, Boolean enableReverseDnsLookup, AccountCache accountCache, GroupBackend groupBackend)
-
-
Method Detail
-
create
public IdentifiedUser create(AccountState state)
-
create
public IdentifiedUser create(Account.Id id)
-
create
public IdentifiedUser create(SocketAddress remotePeer, Account.Id id)
-
runAs
public IdentifiedUser runAs(SocketAddress remotePeer, Account.Id id, CurrentUser caller)
-
-