public interface CurrentIdentityService
Modifier and Type | Method and Description |
---|---|
<T> T |
runAsUserInTenant(UserId userId,
TenantId tenantId,
Callable<T> action)
Runs the given action in the context of the specified user sand tenant.
|
void |
runAsUserInTenant(UserId userId,
TenantId tenantId,
Runnable action)
Runs the given action in the context of the specified user and tenant.
|
void runAsUserInTenant(UserId userId, TenantId tenantId, Runnable action)
userId
- the user id to applytenantId
- the tenant id to applyaction
- the action to execute<T> T runAsUserInTenant(UserId userId, TenantId tenantId, Callable<T> action)
T
- the type of the callableuserId
- the user id to applytenantId
- the tenant id to applyaction
- the action to executeCopyright © 2010 - 2018 edorasware ag. All Rights Reserved.