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 onAbstractPage
s. Hence this class only handles permissions forAbstractPage
objects.- Since:
- 7.14
-
-
Constructor Summary
Constructors Constructor Description ContentPermissionsBulkExtractor(ContentPermissionSetDaoInternal contentPermissionSetDao)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canHandle(Class<?> type)
void
extractAll(Collection<Searchable> searchables, Class<? extends Searchable> entityType, BiConsumer<Searchable,FieldDescriptor> sink)
Extracts all indexable data from all of the given entities
-
-
-
Constructor Detail
-
ContentPermissionsBulkExtractor
public ContentPermissionsBulkExtractor(ContentPermissionSetDaoInternal contentPermissionSetDao)
-
-
Method Detail
-
canHandle
public boolean canHandle(@Nonnull Class<?> type)
- Specified by:
canHandle
in 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:BulkExtractor
Extracts all indexable data from all of the given entities- Specified by:
extractAll
in interfaceBulkExtractor<Searchable>
- Parameters:
searchables
- the entities to extract the fields fromsink
- the consumer into which allFieldDescriptor
s should be pushed.
-
-