Class MacroExtractor
- java.lang.Object
-
- com.atlassian.confluence.plugins.macrousage.extractor.MacroExtractor
-
- All Implemented Interfaces:
Extractor2
public class MacroExtractor extends Object implements Extractor2
Extractor that indexes macro usages on a content entity object * @since 7.17
-
-
Constructor Summary
Constructors Constructor Description MacroExtractor(XhtmlContent xhtmlContent, com.atlassian.renderer.v2.macro.MacroManager macroManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<FieldDescriptor>
extractFields(Object searchable)
Extract macros from the searchable object.StringBuilder
extractText(Object searchable)
In the context of macro extraction this method is not needed.
-
-
-
Constructor Detail
-
MacroExtractor
public MacroExtractor(XhtmlContent xhtmlContent, com.atlassian.renderer.v2.macro.MacroManager macroManager)
-
-
Method Detail
-
extractText
public StringBuilder extractText(Object searchable)
In the context of macro extraction this method is not needed. Therefore, it returns an empty string buffer.- Specified by:
extractText
in interfaceExtractor2
- Parameters:
searchable
- a searchable object- Returns:
- a buffer of text
-
extractFields
public Collection<FieldDescriptor> extractFields(Object searchable)
Extract macros from the searchable object.- Specified by:
extractFields
in interfaceExtractor2
- Parameters:
searchable
- a searchable object- Returns:
- collection of fields extracted from the searchable object
-
-