com.atlassian.confluence.tenant
Class SystemTenant
java.lang.Object
com.atlassian.confluence.tenant.SystemTenant
- All Implemented Interfaces:
- com.atlassian.tenancy.api.Tenant, org.springframework.beans.factory.InitializingBean
public class SystemTenant
- extends Object
- implements com.atlassian.tenancy.api.Tenant, org.springframework.beans.factory.InitializingBean
Holder for the system tenant.
This class should be considered a temporary solution on the way to multi-tenancy. It replays the system tenant
during the bootstrap container initialisation in case of a tenanted system and will be called by transitionFromVacantToTenantedState
at the end of the web-based setup in case of a previously vacant system.
- Since:
- 5.6
Constructor Summary |
SystemTenant(TenantRegistry tenantRegistry,
com.atlassian.config.bootstrap.AtlassianBootstrapManager bootstrapManager)
|
Method Summary |
void |
afterPropertiesSet()
Replay the system tenant on restart. |
boolean |
arrived()
Signal that the system tenant has arrived, typically done after the AtlassianBootstrapManager.setSetupComplete(boolean)
has been called. |
com.atlassian.fugue.Option<com.atlassian.tenancy.api.Tenant> |
get()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SystemTenant
public SystemTenant(TenantRegistry tenantRegistry,
com.atlassian.config.bootstrap.AtlassianBootstrapManager bootstrapManager)
afterPropertiesSet
public void afterPropertiesSet()
- Replay the system tenant on restart.
- Specified by:
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
get
public com.atlassian.fugue.Option<com.atlassian.tenancy.api.Tenant> get()
- Returns:
- the system tenant, only if it is currently contained in the registry
arrived
public boolean arrived()
- Signal that the system tenant has arrived, typically done after the
AtlassianBootstrapManager.setSetupComplete(boolean)
has been called.
- Returns:
- true only if the system tenant was added due to this call
- See Also:
get()
Copyright © 2003–2015 Atlassian. All rights reserved.