Package com.atlassian.confluence.tenant
Class SystemTenant
- java.lang.Object
-
- com.atlassian.confluence.tenant.SystemTenant
-
- All Implemented Interfaces:
com.atlassian.tenancy.api.Tenant
public class SystemTenant extends Object implements com.atlassian.tenancy.api.Tenant
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
Constructors Constructor Description SystemTenant(TenantRegistry tenantRegistry)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
arrived()
Signal that the system tenant has arrived, typically done after theAtlassianBootstrapManager.setSetupComplete(boolean)
has been called.com.atlassian.fugue.Option<com.atlassian.tenancy.api.Tenant>
get()
Deprecated.since 7.0.1.Optional<com.atlassian.tenancy.api.Tenant>
getTenant()
String
name()
-
-
-
Constructor Detail
-
SystemTenant
public SystemTenant(TenantRegistry tenantRegistry)
-
-
Method Detail
-
name
public String name()
- Specified by:
name
in interfacecom.atlassian.tenancy.api.Tenant
-
get
@Deprecated public com.atlassian.fugue.Option<com.atlassian.tenancy.api.Tenant> get()
Deprecated.since 7.0.1. UsegetTenant()
- Returns:
- the system tenant, only if it is currently contained in the registry
-
getTenant
public Optional<com.atlassian.tenancy.api.Tenant> getTenant()
- Returns:
- the system tenant, only if it is currently contained in the registry
- Since:
- 7.0.1
-
arrived
public boolean arrived()
Signal that the system tenant has arrived, typically done after theAtlassianBootstrapManager.setSetupComplete(boolean)
has been called.- Returns:
- true only if the system tenant was added due to this call
- See Also:
getTenant()
-
-