Type | Name and description |
---|---|
static java.io.Serializable |
get() @return Obtain the current tenant |
static T |
withTenant(java.io.Serializable tenantId, groovy.lang.Closure<T> callable) Execute with the current tenant |
static T |
withoutTenant(groovy.lang.Closure<T> callable) Execute without current tenant |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Execute with the current tenant
callable
- The closureExecute without current tenant
callable
- The closure