public class DefaultContentTypeManager extends Object implements ContentTypeManager, org.springframework.beans.factory.InitializingBean
| Constructor and Description |
|---|
DefaultContentTypeManager(ModuleDescriptorCache<ContentTypeModuleDescriptor> moduleDescriptorCache,
PluginContentHibernateInterceptor pluginContentHibernateInterceptor,
com.atlassian.plugin.webresource.WebResourceUrlProvider webResourceUrlProvider) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
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<ContentType> |
getEnabledContentTypes()
Get all ContentTypes currently enabled in the system
|
Collection<CustomContentType> |
getEnabledCustomContentTypes()
Get all CustomContentTypes currently enabled in the system
|
String |
getImplementingPluginVersion(String contentTypeKey)
Get the current version of the plugin that implements this content type.
|
public DefaultContentTypeManager(ModuleDescriptorCache<ContentTypeModuleDescriptor> moduleDescriptorCache, PluginContentHibernateInterceptor pluginContentHibernateInterceptor, com.atlassian.plugin.webresource.WebResourceUrlProvider webResourceUrlProvider)
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic ContentType getContentType(String contentTypeKey)
ContentTypeManagergetContentType in interface ContentTypeManagercontentTypeKey - the plugin module complete key of the content type providerpublic String getImplementingPluginVersion(String contentTypeKey)
ContentTypeManagergetImplementingPluginVersion in interface ContentTypeManagercontentTypeKey - the plugin module complete key of the content type providerpublic Collection<ContentType> getEnabledContentTypes()
ContentTypeManagergetEnabledContentTypes in interface ContentTypeManagerpublic Collection<CustomContentType> getEnabledCustomContentTypes()
ContentTypeManagergetEnabledCustomContentTypes in interface ContentTypeManagerCopyright © 2003–2018 Atlassian. All rights reserved.