Class NoMultiTenancyStrategy
java.lang.Object
org.hibernate.search.backend.lucene.multitenancy.impl.NoMultiTenancyStrategy
- All Implemented Interfaces:
MultiTenancyStrategy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckTenantId(String tenantId, EventContext backendContext) Check that the tenant id value is consistent with the strategy.voidcheckTenantId(Set<String> tenantIds, EventContext context) Check that the set of tenant id values is valid.voidcontributeToIndexedDocument(org.apache.lucene.document.Document document, String tenantId) Contributes additional information to the indexed document.org.apache.lucene.search.QueryfilterOrNull(String tenantId) Generate a filter for the given tenant ID, to be applied to search queries and update/delete operations.org.apache.lucene.search.QueryfilterOrNull(Set<String> tenantIds) Generate a filter for the given set of tenant IDs, to be applied to search queries.
-
Constructor Details
-
NoMultiTenancyStrategy
public NoMultiTenancyStrategy()
-
-
Method Details
-
contributeToIndexedDocument
public void contributeToIndexedDocument(org.apache.lucene.document.Document document, String tenantId) Description copied from interface:MultiTenancyStrategyContributes additional information to the indexed document.- Specified by:
contributeToIndexedDocumentin interfaceMultiTenancyStrategy- Parameters:
document- The indexed document.tenantId- The tenant id.
-
filterOrNull
Description copied from interface:MultiTenancyStrategyGenerate a filter for the given tenant ID, to be applied to search queries and update/delete operations.- Specified by:
filterOrNullin interfaceMultiTenancyStrategy- Parameters:
tenantId- The tenant id.- Returns:
- The filter, or
nullif no filter is necessary.
-
filterOrNull
Description copied from interface:MultiTenancyStrategyGenerate a filter for the given set of tenant IDs, to be applied to search queries.- Specified by:
filterOrNullin interfaceMultiTenancyStrategy- Parameters:
tenantIds- The set of tenant ids.- Returns:
- The filter, or
nullif no filter is necessary.
-
checkTenantId
Description copied from interface:MultiTenancyStrategyCheck that the tenant id value is consistent with the strategy.- Specified by:
checkTenantIdin interfaceMultiTenancyStrategy- Parameters:
tenantId- The tenant id.backendContext- The backend.
-
checkTenantId
Description copied from interface:MultiTenancyStrategyCheck that the set of tenant id values is valid.- Specified by:
checkTenantIdin interfaceMultiTenancyStrategy- Parameters:
tenantIds- The set of tenant ids.context- The context to add to exceptions (if any).
-