Interface CustomizedFacetGroupFacetRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>
- All Known Subinterfaces:
FacetGroupFacetRepository<D>,JpaFacetGroupFacetRepository<D>
- All Known Implementing Classes:
JpaCustomizedFacetGroupFacetRepository
public interface CustomizedFacetGroupFacetRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>
- Author:
- Dima Myroniuk (dmyroniuk)
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.data.domain.Page<D>findByFacetGroupContextIdAndIsSorted(@NonNull String facetGroupContextId, boolean isSorted, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable page, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieves a paged list of facet group facets by facet group ID.booleanhasNonProductionRecordsByFacetIdsInTenant(Collection<String> facetIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Returns true if there is non-productionJpaFacetGroupFacetthat match the givenfacetIdsand the given context.
-
Method Details
-
findByFacetGroupContextIdAndIsSorted
@Policy(operationTypes=READ) @NonNull org.springframework.data.domain.Page<D> findByFacetGroupContextIdAndIsSorted(@NonNull @NonNull String facetGroupContextId, boolean isSorted, @Nullable cz.jirutka.rsql.parser.ast.Node filters, @Nullable org.springframework.data.domain.Pageable page, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieves a paged list of facet group facets by facet group ID.- Parameters:
facetGroupContextId- the facet group ID to filter onisSorted- filter theFacetGroupFacetsbyFacetGroupFacet.getSorted()value.filters- additional filters to apply in the query. Should beEmptyNodeif no additional filters should be applied.page- the requested page of results from the databasecontextInfo- context information around sandbox and multitenant state- Returns:
- a paged list of facet group facets by facet group ID
-
hasNonProductionRecordsByFacetIdsInTenant
@Policy(operationTypes=READ) boolean hasNonProductionRecordsByFacetIdsInTenant(Collection<String> facetIds, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Returns true if there is non-productionJpaFacetGroupFacetthat match the givenfacetIdsand the given context.- Parameters:
facetIds- IDs of theFacetto match againstcontextInfo- Request context information around sandbox and multitenant state- Returns:
- true if there is non-production records that match the given
sortOptionIdsand the given context, and false otherwise - Since:
- Search Service 2.1.4, Release Train 2.1.4, Search Service 2.2.0, Release Train 2.2.0
-