Class TenancyConfiguration
java.lang.Object
org.hibernate.search.mapper.orm.tenancy.spi.TenancyConfiguration
- All Implemented Interfaces:
AutoCloseable
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()static TenancyConfigurationcreate(BeanResolver beanResolver, TenancyMode tenancyMode, ConfigurationPropertySource configurationPropertySource) static TenancyConfigurationcreate(TenancyMode tenancyMode, BeanHolder<? extends TenantIdentifierConverter> tenantIdentifierConverter, Optional<Set<String>> tenantIds, String tenantIdsConfigurationPropertyKey) invalidTenantId(String tenantId)
-
Method Details
-
create
public static TenancyConfiguration create(BeanResolver beanResolver, TenancyMode tenancyMode, ConfigurationPropertySource configurationPropertySource) -
create
public static TenancyConfiguration create(TenancyMode tenancyMode, BeanHolder<? extends TenantIdentifierConverter> tenantIdentifierConverter, Optional<Set<String>> tenantIds, String tenantIdsConfigurationPropertyKey) -
tenantIdsOrFail
- Returns:
- A set of all possible tenant IDs, or an empty set if the application is single-tenant.
- Throws:
SearchException- if the application is multi-tenant and the full list of tenant IDs was not configured.
-
invalidTenantId
-
convert
-
convert
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
tenancyMode
-