Class DefaultSettingsFacetGroupService<P extends com.broadleafcommerce.search.api.domain.SettingsFacetGroup>
java.lang.Object
com.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService<P>
com.broadleafcommerce.data.tracking.core.service.BaseRsqlCrudEntityService<P>
com.broadleafcommerce.search.core.service.settingsfacetgroup.DefaultSettingsFacetGroupService<P>
- All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.service.CrudEntityService<P>,com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService<P>,SettingsFacetGroupService<P>
public class DefaultSettingsFacetGroupService<P extends com.broadleafcommerce.search.api.domain.SettingsFacetGroup>
extends com.broadleafcommerce.data.tracking.core.service.BaseRsqlCrudEntityService<P>
implements SettingsFacetGroupService<P>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefaultSettingsFacetGroupService(SettingsFacetGroupRepository<com.broadleafcommerce.data.tracking.core.Trackable> repository, com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityHelper helper, com.broadleafcommerce.common.extension.cache.CacheStateManager cacheStateManager) -
Method Summary
Modifier and TypeMethodDescriptionbooleanexistsBySettingsIdAndGroupIndexableType(String searchSettingsId, String groupIndexableType, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Returns whether there is a relationship for the given facet group indexable type and search settings in the data store.protected com.broadleafcommerce.common.extension.cache.CacheStateManagerprotected SettingsFacetGroupRepository<com.broadleafcommerce.data.tracking.core.Trackable>readAllBySearchSettingsContextIdAndIndexableType(String searchSettingsContextId, String indexableType, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Returns allSettingsFacetGroupsby 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 ofSettingsFacetGrouprelationships associated with the givenSearchSettingsID.Methods inherited from class com.broadleafcommerce.data.tracking.core.service.BaseRsqlCrudEntityService
getRsqlHelper, readAll, readAll, readAll, readAllMethods inherited from class com.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService
convertFromPersistentDomain, convertToPersistentDomain, create, createAll, createAllAllowingPartialSuccess, delete, getHelper, getSortPositionStrategy, readAll, readAll, readAll, readAllByContextId, readByContextId, replace, replaceAll, replaceAllAllowingPartialSuccess, setSortPositionStrategy, update, updateAll, updateAllAllowingPartialSuccess, updateSortMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
-
Field Details
-
CACHE_FACET_GROUP_BY_SEARCH_SETTINGS_AND_INDEXABLE_TYPE
- See Also:
-
-
Constructor Details
-
DefaultSettingsFacetGroupService
public DefaultSettingsFacetGroupService(SettingsFacetGroupRepository<com.broadleafcommerce.data.tracking.core.Trackable> repository, com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityHelper helper, @Nullable com.broadleafcommerce.common.extension.cache.CacheStateManager cacheStateManager)
-
-
Method Details
-
readBySearchSettingsContextId
public 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) Description copied from interface:SettingsFacetGroupServiceReads a page ofSettingsFacetGrouprelationships associated with the givenSearchSettingsID.- Specified by:
readBySearchSettingsContextIdin interfaceSettingsFacetGroupService<P extends com.broadleafcommerce.search.api.domain.SettingsFacetGroup>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
SettingsFacetGrouprelationships associated with the givenSearchSettingsID
-
existsBySettingsIdAndGroupIndexableType
public boolean existsBySettingsIdAndGroupIndexableType(String searchSettingsId, String groupIndexableType, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:SettingsFacetGroupServiceReturns whether there is a relationship for the given facet group indexable type and search settings in the data store.- Specified by:
existsBySettingsIdAndGroupIndexableTypein interfaceSettingsFacetGroupService<P extends com.broadleafcommerce.search.api.domain.SettingsFacetGroup>- Parameters:
searchSettingsId- the search settings context IDgroupIndexableType- the indexable type of the facet groupcontextInfo- context surrounding sandboxing and multitenant state- Returns:
- true if a relationship was found between the facet group type and search settings, false otherwise
-
readAllBySearchSettingsContextIdAndIndexableType
public List<P> readAllBySearchSettingsContextIdAndIndexableType(String searchSettingsContextId, String indexableType, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:SettingsFacetGroupServiceReturns allSettingsFacetGroupsby indexable type and search settings id.- Specified by:
readAllBySearchSettingsContextIdAndIndexableTypein interfaceSettingsFacetGroupService<P extends com.broadleafcommerce.search.api.domain.SettingsFacetGroup>- Parameters:
searchSettingsContextId- the search settings context IDindexableType- the indexable type of the facet groupcontextInfo- context surrounding sandboxing and multitenant state- Returns:
- All
SettingsFacetGroupsby indexable type and search settings id.
-
getRepository
@NonNull protected SettingsFacetGroupRepository<com.broadleafcommerce.data.tracking.core.Trackable> getRepository()- Overrides:
getRepositoryin classcom.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService<P extends com.broadleafcommerce.search.api.domain.SettingsFacetGroup>
-
getCacheStateManager
@Nullable protected com.broadleafcommerce.common.extension.cache.CacheStateManager getCacheStateManager()
-