Interface FacetRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>
- All Superinterfaces:
CustomizedFacetRepository<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:
JpaFacetRepository<D>
@NoRepositoryBean
public interface FacetRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>
extends com.broadleafcommerce.data.tracking.core.TrackableRepository<D>, CustomizedFacetRepository<D>, com.broadleafcommerce.common.extension.DomainTypeAware
Repository
for persistent counter-parts of
Facet
-
Method Summary
Modifier and TypeMethodDescriptionfindAllByContextIdIn
(Collection<String> contextIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieves a list of facets for the provided IDs.findAllByFieldDefinitionIdIn
(Iterable<String> fieldDefinitionIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieves a list of facets for the provided field definition IDsorg.springframework.data.domain.Page<D>
findAllByLabelContainingIgnoreCase
(String label, 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 facets by labelorg.springframework.data.domain.Page<D>
findPageByFieldDefinitionId
(String fieldDefinitionId, 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 facets by field definition IDMethods inherited from interface com.broadleafcommerce.search.core.repository.CustomizedFacetRepository
hasNonProductionRecordsByFieldIdsInTenant
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
-
findAllByLabelContainingIgnoreCase
@Policy(operationTypes=READ) org.springframework.data.domain.Page<D> findAllByLabelContainingIgnoreCase(String label, @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 facets by label- Parameters:
label
- the label field being queriedfilters
- 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 facets from the underlying repository
-
findPageByFieldDefinitionId
@Policy(operationTypes=READ) org.springframework.data.domain.Page<D> findPageByFieldDefinitionId(String fieldDefinitionId, @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 facets by field definition ID- Parameters:
fieldDefinitionId
- the field definition ID to query 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 facets from the underlying repository
-
findAllByContextIdIn
@Policy(operationTypes=READ) List<D> findAllByContextIdIn(Collection<String> contextIds, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieves a list of facets for the provided IDs.- Parameters:
contextIds
- the list of facet IDs to filter oncontextInfo
- context information around sandbox and multitenant state- Returns:
- a list of facets for the provided IDs
-
findAllByFieldDefinitionIdIn
@Policy(operationTypes=READ) List<D> findAllByFieldDefinitionIdIn(Iterable<String> fieldDefinitionIds, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieves a list of facets for the provided field definition IDs- Parameters:
fieldDefinitionIds
- the list of field definition IDs to filter oncontextInfo
- context information around sandbox and multitenant state- Returns:
- a list of facets for the provided field definition IDs
-