Package com.google.gerrit.server
Class IdentifiedUser.RequestFactory
- java.lang.Object
-
- com.google.gerrit.server.IdentifiedUser.RequestFactory
-
- Enclosing class:
- IdentifiedUser
public static class IdentifiedUser.RequestFactory extends Object
Create an IdentifiedUser, relying on current request state.Can only be used from within a module that has defined a request scoped
@RemotePeer SocketAddress
provider.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IdentifiedUser
create(Account.Id id)
<T> IdentifiedUser
create(Account.Id id, PropertyMap properties)
IdentifiedUser
runAs(Account.Id id, CurrentUser caller, PropertyMap properties)
-
-
-
Method Detail
-
create
public IdentifiedUser create(Account.Id id)
-
create
public <T> IdentifiedUser create(Account.Id id, PropertyMap properties)
-
runAs
public IdentifiedUser runAs(Account.Id id, CurrentUser caller, PropertyMap properties)
-
-