public class SiteQueryHelper extends Object implements Component, Serviceable, Contextualizable
SiteQuery
from a user-submitted value.Modifier and Type | Field and Description |
---|---|
private Context |
_context |
private JSONUtils |
_jsonUtils |
static String |
ROLE
Avalon Role
|
Constructor and Description |
---|
SiteQueryHelper() |
Modifier and Type | Method and 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) |
private JSONUtils _jsonUtils
public SiteQueryHelper()
public void contextualize(Context context) throws ContextException
contextualize
in interface Contextualizable
ContextException
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
public Query getQuery(Object value, Query.Operator operator, Map<String,Object> contextualParameters, String criterionId)
value
- a user-submitted valueoperator
- The operatorcontextualParameters
- the search contextual parameters.criterionId
- The criterion id (for logging purposes only)Query