public interface CurrentTenantService
The service to get the current tenant.
Modifier and Type | Method and Description |
---|---|
Set<String> |
getAvailableTenantIds()
Returns the available tenant IDs for this system.
|
String |
getCurrentTenantId()
Returns the tenant to use for all data access in the current context.
|
<T> T |
runAsTenant(String tenantId,
Callable<T> action)
Runs the given action in the context of the specified tenant.
|
void |
runAsTenant(String tenantId,
Runnable action)
Runs the given action in the context of the specified tenant.
|
String getCurrentTenantId()
Returns the tenant to use for all data access in the current context.
void runAsTenant(String tenantId, Runnable action)
Runs the given action in the context of the specified tenant.
tenantId
- the tenant id to applyaction
- the action to execute<T> T runAsTenant(String tenantId, Callable<T> action)
Runs the given action in the context of the specified tenant.
T
- the type of the callabletenantId
- the tenant id to applyaction
- the action to executeCopyright © 2010 - 2019 edorasware ag. All Rights Reserved.