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 onAbstractPages. Hence this class only handles permissions forAbstractPageobjects.- Since:
- 7.14
 
- 
- 
Constructor SummaryConstructors Constructor Description ContentPermissionsBulkExtractor(ContentPermissionSetDaoInternal contentPermissionSetDao)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanHandle(Class<?> type)voidextractAll(Collection<Searchable> searchables, Class<? extends Searchable> entityType, BiConsumer<Searchable,FieldDescriptor> sink)Extracts all indexable data from all of the given entities
 
- 
- 
- 
Constructor Detail- 
ContentPermissionsBulkExtractorpublic ContentPermissionsBulkExtractor(ContentPermissionSetDaoInternal contentPermissionSetDao) 
 
- 
 - 
Method Detail- 
canHandlepublic boolean canHandle(@Nonnull Class<?> type)- Specified by:
- canHandlein interface- BulkExtractor<Searchable>
- Returns:
- true of the extractor can handle entities of the given type, else false
 
 - 
extractAllpublic 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 interface- BulkExtractor<Searchable>
- Parameters:
- searchables- the entities to extract the fields from
- sink- the consumer into which all- FieldDescriptors should be pushed.
 
 
- 
 
-