Class MappingQueryExtractionComponent
- java.lang.Object
 - 
- org.apache.avalon.framework.logger.AbstractLogEnabled
 - 
- org.ametys.plugins.extraction.component.AbstractExtractionComponent
 - 
- org.ametys.plugins.extraction.component.AbstractSolrExtractionComponent
 - 
- org.ametys.plugins.extraction.component.MappingQueryExtractionComponent
 
 
 
 
 
- 
- All Implemented Interfaces:
 ExtractionComponent,Configurable,LogEnabled,Serviceable
public class MappingQueryExtractionComponent extends AbstractSolrExtractionComponent
This class represents a mapping query component of the extraction module 
- 
- 
Field Summary
- 
Fields inherited from class org.ametys.plugins.extraction.component.AbstractSolrExtractionComponent
_clauses, _contentTypes, _getQueryFromJSONHelper, _jsonUtils, _queryReferenceId 
- 
Fields inherited from class org.ametys.plugins.extraction.component.AbstractExtractionComponent
_contentTypeExtensionPoint, _contentTypesHelper, _subComponents, _tagName, _thesaurusDAO, EXTRACTION_ITEM_PATH_SEPARATOR, JOIN_HIERARCHY_ELEMENT, JOIN_HIERARCHY_SEPARATOR 
 - 
 
- 
Constructor Summary
Constructors Constructor Description MappingQueryExtractionComponent() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(Configuration configuration)Map<String,Object>getComponentDetailsForTree()Retrieves the details of the component for treeprotected StringgetDefaultTagName()Retrieves the default tag nameprotected StringgetLogsPrefix()Retrieves the prefix to use in exceptions thrown by this componentprotected voidprocessContents(Iterable<Content> contents, ContentHandler contentHandler, ExtractionExecutionContext context)Process result contents to format the result document- 
Methods inherited from class org.ametys.plugins.extraction.component.AbstractSolrExtractionComponent
_getAttributeTypeId, addClauses, addContentTypes, computeReferencedQueryInfos, executeComponent, getClauses, getContents, getContentSearcher, getContentTypes, getQueryReferenceId, prepareComponentExecution, service, setQueryReferenceId 
- 
Methods inherited from class org.ametys.plugins.extraction.component.AbstractExtractionComponent
addSubComponent, execute, executeSubComponents, getSubComponents, getTagName, setTagName 
- 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
MappingQueryExtractionComponent
public MappingQueryExtractionComponent()
 
 - 
 
- 
Method Detail
- 
configure
public void configure(Configuration configuration) throws ConfigurationException
- Specified by:
 configurein interfaceConfigurable- Overrides:
 configurein classAbstractSolrExtractionComponent- Throws:
 ConfigurationException
 
- 
processContents
protected void processContents(Iterable<Content> contents, ContentHandler contentHandler, ExtractionExecutionContext context) throws Exception
Description copied from class:AbstractSolrExtractionComponentProcess result contents to format the result document- Specified by:
 processContentsin classAbstractSolrExtractionComponent- Parameters:
 contents- search resultscontentHandler- result documentcontext- component execution context- Throws:
 Exception- if an error occurs
 
- 
getComponentDetailsForTree
public Map<String,Object> getComponentDetailsForTree()
Description copied from interface:ExtractionComponentRetrieves the details of the component for tree- Specified by:
 getComponentDetailsForTreein interfaceExtractionComponent- Overrides:
 getComponentDetailsForTreein classAbstractSolrExtractionComponent- Returns:
 - a 
Mapcontaining component details 
 
- 
getDefaultTagName
protected String getDefaultTagName()
Description copied from class:AbstractExtractionComponentRetrieves the default tag name- Specified by:
 getDefaultTagNamein classAbstractExtractionComponent- Returns:
 - the default tag name
 
 
- 
getLogsPrefix
protected String getLogsPrefix()
Description copied from class:AbstractExtractionComponentRetrieves the prefix to use in exceptions thrown by this component- Specified by:
 getLogsPrefixin classAbstractExtractionComponent- Returns:
 - the prefix for exceptions
 
 
 - 
 
 -