Package com.atlassian.confluence.content
Interface ContentTypeManager
- All Known Implementing Classes:
DefaultContentTypeManager
public interface ContentTypeManager
-
Method Summary
Modifier and TypeMethodDescriptiongetContentType
(String contentModuleKey) Get the Content Type plugin module for the given module key, or the default "uninstalled" content type if no matching plugin can be found.Get all CustomContentTypes currently enabled in the systemgetImplementingPluginVersion
(String contentModuleKey) Get the current version of the plugin that implements this content type.
-
Method Details
-
getContentType
Get the Content Type plugin module for the given module key, or the default "uninstalled" content type if no matching plugin can be found.- Parameters:
contentModuleKey
- the plugin module complete key of the content type provider- Returns:
- the ContentType plugin object for that content type
-
getImplementingPluginVersion
Get the current version of the plugin that implements this content type.- Parameters:
contentModuleKey
- the plugin module complete key of the content type provider- Returns:
- the version of the plugin that provides this content
- Throws:
IllegalStateException
- if the implementing plugin does not exist, is disabled or is the wrong type.
-
getEnabledCustomContentTypes
Collection<CustomContentType> getEnabledCustomContentTypes()Get all CustomContentTypes currently enabled in the system- Returns:
- all content types currently enabled
-