Class ContentPermissionsBulkExtractor
java.lang.Object
com.atlassian.confluence.impl.search.v2.extractor.ContentPermissionsBulkExtractor
- All Implemented Interfaces:
BulkExtractor<Searchable>
public final class ContentPermissionsBulkExtractor
extends Object
implements BulkExtractor<Searchable>
Extracts the content permissions set on searchable objects. If the searchable object is an attachment or comment
extract the permissions from the containing content object. At the moment, content permissions are only
set on
AbstractPages. Hence this class only handles permissions for AbstractPage objects.- Since:
- 7.14
-
Constructor Summary
ConstructorsConstructorDescriptionContentPermissionsBulkExtractor(ContentPermissionSetDaoInternal contentPermissionSetDao) -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidextractAll(@NonNull Collection<Searchable> searchables, @NonNull Class<? extends Searchable> entityType, @NonNull BiConsumer<Searchable, FieldDescriptor> sink) Extracts all indexable data from all of the given entities
-
Constructor Details
-
ContentPermissionsBulkExtractor
-
-
Method Details
-
canHandle
- Specified by:
canHandlein interfaceBulkExtractor<Searchable>- Returns:
- true of the extractor can handle entities of the given type, else false
-
extractAll
public void extractAll(@NonNull Collection<Searchable> searchables, @NonNull Class<? extends Searchable> entityType, @NonNull BiConsumer<Searchable, FieldDescriptor> sink) Description copied from interface:BulkExtractorExtracts all indexable data from all of the given entities- Specified by:
extractAllin interfaceBulkExtractor<Searchable>- Parameters:
searchables- the entities to extract the fields fromsink- the consumer into which allFieldDescriptors should be pushed.
-