Package org.ametys.cms.search.solr
Class SolrQuerySearchAction.SearchValues
- java.lang.Object
-
- org.ametys.cms.search.solr.SolrQuerySearchAction.SearchValues
-
- Enclosing class:
- SolrQuerySearchAction
protected class SolrQuerySearchAction.SearchValues extends Object
Object representing search values.
-
-
Field Summary
Fields Modifier and Type Field Description protected Set<String>_baseContentTypeIdsThe base content types (common content types)protected String_baseQueryThe base queryprotected Collection<ColumnHelper.Column>_columnsThe columnsprotected Set<String>_contentTypeIdsThe content typesprotected Collection<String>_facetsThe facet fieldsprotected Map<String,List<String>>_facetValuesThe facet valuesprotected String_groupInfoThe groupsprotected Map<String,Object>_jsParametersThe JS parametersprotected String_sortInfoThe sortsprotected Map<String,Object>_valuesThe values from JS parametersprotected Set<Integer>_wfStepsThe workflow steps
-
Constructor Summary
Constructors Modifier Constructor Description protectedSearchValues(Map<String,Object> jsParameters)Constructor to build the object from JS parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void_parseColumns()private void_parseContentTypes()private void_parseFacets()private void_parseFacetValues()private void_parseGroupInfo()private void_parseQuery()private void_parseSortInfo()private void_parseValues()private void_parseWorkflowSteps()protected Set<String>getBaseContentTypes()Get the base content types (extract from content types, it's the common ancestors).protected StringgetBaseQuery()Get the base query.protected Collection<ColumnHelper.Column>getColumns()Get the columns.protected Set<String>getContentTypes()Get the content types.protected Collection<String>getFacets()Get the facet fields.protected Map<String,List<String>>getFacetValues()Get the facet values.protected StringgetGroupInfo()Get the group info.protected StringgetSortInfo()Get the sort info.protected Map<String,Object>getValues()Get the values from the JS parameters.protected Set<Integer>getWorkflowSteps()Get the workflow steps.
-
-
-
Field Detail
-
_jsParameters
protected Map<String,Object> _jsParameters
The JS parameters
-
_baseQuery
protected String _baseQuery
The base query
-
_contentTypeIds
protected Set<String> _contentTypeIds
The content types
-
_baseContentTypeIds
protected Set<String> _baseContentTypeIds
The base content types (common content types)
-
_facets
protected Collection<String> _facets
The facet fields
-
_facetValues
protected Map<String,List<String>> _facetValues
The facet values
-
_columns
protected Collection<ColumnHelper.Column> _columns
The columns
-
_groupInfo
protected String _groupInfo
The groups
-
-
Constructor Detail
-
SearchValues
protected SearchValues(Map<String,Object> jsParameters)
Constructor to build the object from JS parameters.- Parameters:
jsParameters- The JS parameters
-
-
Method Detail
-
_parseValues
private void _parseValues()
-
_parseContentTypes
private void _parseContentTypes()
-
_parseQuery
private void _parseQuery()
-
_parseFacets
private void _parseFacets()
-
_parseFacetValues
private void _parseFacetValues()
-
_parseColumns
private void _parseColumns()
-
_parseSortInfo
private void _parseSortInfo()
-
_parseGroupInfo
private void _parseGroupInfo()
-
_parseWorkflowSteps
private void _parseWorkflowSteps()
-
getBaseQuery
protected String getBaseQuery()
Get the base query.- Returns:
- the base query
-
getColumns
protected Collection<ColumnHelper.Column> getColumns()
Get the columns.- Returns:
- the columns
-
getBaseContentTypes
protected Set<String> getBaseContentTypes()
Get the base content types (extract from content types, it's the common ancestors).- Returns:
- the base content types
-
getContentTypes
protected Set<String> getContentTypes()
Get the content types.- Returns:
- the content types
-
getWorkflowSteps
protected Set<Integer> getWorkflowSteps()
Get the workflow steps.- Returns:
- the workflow steps
-
getSortInfo
protected String getSortInfo()
Get the sort info.- Returns:
- the sort info
-
getGroupInfo
protected String getGroupInfo()
Get the group info.- Returns:
- the group info
-
getFacets
protected Collection<String> getFacets()
Get the facet fields.- Returns:
- the facet fields
-
getFacetValues
protected Map<String,List<String>> getFacetValues()
Get the facet values.- Returns:
- the facet values
-
-