Package org.ametys.web.frontoffice
Interface QueryAdapterFOSearch
- All Superinterfaces:
Prioritizable
- All Known Implementing Classes:
WorkspacesQueryAdapterFOSearch
Modify the FO search query.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Maximum priority.static final int
Minimum priority. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDocumentType
(List<String> documentTypes) Add document typemodifyQuery
(Query query, Request request, Collection<String> siteNames, String language) Modify the FO search query.modifyQueryFacets
(Set<FrontOfficeSearcherFactory.QueryFacet> queryFacets, Request request) Modify the query facetsmodifySitemapQueryFilter
(Query sitemapQuery, Request request, Collection<String> siteNames, String language) Modify the sitemap 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 Details
-
MIN_PRIORITY
Minimum priority.- See Also:
-
MAX_PRIORITY
Maximum priority.- See Also:
-
-
Method Details
-
modifyQuery
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
Add document type- Parameters:
documentTypes
- the document types
-