Class TenancyConfiguration
- java.lang.Object
-
- org.hibernate.search.mapper.orm.tenancy.spi.TenancyConfiguration
-
public class TenancyConfiguration extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TenancyConfiguration
create(TenancyMode tenancyMode, ConfigurationPropertySource configurationPropertySource)
SearchException
invalidTenantId(String tenantId)
Set<String>
tenantIdsOrFail()
-
-
-
Method Detail
-
create
public static TenancyConfiguration create(TenancyMode tenancyMode, ConfigurationPropertySource configurationPropertySource)
-
tenantIdsOrFail
public Set<String> 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
public SearchException invalidTenantId(String tenantId)
-
-