@ExperimentalApi
public interface TenantAccessor
Iterable<Tenant> getAvailableTenants()
<T> T asTenant(Tenant tenant, Callable<T> call) throws TenantUnavailableException, InvocationTargetException
T - the expected return type of the calltenant - the tenant to execute the call on behalf ofcall - the Callable to executeInvocationTargetException - an exception was thrown by the provided CallableTenantUnavailableException - the operation could not be performed because the tenant is not currently
installed on the server. This may happen because a tenant has been uninstalled since the last call
to getAvailableTenants().UnexpectedTenantChangeException - the method was called from the context of an tenant other than
the one provided as a parameterCopyright © 2014 Atlassian. All rights reserved.