Class DeletingRetentionPolicyExtractor
- java.lang.Object
-
- com.atlassian.confluence.impl.search.v2.extractor.DeletingRetentionPolicyExtractor
-
- All Implemented Interfaces:
Extractor2
public class DeletingRetentionPolicyExtractor extends Object implements Extractor2
Extract 2 fields to tell whether a space retention policy may delete historical versions or trash.- Since:
- 7.16.0
-
-
Field Summary
Fields Modifier and Type Field Description static StringSEARCH_FIELD_NAME_TRASHDeprecated.since 7.20 useSearchFieldMappings.RETENTION_POLICY_DELETE_TRASHinstead.static StringSEARCH_FIELD_NAME_VERSIONDeprecated.since 7.20 useSearchFieldMappings.RETENTION_POLICY_DELETE_VERSIONinstead.
-
Constructor Summary
Constructors Constructor Description DeletingRetentionPolicyExtractor(SpaceRetentionPolicyManager spaceRetentionPolicyManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<FieldDescriptor>extractFields(Object searchable)Extract fields from the searchable object.StringBuilderextractText(Object searchable)Returns a buffer of text that will be appended onto the end of a larger buffer of text that will eventually become the searchable body text.
-
-
-
Field Detail
-
SEARCH_FIELD_NAME_TRASH
@Deprecated public static final String SEARCH_FIELD_NAME_TRASH
Deprecated.since 7.20 useSearchFieldMappings.RETENTION_POLICY_DELETE_TRASHinstead.
-
SEARCH_FIELD_NAME_VERSION
@Deprecated public static final String SEARCH_FIELD_NAME_VERSION
Deprecated.since 7.20 useSearchFieldMappings.RETENTION_POLICY_DELETE_VERSIONinstead.
-
-
Constructor Detail
-
DeletingRetentionPolicyExtractor
public DeletingRetentionPolicyExtractor(SpaceRetentionPolicyManager spaceRetentionPolicyManager)
-
-
Method Detail
-
extractText
public StringBuilder extractText(Object searchable)
Description copied from interface:Extractor2Returns a buffer of text that will be appended onto the end of a larger buffer of text that will eventually become the searchable body text.- Specified by:
extractTextin interfaceExtractor2- Parameters:
searchable- a searchable object- Returns:
- Returns a buffer of text that will be appended onto the end of a larger buffer of text that will eventually become the searchable body text.
-
extractFields
public Collection<FieldDescriptor> extractFields(Object searchable)
Description copied from interface:Extractor2Extract fields from the searchable object.- Specified by:
extractFieldsin interfaceExtractor2- Parameters:
searchable- a searchable object- Returns:
- list of fields extracted from the searchable object
-
-