Class DefaultContentTypeManager
- java.lang.Object
-
- com.atlassian.confluence.impl.content.DefaultContentTypeManager
-
- All Implemented Interfaces:
ContentTypeManager
public class DefaultContentTypeManager extends Object implements ContentTypeManager
AContentTypeManager
implementation backed by aContentTypeModuleResolver
.- Since:
- 7.16
-
-
Constructor Summary
Constructors Constructor Description DefaultContentTypeManager(ContentTypeModuleResolver contentTypeModuleResolver, PluginContentHibernateInterceptor pluginContentHibernateInterceptor, com.atlassian.plugin.webresource.WebResourceUrlProvider webResourceUrlProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContentType
getContentType(String contentTypeKey)
Get the Content Type plugin module for the given module key, or the default "uninstalled" content type if no matching plugin can be found.Collection<CustomContentType>
getEnabledCustomContentTypes()
Get all CustomContentTypes currently enabled in the systemString
getImplementingPluginVersion(String contentTypeKey)
Get the current version of the plugin that implements this content type.
-
-
-
Constructor Detail
-
DefaultContentTypeManager
public DefaultContentTypeManager(ContentTypeModuleResolver contentTypeModuleResolver, PluginContentHibernateInterceptor pluginContentHibernateInterceptor, com.atlassian.plugin.webresource.WebResourceUrlProvider webResourceUrlProvider)
-
-
Method Detail
-
getContentType
public ContentType getContentType(String contentTypeKey)
Description copied from interface:ContentTypeManager
Get the Content Type plugin module for the given module key, or the default "uninstalled" content type if no matching plugin can be found.- Specified by:
getContentType
in interfaceContentTypeManager
- Parameters:
contentTypeKey
- the plugin module complete key of the content type provider- Returns:
- the ContentType plugin object for that content type
-
getImplementingPluginVersion
public String getImplementingPluginVersion(String contentTypeKey)
Description copied from interface:ContentTypeManager
Get the current version of the plugin that implements this content type.- Specified by:
getImplementingPluginVersion
in interfaceContentTypeManager
- Parameters:
contentTypeKey
- the plugin module complete key of the content type provider- Returns:
- the version of the plugin that provides this content
-
getEnabledCustomContentTypes
public Collection<CustomContentType> getEnabledCustomContentTypes()
Description copied from interface:ContentTypeManager
Get all CustomContentTypes currently enabled in the system- Specified by:
getEnabledCustomContentTypes
in interfaceContentTypeManager
- Returns:
- all content types currently enabled
-
-