Package org.ametys.web.search.misc
Class SiteQueryHelper
- java.lang.Object
-
- org.ametys.web.search.misc.SiteQueryHelper
-
- All Implemented Interfaces:
Component
,Contextualizable
,Serviceable
public class SiteQueryHelper extends Object implements Component, Serviceable, Contextualizable
Helper for getting aSiteQuery
from a user-submitted value.
-
-
Constructor Summary
Constructors Constructor Description SiteQueryHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private Map<String,Object>
_parseSite(Object value, String criterionId)
void
contextualize(Context context)
Query
getQuery(Object value, Query.Operator operator, Map<String,Object> contextualParameters, String criterionId)
void
service(ServiceManager manager)
-
-
-
Constructor Detail
-
SiteQueryHelper
public SiteQueryHelper()
-
-
Method Detail
-
contextualize
public void contextualize(Context context) throws ContextException
- Specified by:
contextualize
in interfaceContextualizable
- Throws:
ContextException
-
service
public void service(ServiceManager manager) throws ServiceException
- 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
-
-