Interface CustomizedSearchSettingsRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>
- All Known Subinterfaces:
JpaSearchSettingsRepository<D>,SearchSettingsRepository<D>
- All Known Implementing Classes:
JpaCustomizedSearchSettingsRepository
public interface CustomizedSearchSettingsRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>
-
Method Summary
Modifier and TypeMethodDescriptionfindForContextForTenant(String settingsContext, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieves theSearchSettingsfor the givenDefaultSettingsContextTypefor the tenant in scope.
-
Method Details
-
findForContextForTenant
@Policy(operationTypes=READ) Optional<D> findForContextForTenant(String settingsContext, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieves theSearchSettingsfor the givenDefaultSettingsContextTypefor the tenant in scope. This will honor sandbox filtering and query hints.- Parameters:
settingsContext- the settings context to filter oncontextInfo- context information around sandbox and multitenant state- Returns:
- the search settings, if it exists
-