public interface CurrentIdentityService
The service to run code within the context of a given user and tenant. This can be used, for example, to run code for a given user in different tenants.
| Modifier and Type | Method and Description | 
|---|---|
<T> T | 
runAsUserInTenant(String userId,
                 String tenantId,
                 Callable<T> action)
Runs the given action in the context of the specified user sand tenant. 
 | 
void | 
runAsUserInTenant(String userId,
                 String tenantId,
                 Runnable action)
Runs the given action in the context of the specified user and tenant. 
 | 
void runAsUserInTenant(String userId, String tenantId, Runnable action)
Runs the given action in the context of the specified user and tenant.
userId - the user id to applytenantId - the tenant id to applyaction - the action to execute<T> T runAsUserInTenant(String userId, String tenantId, Callable<T> action)
Runs the given action in the context of the specified user sand tenant.
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.