Interface RelevancyRuleGroupRuleService<P extends com.broadleafcommerce.search.api.domain.RelevancyRuleGroupRule>
- All Superinterfaces:
com.broadleafcommerce.data.tracking.core.service.CrudEntityService<P>,com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService<P>
- All Known Implementing Classes:
DefaultRelevancyRuleGroupRuleService
public interface RelevancyRuleGroupRuleService<P extends com.broadleafcommerce.search.api.domain.RelevancyRuleGroupRule>
extends com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService<P>
Service interface for
RelevancyRuleGroupRule- Since:
- Search Service 2.2.0, Release Train 2.2.0
- Author:
- karanjariwala
-
Method Summary
Modifier and TypeMethodDescriptionbooleanexistsByJoinedIds(String relevancyRuleId, String relevancyRuleGroupId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Returns whether there is a relevancy rule group/relevancy rule relationship for the given relevancy rule and relevancy rule group in the data store.readAllByRelevancyGroupId(String relevancyGroupContextId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads allRelevancyRuleGroupRulerelationships associated with the givenRelevancyRuleGroupID.org.springframework.data.domain.Page<P>readByRelevancyGroupContextId(String relevancyGroupContextId, org.springframework.data.domain.Pageable page, cz.jirutka.rsql.parser.ast.Node filters, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads a page ofRelevancyRuleGroupRulerelationships associated with the givenRelevancyRuleGroupID.Methods inherited from interface com.broadleafcommerce.data.tracking.core.service.CrudEntityService
create, createAll, createAllAllowingPartialSuccess, delete, readAll, readAll, readAll, readAllByContextId, readByContextId, replace, replaceAll, replaceAllAllowingPartialSuccess, update, updateAll, updateAllAllowingPartialSuccess, updateSortMethods inherited from interface com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService
readAll, readAll, readAll, readAll
-
Method Details
-
readByRelevancyGroupContextId
org.springframework.data.domain.Page<P> readByRelevancyGroupContextId(String relevancyGroupContextId, @Nullable org.springframework.data.domain.Pageable page, @Nullable cz.jirutka.rsql.parser.ast.Node filters, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads a page ofRelevancyRuleGroupRulerelationships associated with the givenRelevancyRuleGroupID.- Parameters:
relevancyGroupContextId- the relevancy rule group ID to filter onpage- the requested page of results from the databasefilters- additional filters to apply in the query. Should be EmptyNode if no additional filters should be applied.contextInfo- context surrounding sandboxing and multitenant state- Returns:
- a page of
RelevancyRuleGroupRulerelationships associated with the givenRelevancyRuleGroupID
-
readAllByRelevancyGroupId
List<P> readAllByRelevancyGroupId(String relevancyGroupContextId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads allRelevancyRuleGroupRulerelationships associated with the givenRelevancyRuleGroupID.- Parameters:
relevancyGroupContextId- the relevancy rule group ID to filter oncontextInfo- context surrounding sandboxing and multitenant state- Returns:
- All
RelevancyRuleGroupRulerelationships associated with the givenRelevancyRuleGroupID
-
existsByJoinedIds
boolean existsByJoinedIds(String relevancyRuleId, String relevancyRuleGroupId, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Returns whether there is a relevancy rule group/relevancy rule relationship for the given relevancy rule and relevancy rule group in the data store.- Parameters:
relevancyRuleId- the relevancy rule context IDrelevancyRuleGroupId- the relevancy rule group context IDcontextInfo- context surrounding sandboxing and multitenant state- Returns:
- true if a relationship was found between the relevancy rule and relevancy rule group, false otherwise
-