Class 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 Detail

      • SystemTenant

        public SystemTenant​(TenantRegistry tenantRegistry)
    • Method Detail

      • name

        public String name()
        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()
        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 the AtlassianBootstrapManager.setSetupComplete(boolean) has been called.
        Returns:
        true only if the system tenant was added due to this call
        See Also:
        getTenant()