Class SystemTenant

java.lang.Object
com.atlassian.confluence.tenant.SystemTenant
All Implemented Interfaces:
com.atlassian.tenancy.api.Tenant

@Deprecated(forRemoval=true) public class SystemTenant extends Object implements com.atlassian.tenancy.api.Tenant
Deprecated, for removal: This API element is subject to removal in a future version.
since 8.6
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)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    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()
    Deprecated.
    since 7.0.1.
    Optional<com.atlassian.tenancy.api.Tenant>
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SystemTenant

      public SystemTenant(TenantRegistry tenantRegistry)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • name

      public String name()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      name in interface com.atlassian.tenancy.api.Tenant
    • get

      @Deprecated public com.atlassian.fugue.Option<com.atlassian.tenancy.api.Tenant> get()
      Deprecated.
      since 7.0.1. Use getTenant()
      Returns:
      the system tenant, only if it is currently contained in the registry
    • getTenant

      public Optional<com.atlassian.tenancy.api.Tenant> getTenant()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      the system tenant, only if it is currently contained in the registry
      Since:
      7.0.1
    • arrived

      public boolean arrived()
      Deprecated, for removal: This API element is subject to removal in a future version.
      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: