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, RefLogIdentityProvider refLogIdentityProvider, com.google.inject.Provider<String> canonicalUrl, Boolean enablePeerIPInReflogRecord, AccountCache accountCache, GroupBackend groupBackend)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IdentifiedUser
create(Account.Id id)
IdentifiedUser
create(AccountState state)
IdentifiedUser
create(SocketAddress remotePeer, Account.Id id)
IdentifiedUser
forTest(Account.Id id, PropertyMap properties)
IdentifiedUser
runAs(SocketAddress remotePeer, Account.Id id, CurrentUser caller)
-
-
-
Constructor Detail
-
GenericFactory
@Inject public GenericFactory(AuthConfig authConfig, Realm realm, String anonymousCowardName, RefLogIdentityProvider refLogIdentityProvider, com.google.inject.Provider<String> canonicalUrl, Boolean enablePeerIPInReflogRecord, AccountCache accountCache, GroupBackend groupBackend)
-
-
Method Detail
-
create
public IdentifiedUser create(AccountState state)
-
create
public IdentifiedUser create(Account.Id id)
-
forTest
public IdentifiedUser forTest(Account.Id id, PropertyMap properties)
-
create
public IdentifiedUser create(SocketAddress remotePeer, Account.Id id)
-
runAs
public IdentifiedUser runAs(SocketAddress remotePeer, Account.Id id, CurrentUser caller)
-
-