Interface FacetGroupFacetRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>
- All Superinterfaces:
CustomizedFacetGroupFacetRepository<D>
,com.broadleafcommerce.common.extension.DomainTypeAware
,com.broadleafcommerce.common.messaging.notification.NotificationStateRepository
,org.springframework.data.repository.Repository<D,
,String> com.broadleafcommerce.data.tracking.core.TrackableRepository<D>
- All Known Subinterfaces:
JpaFacetGroupFacetRepository<D>
@NoRepositoryBean
public interface FacetGroupFacetRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>
extends com.broadleafcommerce.data.tracking.core.TrackableRepository<D>, com.broadleafcommerce.common.extension.DomainTypeAware, CustomizedFacetGroupFacetRepository<D>
Repository
for persistent counter-parts of
FacetGroupFacet
-
Method Summary
Modifier and TypeMethodDescriptionboolean
existsByFacetContextIdAndFacetGroupContextId
(String facetContextId, String facetGroupContextId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Returns whether there is a facet group/facet relationship for the given facet and facet group in the data store.findAllByFacetContextId
(String facetContextId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieves a list of FacetGroupFacet relationships for the provided facet group ID.findAllByFacetGroupContextId
(String facetGroupContextId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieves a list of FacetGroupFacet relationships for the provided facet group ID.org.springframework.data.domain.Page<D>
findByFacetGroupContextId
(String facetGroupContextId, 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.Methods inherited from interface com.broadleafcommerce.search.core.repository.CustomizedFacetGroupFacetRepository
findByFacetGroupContextIdAndIsSorted, hasNonProductionRecordsByFacetIdsInTenant
Methods inherited from interface com.broadleafcommerce.common.messaging.notification.NotificationStateRepository
findNotificationReadyMembers, setFailedNotificationAttempt, setNotificationAcknowledged
Methods inherited from interface com.broadleafcommerce.data.tracking.core.TrackableRepository
archive, existsByContextId, findAll, findAll, findAll, findAll, findAll, findAll, findAllByContextId, findByContextId, findByContextIdAndCatalog, findByNativeId, findDeployable, findMaxSortMember, findMinSortMember, findOriginal, findPromotable, findPromoteOrientedItems, findRebasable, findRejectable, findRevertable, findTarget, getDomainType, getEntityInformation, getTrackableBehaviorUtil, getTypesToRegisterInMappingContext, pruneChangeDetails, pruneRestingNotificationStates, purgeObsoleteSandboxData, save, saveAll, setTrackableBehaviorUtil
-
Method Details
-
findByFacetGroupContextId
@Policy(operationTypes=READ) @NonNull org.springframework.data.domain.Page<D> findByFacetGroupContextId(@NonNull String facetGroupContextId, @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 onfilters
- additional filters to apply in the query. Should beEmptyNode
if 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
-
existsByFacetContextIdAndFacetGroupContextId
@Policy(operationTypes=READ) boolean existsByFacetContextIdAndFacetGroupContextId(@NonNull String facetContextId, @NonNull String facetGroupContextId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Returns whether there is a facet group/facet relationship for the given facet and facet group in the data store.- Parameters:
facetContextId
- the facet context IDfacetGroupContextId
- the facet group context IDcontextInfo
- context surrounding sandboxing and multitenant state- Returns:
- true if a relationship was found between the facet and facet group, false otherwise
-
findAllByFacetGroupContextId
@Policy(operationTypes=READ) List<D> findAllByFacetGroupContextId(String facetGroupContextId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieves a list of FacetGroupFacet relationships for the provided facet group ID.- Parameters:
facetGroupContextId
- the facet group ID to filter oncontextInfo
- context information around sandbox and multitenant state- Returns:
- a list of FacetGroupFacet relationships for the provided facet group ID
-
findAllByFacetContextId
@Policy(operationTypes=READ) List<D> findAllByFacetContextId(String facetContextId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieves a list of FacetGroupFacet relationships for the provided facet group ID.- Parameters:
facetContextId
- the facet group ID to filter oncontextInfo
- context information around sandbox and multitenant state- Returns:
- a list of FacetGroupFacet relationships for the provided facet group ID
- Since:
- Search Service 2.1.4, Release Train 2.1.4, Search Service 2.2.0, Release Train 2.2.0
-