public class DocSearchGenerator extends SearchGenerator
SearchAction, groups by selected fields.| Modifier and Type | Field and Description |
|---|---|
private GroupSearchContentHelper |
_groupSearchContentHelper |
_columnHelper, _contentRSH, _contentTypeExtensionPoint, _context, _cTypeHelper, _searchModelManager, _serverCommHelper, _valuesExtractorFactory, CONTENT_VERSION_LABELmanagerobjectModel, parameters, resolver, sourcecontentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer| Constructor and Description |
|---|
DocSearchGenerator() |
| Modifier and Type | Method and Description |
|---|---|
private Collection<? extends ResultField> |
_filterResultFields(List<String> groupingFields,
List<String> columns,
Collection<? extends ResultField> resultFields) |
private List<String> |
_getGroupingFields(Map<String,Object> jsParameters) |
private void |
_saxContentForDoc(Content content,
Collection<? extends ResultField> resultFields,
Map<String,SearchUIColumn> uiResultFields,
Locale locale)
SAX the result content
|
private void |
_saxGroup(GroupSearchContent group,
int level,
Collection<? extends ResultField> resultFields,
Map<String,SearchUIColumn> uiResultFields,
Locale locale)
Sax a group of content recursively.
|
protected void |
saxContents(SearchModel model,
SearchResults<Content> results,
Collection<? extends ResultField> resultFields,
String versionLabel,
Map<String,Object> jsParameters,
Locale locale,
Map<String,Object> contextualParameters)
Sax a set of contents
|
void |
service(ServiceManager smanager) |
contextualize, generate, getColumnsFromParameters, getCommonContentType, saxContent, switchToLabeldisposerecycle, setupsetConsumer, setContentHandler, setLexicalHandlerenableLogging, getLogger, setupLogger, setupLogger, setupLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetConsumerprivate GroupSearchContentHelper _groupSearchContentHelper
public DocSearchGenerator()
public void service(ServiceManager smanager) throws ServiceException
service in interface Serviceableservice in class SearchGeneratorServiceExceptionprotected void saxContents(SearchModel model, SearchResults<Content> results, Collection<? extends ResultField> resultFields, String versionLabel, Map<String,Object> jsParameters, Locale locale, Map<String,Object> contextualParameters) throws SAXException, AmetysRepositoryException, IOException, ProcessingException
SearchGeneratorsaxContents in class SearchGeneratormodel - search modelresults - contentsresultFields - fields to retreiveversionLabel - version labeljsParameters - parameters of the searchlocale - The locale to use for localized values if content's language is null.contextualParameters - The contextual parametersSAXException - if a error occurred during saxAmetysRepositoryException - if a error occurredIOException - if a error occurredProcessingException - if a error occurredprivate Collection<? extends ResultField> _filterResultFields(List<String> groupingFields, List<String> columns, Collection<? extends ResultField> resultFields)
private void _saxGroup(GroupSearchContent group, int level, Collection<? extends ResultField> resultFields, Map<String,SearchUIColumn> uiResultFields, Locale locale) throws SAXException, AmetysRepositoryException, IOException, ProcessingException
group - group to saxlevel - current level (start with zero)resultFields - result fields to saxuiResultFields - The columns to be exportedlocale - The locale for search. Can be null.SAXException - if a error occurred during saxAmetysRepositoryException - if a error occurredIOException - if a error occurredProcessingException - if a error occurredprivate void _saxContentForDoc(Content content, Collection<? extends ResultField> resultFields, Map<String,SearchUIColumn> uiResultFields, Locale locale) throws SAXException, AmetysRepositoryException, IOException, ProcessingException
content - the resultresultFields - the result fieldsuiResultFields - The columns to be exportedlocale - The locale for search. Can be null.SAXException - if a error occurred during saxAmetysRepositoryException - if a error occurredIOException - if a error occurredProcessingException - if a error occurred