Class 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

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      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.
      com.atlassian.fugue.Option<com.atlassian.tenancy.api.Tenant> get()
      Deprecated.
      since 7.0.1.
      Optional<com.atlassian.tenancy.api.Tenant> getTenant()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      String name()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
    • Constructor Detail

      • SystemTenant

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

      • 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:
        getTenant()