Interface SettingsRelevancyRuleGroupRepository<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:
JpaSettingsRelevancyRuleGroupRepository<D>
@NoRepositoryBean
public interface SettingsRelevancyRuleGroupRepository<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
SettingsRelevancyRuleGroup
- Since:
- Search Service 2.2.0, Release Train 2.2.0
- Author:
- karanjariwala
-
Method Summary
Modifier and TypeMethodDescriptionboolean
existsBySearchSettingsContextIdAndGroupIndexableType
(String searchSettingsContextId, String groupIndexableType, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Returns whether there is a relationship for the given relevancy rule group type and search settings in the data store.findAllBySearchSettingsContextIdAndGroupIndexableType
(String searchSettingsContextId, String groupIndexableType, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Returns allSettingsRelevancyRuleGroups
by indexable type and search settings id.org.springframework.data.domain.Page<D>
findBySearchSettingsContextId
(@NonNull String searchSettingsContextId, 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 settings relevancy rule groups by search settings 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
-
findBySearchSettingsContextId
@Policy(operationTypes=READ) @NonNull org.springframework.data.domain.Page<D> findBySearchSettingsContextId(@NonNull @NonNull String searchSettingsContextId, @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 settings relevancy rule groups by search settings ID.- Parameters:
searchSettingsContextId
- the search settings 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 settings relevancy rule groups by search settings ID
-
existsBySearchSettingsContextIdAndGroupIndexableType
@Policy(operationTypes=READ) boolean existsBySearchSettingsContextIdAndGroupIndexableType(@NonNull String searchSettingsContextId, @NonNull String groupIndexableType, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Returns whether there is a relationship for the given relevancy rule group type and search settings in the data store.- Parameters:
searchSettingsContextId
- the search settings context IDgroupIndexableType
- the indexable type of the relevancy rule groupcontextInfo
- context surrounding sandboxing and multitenant state- Returns:
- true if a relationship was found between the relevancy rule group type and search settings, false otherwise
-
findAllBySearchSettingsContextIdAndGroupIndexableType
@Policy(operationTypes=READ) List<D> findAllBySearchSettingsContextIdAndGroupIndexableType(@NonNull String searchSettingsContextId, @NonNull String groupIndexableType, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Returns allSettingsRelevancyRuleGroups
by indexable type and search settings id.- Parameters:
searchSettingsContextId
- the search settings context IDgroupIndexableType
- the indexable type of the relevancy rule groupcontextInfo
- context surrounding sandboxing and multitenant state- Returns:
- All
SettingsRelevancyRuleGroups
by indexable type and search settings id.
-