Interface SearchRedirectRepository<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:
JpaSearchRedirectRepository<D>
@NoRepositoryBean public interface SearchRedirectRepository<D extends com.broadleafcommerce.data.tracking.core.Trackable> extends com.broadleafcommerce.data.tracking.core.TrackableRepository<D>, com.broadleafcommerce.common.extension.DomainTypeAware
Repository to retrieve search redirects See -PagingAndSortingRepository
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<D>
findAllByIsRegexTrue(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Return all regex Search Redirects with the given indexable typeOptional<D>
findFirstByQueryMatch(String query, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Return the first Search Redirect non-regex matching indexableType and query.-
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 Detail
-
findFirstByQueryMatch
Optional<D> findFirstByQueryMatch(@Nullable String query, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Return the first Search Redirect non-regex matching indexableType and query.- Parameters:
query
- the query to find a non-regex match forcontextInfo
- context information around sandbox and multitenant state- Returns:
- the search redirects matching the query and type
-
findAllByIsRegexTrue
List<D> findAllByIsRegexTrue(@Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Return all regex Search Redirects with the given indexable type- Parameters:
contextInfo
- context information around sandbox and multitenant state- Returns:
- the search redirects matching the type
-
-