Class TitleExtractor
java.lang.Object
com.atlassian.confluence.impl.search.v2.extractor.TitleExtractor
- All Implemented Interfaces:
Extractor2
Responsible for extracting titles for various entities.
All titles are stored to allow display of search results without having to hit database for the title.
- Since:
- 7.20
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionextractFields
(Object searchable) Extract fields from the searchable object which implements one of the following interfaces:Addressable
EditableLabelable
If an argument implements both interfaces, then the title is extracted in the above listed order.extractText
(Object searchable) This method is not relevant to the title extraction and is essentially a no-op.
-
Constructor Details
-
TitleExtractor
public TitleExtractor()
-
-
Method Details
-
extractText
This method is not relevant to the title extraction and is essentially a no-op.- Specified by:
extractText
in interfaceExtractor2
- Parameters:
searchable
- a searchable object- Returns:
- Returns an empty buffer.
-
extractFields
Extract fields from the searchable object which implements one of the following interfaces: If an argument implements both interfaces, then the title is extracted in the above listed order.- Specified by:
extractFields
in interfaceExtractor2
- Parameters:
searchable
- a searchable object- Returns:
- list of fields extracted from the searchable object
-