public class DocSearchGenerator extends SearchGenerator
SearchAction, groups by selected fields.| Modifier and Type | Field and Description | 
|---|---|
private ContentTypeExtensionPoint | 
_contentTypeExtensionPoint  | 
private ContentTypesHelper | 
_contentTypesHelper  | 
private GroupSearchContentHelper | 
_groupSearchContentHelper  | 
_contentRSH, _context, _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 ContentType | 
_getCommonContentType(Map<String,Object> jsParameters,
                     SearchUIModel uiModel,
                     Map<String,Object> contextualParameters)  | 
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)
Sax a set of contents 
 | 
void | 
service(ServiceManager smanager)  | 
contextualize, generate, getColumnsFromParameters, saxContent, switchToLabeldisposerecycle, setupsetConsumer, setContentHandler, setLexicalHandlerenableLogging, getLogger, setupLogger, setupLogger, setupLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetConsumerprivate ContentTypesHelper _contentTypesHelper
private ContentTypeExtensionPoint _contentTypeExtensionPoint
private 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) 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.SAXException - if a error occurred during saxAmetysRepositoryException - if a error occurredIOException - if a error occurredProcessingException - if a error occurredprivate ContentType _getCommonContentType(Map<String,Object> jsParameters, SearchUIModel uiModel, Map<String,Object> contextualParameters)
private 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