Package org.ametys.web.search.misc
Class SiteQueryHelper
java.lang.Object
org.ametys.web.search.misc.SiteQueryHelper
- All Implemented Interfaces:
Component
,Contextualizable
,Serviceable
Helper for getting a
SiteQuery
from a user-submitted value.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
contextualize
(Context context) getQuery
(Object value, Query.Operator operator, Map<String, Object> contextualParameters, String criterionId) void
service
(ServiceManager manager)
-
Field Details
-
ROLE
Avalon Role
-
-
Constructor Details
-
SiteQueryHelper
public SiteQueryHelper()
-
-
Method Details
-
contextualize
- Specified by:
contextualize
in interfaceContextualizable
- Throws:
ContextException
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
getQuery
public Query getQuery(Object value, Query.Operator operator, Map<String, Object> contextualParameters, String criterionId) - Parameters:
value
- a user-submitted valueoperator
- The operatorcontextualParameters
- the search contextual parameters.criterionId
- The criterion id (for logging purposes only)- Returns:
- The
Query
-