public class DefaultJiraTenantAccessor extends Object implements JiraTenantAccessor, InitializingComponent
Constructor and Description |
---|
DefaultJiraTenantAccessor(com.atlassian.tenancy.api.TenantContext tenantContext,
ComponentLocator componentLocator) |
Modifier and Type | Method and Description |
---|---|
void |
addTenant(com.atlassian.tenancy.api.Tenant tenant) |
void |
afterInstantiation() |
<T> T |
asTenant(com.atlassian.tenancy.api.Tenant tenant,
Callable<T> call) |
Iterable<com.atlassian.tenancy.api.Tenant> |
getAvailableTenants() |
void |
onImportCompleted(ImportCompletedEvent importCompletedEvent) |
void |
onImportStarted(ImportStartedEvent importStartedEvent) |
void |
onJiraStarted(JiraStartedEvent jiraStartedEvent) |
public DefaultJiraTenantAccessor(com.atlassian.tenancy.api.TenantContext tenantContext, ComponentLocator componentLocator)
public Iterable<com.atlassian.tenancy.api.Tenant> getAvailableTenants()
getAvailableTenants
in interface com.atlassian.tenancy.api.TenantAccessor
public <T> T asTenant(com.atlassian.tenancy.api.Tenant tenant, Callable<T> call) throws com.atlassian.tenancy.api.TenantUnavailableException, InvocationTargetException
asTenant
in interface com.atlassian.tenancy.api.TenantAccessor
com.atlassian.tenancy.api.TenantUnavailableException
InvocationTargetException
public void addTenant(com.atlassian.tenancy.api.Tenant tenant)
addTenant
in interface JiraTenantAccessor
@EventListener public void onImportStarted(ImportStartedEvent importStartedEvent)
@EventListener public void onImportCompleted(ImportCompletedEvent importCompletedEvent)
@EventListener public void onJiraStarted(JiraStartedEvent jiraStartedEvent)
public void afterInstantiation() throws Exception
afterInstantiation
in interface InitializingComponent
Exception
Copyright © 2002-2015 Atlassian. All Rights Reserved.