Interface SettingsRelevancyRuleGroupService<P extends com.broadleafcommerce.search.api.domain.SettingsRelevancyRuleGroup>
- All Superinterfaces:
com.broadleafcommerce.data.tracking.core.service.CrudEntityService<P>
,com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService<P>
- All Known Implementing Classes:
DefaultSettingsRelevancyRuleGroupService
public interface SettingsRelevancyRuleGroupService<P extends com.broadleafcommerce.search.api.domain.SettingsRelevancyRuleGroup>
extends com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService<P>
Service interface for
SettingsRelevancyRuleGroup
- Since:
- Search Service 2.2.0, Release Train 2.2.0
- Author:
- karanjariwala
-
Method Summary
Modifier and TypeMethodDescriptionboolean
existsBySettingsIdAndGroupIndexableType
(String searchSettingsId, @NonNull String groupIndexableType, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Returns whether there is a relationship for the given relevancy rule group indexable type and search settings in the data store.readAllBySearchSettingsContextIdAndIndexableType
(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<P>
readBySearchSettingsContextId
(String searchSettingsContextId, org.springframework.data.domain.Pageable page, cz.jirutka.rsql.parser.ast.Node filters, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Reads a page ofSettingsRelevancyRuleGroup
relationships associated with the givenSearchSettings
ID.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, updateSort
Methods inherited from interface com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService
readAll, readAll, readAll, readAll
-
Method Details
-
readBySearchSettingsContextId
org.springframework.data.domain.Page<P> readBySearchSettingsContextId(String searchSettingsContextId, @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 ofSettingsRelevancyRuleGroup
relationships associated with the givenSearchSettings
ID.- Parameters:
page
- 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
SettingsRelevancyRuleGroup
relationships associated with the givenSearchSettings
ID
-
existsBySettingsIdAndGroupIndexableType
boolean existsBySettingsIdAndGroupIndexableType(String searchSettingsId, @NonNull @NonNull String groupIndexableType, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Returns whether there is a relationship for the given relevancy rule group indexable type and search settings in the data store.- Parameters:
searchSettingsId
- 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
-
readAllBySearchSettingsContextIdAndIndexableType
List<P> readAllBySearchSettingsContextIdAndIndexableType(String searchSettingsContextId, 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.
-