Class MacroExtractor
java.lang.Object
com.atlassian.confluence.plugins.macrousage.extractor.MacroExtractor
- All Implemented Interfaces:
Extractor2,ExtractorContextAware
Extractor that indexes macro usages on a content entity object
* @since 7.17
-
Constructor Summary
ConstructorsConstructorDescriptionMacroExtractor(XhtmlContent xhtmlContent, com.atlassian.renderer.v2.macro.MacroManager macroManager) -
Method Summary
Modifier and TypeMethodDescriptionextractFields(Object searchable) Extract macros from the searchable object.extractText(Object searchable) In the context of macro extraction this method is not needed.voidsetExtractorContext(ExtractorContext extractorContext) Set current ExtractorContext
-
Constructor Details
-
MacroExtractor
@Autowired public MacroExtractor(XhtmlContent xhtmlContent, com.atlassian.renderer.v2.macro.MacroManager macroManager)
-
-
Method Details
-
extractText
In the context of macro extraction this method is not needed. Therefore, it returns an empty string buffer.- Specified by:
extractTextin interfaceExtractor2- Parameters:
searchable- a searchable object- Returns:
- a buffer of text
-
extractFields
Extract macros from the searchable object.- Specified by:
extractFieldsin interfaceExtractor2- Parameters:
searchable- a searchable object- Returns:
- collection of fields extracted from the searchable object
-
setExtractorContext
Description copied from interface:ExtractorContextAwareSet current ExtractorContext- Specified by:
setExtractorContextin interfaceExtractorContextAware
-