Class ContentTreePermissionReindexEventBackgroundSender
java.lang.Object
com.atlassian.confluence.impl.content.ContentTreePermissionReindexEventBackgroundSender
- All Implemented Interfaces:
BackgroundJobProcessor
public class ContentTreePermissionReindexEventBackgroundSender
extends Object
implements BackgroundJobProcessor
Iterates over all descendants (including pages, comments, attachments, drafts etc) and sends ContentTreePermissionReindexEvent
for each item.
- Since:
- 8.1.0
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionContentTreePermissionReindexEventBackgroundSender(PageManagerInternal pageManager, AttachmentManager attachmentManager, com.atlassian.event.api.EventPublisher eventPublisher, BackgroundJobService backgroundJobService, org.springframework.transaction.PlatformTransactionManager transactionManager) -
Method Summary
Modifier and TypeMethodDescriptionThis method does the actual background operations.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.confluence.impl.backgroundjob.BackgroundJobProcessor
isSingleton
-
Field Details
-
PAGE_IDS_TO_PROCESS
- See Also:
-
PAGE_BATCH_SIZE
public static final int PAGE_BATCH_SIZE
-
-
Constructor Details
-
ContentTreePermissionReindexEventBackgroundSender
public ContentTreePermissionReindexEventBackgroundSender(PageManagerInternal pageManager, AttachmentManager attachmentManager, com.atlassian.event.api.EventPublisher eventPublisher, BackgroundJobService backgroundJobService, org.springframework.transaction.PlatformTransactionManager transactionManager)
-
-
Method Details
-
createParametersForContentEntityObject
-
process
public BackgroundJobResponse process(Long jobId, Map<String, Object> parameters, long recommendedTimeout) Description copied from interface:BackgroundJobProcessorThis method does the actual background operations. Need to stop its execution after recommendedTimeout timeout. This method is not run inside a transaction, the implementation of this class should handle the transactions as required. If something goes wrong, the method has to simply throw a runtime exception, it will be properly handled by the scheduler (logged, re-scheduled next run etc).- Specified by:
processin interfaceBackgroundJobProcessor- Parameters:
jobId- background job idparameters- background job parametersrecommendedTimeout- timeout in milliseconds- Returns:
- response
-