Interface TenantRegistry

    • Method Detail

      • addTenant

        boolean addTenant​(com.atlassian.tenancy.api.Tenant tenant)
        Parameters:
        tenant - the tenant to add
        Returns:
        true if the tenant was added during this request, false if the registry already knew it
      • removeTenant

        boolean removeTenant​(com.atlassian.tenancy.api.Tenant tenant)
        Parameters:
        tenant - the tenant to remove
        Returns:
        true if the tenant was removed, false if the registry didn't know about it
      • isTenantRegistered

        boolean isTenantRegistered​(com.atlassian.tenancy.api.Tenant tenant)
        Parameters:
        tenant - the tenant to test for being registered
        Returns:
        true if the tenant is currently registered
      • isRegistryVacant

        boolean isRegistryVacant()
        Returns:
        true if the registry currently has no tenants
      • hasTenant

        default boolean hasTenant()