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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(Configuration thesaurus) void
executeComponent
(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 String
Retrieves the default tag nameprotected String
Retrieves the prefix to use in exceptions thrown by this componentint
Retrieves the maximum level of specific terms to look atRetrieves the component microthesaurus idvoid
service
(ServiceManager serviceManager) void
setMaxLevel
(int maxLevel) Set the maximum level of specific terms to look atvoid
setMicroThesaurusId
(String microThesaurusId) Set the microthesaurus idMethods inherited from class org.ametys.plugins.extraction.component.AbstractExtractionComponent
addSubComponent, execute, executeSubComponents, getSubComponents, getTagName, prepareComponentExecution, setTagName
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Constructor Details
-
ThesaurusExtractionComponent
public ThesaurusExtractionComponent()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classAbstractExtractionComponent
- Throws:
ServiceException
-
configure
- Specified by:
configure
in interfaceConfigurable
- Overrides:
configure
in classAbstractExtractionComponent
- Throws:
ConfigurationException
-
executeComponent
public void executeComponent(ContentHandler contentHandler, ExtractionExecutionContext context) throws Exception Description copied from class:AbstractExtractionComponent
Execute the extraction of the component- Specified by:
executeComponent
in classAbstractExtractionComponent
- Parameters:
contentHandler
- result documentcontext
- context of the extraction component- Throws:
Exception
- if an error occurs
-
getContentTypes
Description copied from interface:ExtractionComponent
Retrieves the list of content types defined for this component- Returns:
- a list of content types id
-
getComponentDetailsForTree
Description copied from interface:ExtractionComponent
Retrieves the details of the component for tree- Specified by:
getComponentDetailsForTree
in interfaceExtractionComponent
- Overrides:
getComponentDetailsForTree
in classAbstractExtractionComponent
- Returns:
- a
Map
containing component details
-
getDefaultTagName
Description copied from class:AbstractExtractionComponent
Retrieves the default tag name- Specified by:
getDefaultTagName
in classAbstractExtractionComponent
- Returns:
- the default tag name
-
getLogsPrefix
Description copied from class:AbstractExtractionComponent
Retrieves the prefix to use in exceptions thrown by this component- Specified by:
getLogsPrefix
in 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
-