Class ThesaurusExtractionComponent
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.ametys.plugins.extraction.component.AbstractExtractionComponent
org.ametys.plugins.extraction.component.ThesaurusExtractionComponent
- All Implemented Interfaces:
ExtractionComponent,Configurable,LogEnabled,Serviceable
This class represents a thesaurus component of the extraction module
-
Field Summary
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 -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(Configuration thesaurus) voidexecuteComponent(ContentHandler contentHandler, ExtractionExecutionContext context) Execute the extraction of the componentRetrieves the details of the component for treeRetrieves the list of content types defined for this componentprotected StringRetrieves the default tag nameprotected StringRetrieves the prefix to use in exceptions thrown by this componentintRetrieves the maximum level of specific terms to look atRetrieves the component microthesaurus idvoidservice(ServiceManager serviceManager) voidsetMaxLevel(int maxLevel) Set the maximum level of specific terms to look atvoidsetMicroThesaurusId(String microThesaurusId) Set the microthesaurus idMethods inherited from class org.ametys.plugins.extraction.component.AbstractExtractionComponent
addSubComponent, execute, executeSubComponents, getSubComponents, getTagName, prepareComponentExecution, setTagNameMethods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Constructor Details
-
ThesaurusExtractionComponent
public ThesaurusExtractionComponent()
-
-
Method Details
-
service
- Specified by:
servicein interfaceServiceable- Overrides:
servicein classAbstractExtractionComponent- Throws:
ServiceException
-
configure
- Specified by:
configurein interfaceConfigurable- Overrides:
configurein classAbstractExtractionComponent- Throws:
ConfigurationException
-
executeComponent
public void executeComponent(ContentHandler contentHandler, ExtractionExecutionContext context) throws Exception Description copied from class:AbstractExtractionComponentExecute the extraction of the component- Specified by:
executeComponentin classAbstractExtractionComponent- Parameters:
contentHandler- result documentcontext- context of the extraction component- Throws:
Exception- if an error occurs
-
getContentTypes
Description copied from interface:ExtractionComponentRetrieves the list of content types defined for this component- Returns:
- a list of content types id
-
getComponentDetailsForTree
Description copied from interface:ExtractionComponentRetrieves the details of the component for tree- Specified by:
getComponentDetailsForTreein interfaceExtractionComponent- Overrides:
getComponentDetailsForTreein classAbstractExtractionComponent- Returns:
- a
Mapcontaining component details
-
getDefaultTagName
Description copied from class:AbstractExtractionComponentRetrieves the default tag name- Specified by:
getDefaultTagNamein classAbstractExtractionComponent- Returns:
- the default tag name
-
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
-
getMicroThesaurusId
Retrieves the component microthesaurus id- Returns:
- The microthesaurus id
-
setMicroThesaurusId
Set the microthesaurus id- Parameters:
microThesaurusId- The microthesaurus id to set
-
getMaxLevel
Retrieves the maximum level of specific terms to look at- Returns:
- The maximum level
-
setMaxLevel
Set the maximum level of specific terms to look at- Parameters:
maxLevel- The maximum level to set
-