Class WorkspacesQueryAdapterFOSearch
java.lang.Object
org.ametys.plugins.workspaces.search.query.WorkspacesQueryAdapterFOSearch
- All Implemented Interfaces:
Prioritizable
,QueryAdapterFOSearch
The query adapter to handle the "with workspaces" FO search service parameter
-
Field Summary
Fields inherited from interface org.ametys.web.frontoffice.QueryAdapterFOSearch
MAX_PRIORITY, MIN_PRIORITY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addDocumentType
(List<String> documentTypes) Add document typeint
Get the priority for the component.modifyQuery
(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.
-
Constructor Details
-
WorkspacesQueryAdapterFOSearch
public WorkspacesQueryAdapterFOSearch()
-
-
Method Details
-
getPriority
Description copied from interface:Prioritizable
Get the priority for the component. On components usingPrioritizable
interface, each implementation define the order. In most cases, less is the number, more prior is the component.- Specified by:
getPriority
in interfacePrioritizable
- Returns:
- the priority
-
modifyQuery
public Query modifyQuery(Query query, Request request, Collection<String> siteNames, String language) Description copied from interface:QueryAdapterFOSearch
Modify the FO search query.- Specified by:
modifyQuery
in interfaceQueryAdapterFOSearch
- Parameters:
query
- the initial queryrequest
- The requestsiteNames
- The site names.language
- The language- Returns:
- the new modify query
-
modifySiteQueryFilter
public Query modifySiteQueryFilter(Query siteQuery, Request request, Collection<String> siteNames, String language) Description copied from interface:QueryAdapterFOSearch
Modify the site query.- Specified by:
modifySiteQueryFilter
in interfaceQueryAdapterFOSearch
- Parameters:
siteQuery
- the initial site queryrequest
- The requestsiteNames
- The site names.language
- The language- Returns:
- the new modify site query
-
modifySitemapQueryFilter
public Query modifySitemapQueryFilter(Query sitemapQuery, Request request, Collection<String> siteNames, String language) Description copied from interface:QueryAdapterFOSearch
Modify the sitemap query.- Specified by:
modifySitemapQueryFilter
in interfaceQueryAdapterFOSearch
- Parameters:
sitemapQuery
- the initial sitemap queryrequest
- The requestsiteNames
- The site names.language
- The language- Returns:
- the new modify site query
-
modifyQueryFacets
public Set<FrontOfficeSearcherFactory.QueryFacet> modifyQueryFacets(Set<FrontOfficeSearcherFactory.QueryFacet> queryFacets, Request request) Description copied from interface:QueryAdapterFOSearch
Modify the query facets- Specified by:
modifyQueryFacets
in interfaceQueryAdapterFOSearch
- Parameters:
queryFacets
- the initial query facetsrequest
- the request- Returns:
- the new query facets
-
addDocumentType
Description copied from interface:QueryAdapterFOSearch
Add document type- Specified by:
addDocumentType
in interfaceQueryAdapterFOSearch
- Parameters:
documentTypes
- the document types
-