Interface RelevancyRuleGroupRuleRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>
- All Superinterfaces:
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:
JpaRelevancyRuleGroupRuleRepository<D>
@NoRepositoryBean
public interface RelevancyRuleGroupRuleRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable>
extends com.broadleafcommerce.data.tracking.core.TrackableRepository<D>, com.broadleafcommerce.common.extension.DomainTypeAware
Repository for persistent counter-parts of RelevancyRuleGroupRule- Since:
- Search Service 2.2.0, Release Train 2.2.0
- Author:
- karanjariwala
-
Method Summary
Modifier and TypeMethodDescriptionbooleanexistsByRelevancyRuleGroupContextIdAndRelevancyRuleContextId(@NonNull String relevancyRuleGroupContextId, @NonNull String relevancyRuleContextId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Returns whether there is a relevancy rule group/relevancy rule relationship for the givenRelevancyRuleGroupandRelevancyRulein the data store.findAllByRelevancyRuleGroupContextId(@NonNull String relevancyGroupContextId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieves a list ofRelevancyRuleGroupRulerelationships for the providedRelevancyRuleGroupID.@NonNull org.springframework.data.domain.Page<D>findByRelevancyRuleGroupContextId(@NonNull String relevancyGroupContextId, 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 ofRelevancyRuleGroupRulesby relevancy group ID.Methods inherited from interface com.broadleafcommerce.common.messaging.notification.NotificationStateRepository
findNotificationReadyMembers, setFailedNotificationAttempt, setNotificationAcknowledgedMethods 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
-
findByRelevancyRuleGroupContextId
@Policy(operationTypes=READ) @NonNull @NonNull org.springframework.data.domain.Page<D> findByRelevancyRuleGroupContextId(@NonNull @NonNull String relevancyGroupContextId, @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 ofRelevancyRuleGroupRulesby relevancy group ID.- Parameters:
relevancyGroupContextId- the relevancy group ID to filter onfilters- 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
RelevancyRuleGroupRulesby relevancy group ID
-
existsByRelevancyRuleGroupContextIdAndRelevancyRuleContextId
@Policy(operationTypes=READ) boolean existsByRelevancyRuleGroupContextIdAndRelevancyRuleContextId(@NonNull @NonNull String relevancyRuleGroupContextId, @NonNull @NonNull String relevancyRuleContextId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Returns whether there is a relevancy rule group/relevancy rule relationship for the givenRelevancyRuleGroupandRelevancyRulein the data store.- Parameters:
relevancyRuleGroupContextId- theRelevancyRuleGroupcontext IDrelevancyRuleContextId- theRelevancyRulecontext IDcontextInfo- context information around sandbox and multitenant state- Returns:
- true if a relationship was found between the relevancy rule and relevancy rule group, false otherwise
-
findAllByRelevancyRuleGroupContextId
@Policy(operationTypes=READ) List<D> findAllByRelevancyRuleGroupContextId(@NonNull @NonNull String relevancyGroupContextId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieves a list ofRelevancyRuleGroupRulerelationships for the providedRelevancyRuleGroupID.- Parameters:
relevancyGroupContextId- theRelevancyRuleGroupcontext IDcontextInfo- context information around sandbox and multitenant state- Returns:
- a list of
RelevancyRuleGroupRulerelationships for the providedRelevancyRuleGroupID
-