Package com.atlassian.confluence.plugin
Class DefaultCustomContentProviderRegistry
java.lang.Object
com.atlassian.confluence.plugin.DefaultCustomContentProviderRegistry
- All Implemented Interfaces:
CustomContentProviderRegistry
public class DefaultCustomContentProviderRegistry
extends Object
implements CustomContentProviderRegistry
Default implementation of the custom content provider registry.
- Since:
- 9.2.11
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet all available custom content type names that are scannableGet mapping of ContentType to SubscriptionEvent type for Incremental sync.getPluginKeysForScanType(String scanType) Get all content types that map to a given content type namegetProviderForContentPluginKey(String contentPluginKey) Get provider for a specific plugin key typebooleanisRegisteredContentPluginKey(String contentPluginKey) Check if a content type is registered in the systembooleanisScannableContent(String scanType) Check if a scan type represents scannable contentvoidregisterProvider(CustomContentProvider provider) Register a custom content providervoidunregisterProvider(CustomContentProvider provider) Unregister a custom content provider
-
Constructor Details
-
DefaultCustomContentProviderRegistry
public DefaultCustomContentProviderRegistry()
-
-
Method Details
-
registerProvider
Description copied from interface:CustomContentProviderRegistryRegister a custom content provider- Specified by:
registerProviderin interfaceCustomContentProviderRegistry
-
unregisterProvider
Description copied from interface:CustomContentProviderRegistryUnregister a custom content provider- Specified by:
unregisterProviderin interfaceCustomContentProviderRegistry
-
getProviderForContentPluginKey
Description copied from interface:CustomContentProviderRegistryGet provider for a specific plugin key type- Specified by:
getProviderForContentPluginKeyin interfaceCustomContentProviderRegistry- Parameters:
contentPluginKey- The content type to look up, refers to the content.pluginkey column- Returns:
- The provider that handles this content type, or null if none found
-
getPluginKeysForScanType
Description copied from interface:CustomContentProviderRegistryGet all content types that map to a given content type name- Specified by:
getPluginKeysForScanTypein interfaceCustomContentProviderRegistry- Parameters:
scanType- The user-friendly type name (e.g., "calendar")- Returns:
- Set of plugin key types that map to this type name
-
isScannableContent
Description copied from interface:CustomContentProviderRegistryCheck if a scan type represents scannable content- Specified by:
isScannableContentin interfaceCustomContentProviderRegistry- Parameters:
scanType- The scan type to check (e.g., "calendar", "question")- Returns:
- true if scan type should be included in scans
-
getAllScanTypes
Description copied from interface:CustomContentProviderRegistryGet all available custom content type names that are scannable- Specified by:
getAllScanTypesin interfaceCustomContentProviderRegistry- Returns:
- Set of user-friendly type names that can be used in scan operations
-
isRegisteredContentPluginKey
Description copied from interface:CustomContentProviderRegistryCheck if a content type is registered in the system- Specified by:
isRegisteredContentPluginKeyin interfaceCustomContentProviderRegistry- Parameters:
contentPluginKey- The content type to check, refers to the content.pluginkey column- Returns:
- true if the content type is registered, false otherwise
-
getContentTypeToSubscriptionEventTypeMap
Description copied from interface:CustomContentProviderRegistryGet mapping of ContentType to SubscriptionEvent type for Incremental sync. ContentType is generated from the value of scanType. for example: key: ContentType.valueOf("calendar"), value: SubscriptionEventType.CALENDAR_EVENT.- Specified by:
getContentTypeToSubscriptionEventTypeMapin interfaceCustomContentProviderRegistry- Returns:
- Map of ContentType to SubscriptionEventType
-