Class DefaultCustomContentEventService
java.lang.Object
com.atlassian.confluence.internal.api.impl.service.incrementalsync.customcontentmanagement.DefaultCustomContentEventService
- All Implemented Interfaces:
CustomContentEventService
Default implementation of CustomContentEventService.
- Since:
- 9.2.11
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultCustomContentEventService(CustomContentProviderRegistry providerRegistry, ContentCommandSupport commandSupport, SubscriptionJournalStateStore subscriptionJournalStateStore, SpaceFilteringService spaceFilteringService, ContentService contentService) -
Method Summary
Modifier and TypeMethodDescriptionbooleanisContentTypeSupported(String contentType) Checks if a custom content type is supported for event recording.booleanrecordEvent(String contentType, ContentId contentId, String operation) Records a custom content event for incremental sync.
-
Constructor Details
-
DefaultCustomContentEventService
public DefaultCustomContentEventService(CustomContentProviderRegistry providerRegistry, ContentCommandSupport commandSupport, SubscriptionJournalStateStore subscriptionJournalStateStore, SpaceFilteringService spaceFilteringService, ContentService contentService)
-
-
Method Details
-
recordEvent
Description copied from interface:CustomContentEventServiceRecords a custom content event for incremental sync. This method automatically determines the active subscription that should process the event based on the content type and subscription configuration. Since there can only be one active subscription for content at a time, this method will use that subscription.- Specified by:
recordEventin interfaceCustomContentEventService- Parameters:
contentType- The scanType of custom contentcontentId- The ID of the content itemoperation- The operation performed- Returns:
- true if the event was successfully recorded, false otherwise
-
isContentTypeSupported
Description copied from interface:CustomContentEventServiceChecks if a custom content type is supported for event recording.- Specified by:
isContentTypeSupportedin interfaceCustomContentEventService- Parameters:
contentType- The content type to check- Returns:
- true if the content type is supported, false otherwise
-