@CompileStatic class DefaultTenantService extends Object implements Service, TenantService
Default implementation of the TenantService interface
| Constructor and description |
|---|
DefaultTenantService() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
Serializable |
currentId() |
|
void |
eachTenant(Closure callable) |
|
protected MultiTenantCapableDatastore |
multiTenantDatastore() |
<T> |
T |
withCurrent(Closure<T> callable) |
<T> |
T |
withId(Serializable tenantId, Closure<T> callable) |
<T> |
T |
withoutId(Closure<T> callable) |