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 Type
    Method
    Description
    boolean
    existsByRelevancyRuleGroupContextIdAndRelevancyRuleContextId(@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 given RelevancyRuleGroup and RelevancyRule in the data store.
    findAllByRelevancyRuleGroupContextId(@NonNull String relevancyGroupContextId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Retrieves a list of RelevancyRuleGroupRule relationships for the provided RelevancyRuleGroup ID.
    @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 of RelevancyRuleGroupRules by relevancy group ID.

    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

    • 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 of RelevancyRuleGroupRules by relevancy group ID.
      Parameters:
      relevancyGroupContextId - the relevancy group ID to filter on
      filters - additional filters to apply in the query. Should be EmptyNode if no * additional filters should be applied.
      page - the requested page of results from the database
      contextInfo - context information around sandbox and multitenant state
      Returns:
      a paged list of RelevancyRuleGroupRules by 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 given RelevancyRuleGroup and RelevancyRule in the data store.
      Parameters:
      relevancyRuleGroupContextId - the RelevancyRuleGroup context ID
      relevancyRuleContextId - the RelevancyRule context ID
      contextInfo - 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 of RelevancyRuleGroupRule relationships for the provided RelevancyRuleGroup ID.
      Parameters:
      relevancyGroupContextId - the RelevancyRuleGroup context ID
      contextInfo - context information around sandbox and multitenant state
      Returns:
      a list of RelevancyRuleGroupRule relationships for the provided RelevancyRuleGroup ID