Package org.ametys.cms.search.solr
Class GetSolrQueryAction
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.apache.cocoon.acting.AbstractAction
-
- org.apache.cocoon.acting.ServiceableAction
-
- org.ametys.cms.search.solr.GetSolrQueryAction
-
- All Implemented Interfaces:
Component
,LogEnabled
,Serviceable
,Action
public class GetSolrQueryAction extends ServiceableAction
Get a solr query string from a search tool.
-
-
Field Summary
Fields Modifier and Type Field Description protected GetQueryFromJSONHelper
_getQueryFromJSONHelper
the helper to get query infos from JSONprotected ServerCommHelper
_serverCommHelper
The server comm helper-
Fields inherited from class org.apache.cocoon.acting.ServiceableAction
manager
-
Fields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP
-
-
Constructor Summary
Constructors Constructor Description GetSolrQueryAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map
act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters)
void
service(ServiceManager smanager)
protected void
setFacets(Map<String,Object> queryResults, Collection<SearchUICriterion> facetedCriteria)
Set the facet list into the query results.-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
Field Detail
-
_serverCommHelper
protected ServerCommHelper _serverCommHelper
The server comm helper
-
_getQueryFromJSONHelper
protected GetQueryFromJSONHelper _getQueryFromJSONHelper
the helper to get query infos from JSON
-
-
Constructor Detail
-
GetSolrQueryAction
public GetSolrQueryAction()
-
-
Method Detail
-
service
public void service(ServiceManager smanager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classServiceableAction
- Throws:
ServiceException
-
act
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception
- Throws:
Exception
-
setFacets
protected void setFacets(Map<String,Object> queryResults, Collection<SearchUICriterion> facetedCriteria)
Set the facet list into the query results.- Parameters:
queryResults
- the query results.facetedCriteria
- the facets to put in the results.
-
-