@CompileStatic protected static class Tenants.CurrentTenant extends Object
| Constructor and description |
|---|
Tenants.CurrentTenant() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
static Serializable |
get()
|
<T> |
static T |
withTenant(Serializable tenantId, Closure<T> callable)Execute with the current tenant |
<T> |
static T |
withoutTenant(Closure<T> callable)Execute without current tenant |
Execute with the current tenant
callable - The closureExecute without current tenant
callable - The closure