Interface SearchRedirectService<P extends com.broadleafcommerce.search.api.domain.SearchRedirect>
-
- All Superinterfaces:
com.broadleafcommerce.data.tracking.core.service.CrudEntityService<P>
- All Known Implementing Classes:
DefaultSearchRedirectService
public interface SearchRedirectService<P extends com.broadleafcommerce.search.api.domain.SearchRedirect> extends com.broadleafcommerce.data.tracking.core.service.CrudEntityService<P>
Service API forSearchRedirect
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<P>
readRedirectByQueryMatch(String query, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Return the first Search Redirect matching indexableType and query.List<P>
readRegexRedirects(com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Return all regex Search Redirects with the given indexable type-
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
-
-
-
-
Method Detail
-
readRedirectByQueryMatch
Optional<P> readRedirectByQueryMatch(String query, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Return the first Search Redirect matching indexableType and query.- Parameters:
query
- the query to find a match forcontextInfo
- The context information surrounding sandboxing/multitenant state- Returns:
- the search redirects matching the query and type
-
readRegexRedirects
List<P> readRegexRedirects(@Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Return all regex Search Redirects with the given indexable type- Parameters:
contextInfo
- The context information surrounding sandboxing/multitenant state- Returns:
- the search redirects matching the type
-
-