Package org.ametys.web.frontoffice
Interface QueryAdapterFOSearch
-
- All Superinterfaces:
Prioritizable
- All Known Implementing Classes:
WorkspacesQueryAdapterFOSearch
public interface QueryAdapterFOSearch extends Prioritizable
Modify the FO search query.
-
-
Field Summary
Fields Modifier and Type Field Description static int
MAX_PRIORITY
Maximum priority.static int
MIN_PRIORITY
Minimum priority.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addDocumentType(List<String> documentTypes)
Add document typeQuery
modifyQuery(Query query, Request request, Collection<String> siteNames, String language)
Modify the FO search query.Set<FrontOfficeSearcherFactory.QueryFacet>
modifyQueryFacets(Set<FrontOfficeSearcherFactory.QueryFacet> queryFacets, Request request)
Modify the query facetsQuery
modifySitemapQueryFilter(Query sitemapQuery, Request request, Collection<String> siteNames, String language)
Modify the sitemap query.Query
modifySiteQueryFilter(Query siteQuery, Request request, Collection<String> siteNames, String language)
Modify the site query.-
Methods inherited from interface org.ametys.runtime.plugin.component.Prioritizable
getPriority
-
-
-
-
Field Detail
-
MIN_PRIORITY
static final int MIN_PRIORITY
Minimum priority.- See Also:
- Constant Field Values
-
MAX_PRIORITY
static final int MAX_PRIORITY
Maximum priority.- See Also:
- Constant Field Values
-
-
Method Detail
-
modifyQuery
Query modifyQuery(Query query, Request request, Collection<String> siteNames, String language)
Modify the FO search query.- Parameters:
query
- the initial queryrequest
- The requestsiteNames
- The site names.language
- The language- Returns:
- the new modify query
-
modifySiteQueryFilter
Query modifySiteQueryFilter(Query siteQuery, Request request, Collection<String> siteNames, String language)
Modify the site query.- Parameters:
siteQuery
- the initial site queryrequest
- The requestsiteNames
- The site names.language
- The language- Returns:
- the new modify site query
-
modifySitemapQueryFilter
Query modifySitemapQueryFilter(Query sitemapQuery, Request request, Collection<String> siteNames, String language)
Modify the sitemap query.- Parameters:
sitemapQuery
- the initial sitemap queryrequest
- The requestsiteNames
- The site names.language
- The language- Returns:
- the new modify site query
-
modifyQueryFacets
Set<FrontOfficeSearcherFactory.QueryFacet> modifyQueryFacets(Set<FrontOfficeSearcherFactory.QueryFacet> queryFacets, Request request)
Modify the query facets- Parameters:
queryFacets
- the initial query facetsrequest
- the request- Returns:
- the new query facets
-
addDocumentType
void addDocumentType(List<String> documentTypes)
Add document type- Parameters:
documentTypes
- the document types
-
-